Doporučuji:
Galerie fotek
Notebooky
Webdesign Praha
www.eprdel.cz
www.root.cz
Lumimont
A
urpmi clamav
bunzip2 clamav-filter.sh.bz2
chmod 0755 clamav-filter.sh
mkdir /var/spool/filter
chown clamav:clamav /var/spool/filter
smtp inet n - n - - smtpd
-o content_filter=clamav:clamav
clamav unix - n n - - pipe
flags=Rq user=clamav argv=/usr/lib/postfix/clamav-filter.sh -f ${sender} -- ${recipient}
Zmenime
SENDMAIL="/usr/sbin/sendmail -i "
Za:
SENDMAIL="/usr/bin/spamc -f -e /usr/sbin/sendmail -i "
nahradime:
viruscan
Za:
#
# SpamAssassin
#
spamc -c < $nome_arquivo >/dev/null ; RETVAL=$?
if [ $RETVAL -ne 0 ]; then
# Se quiser redireciona-la para outro lugar...
sed -e "s/^Subject: /Subject: --- SPAM (SpamAssassin): $from -> $@ --- /i" $nome_arquivo | $SENDMAIL -f postmaster@$MYHOSTNAME -- postmaster@$MYHOSTNAME
rm -f $nome_arquivo
exit 0
fi
viruscan