Postfix / TrendMicro Viruswall
Aus dem UseNet zum Thema Postfix und Trendmicro Viruswall (noch ungetestet!):
>> I know this is an ugly beast, but as a favor to someone who did >> decide to buy this AV, I am compelled to ask if anyone has gotten it >> to work with Postfix. > > Yup. Works.
Want some filezz? Let's see what I have:
main.cf:
transport_maps = dbm:/etc/postfix/transport # transport to the inside relayhost = [mail.mydomain.de] mynetworks = 127.0.0.0/8 172.30.2.2/32 172.30.3.1/32 10.x.x.x/32 195.x.x.x/32 # localhost, both interface, and some other hosts # only used, if VirusWall DOES NOT scan! mydomain = mydomain.de mydestination = smtp_always_send_ehlo = yes smtpd_banner = $myhostname ESMTP myorigin = $mydomain
I have master.cf.nosmtpd AND master.cf.smtpd
% diff master.cf.nosmtpd master.cf.smtpd 70,71c70 < localhost:10025 < inet n - - - - smtpd --- > smtp inet n - - - - smtpd
and the /etc/init.d/sendmail or postfix script:
case "$1" in
'start')
ISSMTPON=cat /etc/iscan/pkg/ISSMTPON
if [ "$ISSMTPON" != "1" ]; then
cp -f /etc/postfix/master.cf.smtpd /etc/postfix/master.cf
else
cp -f /etc/postfix/master.cf.nosmtpd /etc/postfix/master.cf
/etc/iscan/sendmail
fi
/usr/sbin/postfix start
;;
'stop')
for i in /bin/ps -ef | grep "/etc/iscan/sendmail" | grep -v grep | awk '{ print $2 }' do
if test "$i" ; then
kill -9 $i
fi
done
TMPDIR=/tmp
if [ -d $TMPDIR ] ; then
rm -f $TMPDIR/smtp* $TMPDIR/msg* $TMPDIR/binh* $TMPDIR/uu*
fi
/usr/sbin/postfix stop
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
- make viruswall listen on port 10025
- tell Postfix to use:
- content_filter = smtp:127.0.0.1:10025
- Duplicate the smtpd line in master.cf and change the port to 10026
- make viruswall reinject using 127.0.0.1:10026
siehe auch VirenScanner
