Re: Mail loop when exim +dr.web +spamassassin
Hello,
Dmitry wrote:
у кого-нить есть такая связка (exim +dr.web +spamassassin) ?
у меня mail loopы получаются...
Help...
У меня есть. Фильтр примерно такой:
------------- filter.exim ------------------
# Exim filter
if $received_protocol is "drweb-scanned"
then
pipe "/etc/exim/assfilter.sh -f $sender_address -- $recipients"
finish
endif
if $received_protocol is "spam-scanned"
then
finish
endif
if error_message and $header_from: contains "Mailer-Daemon@"
then
# looks like a real error message - just ignore it
finish
endif
if not first_delivery
then
# not first delivery attempt
finish
endif
# Dr.Web Filter
pipe "/opt/drweb/drweb-exim -f $sender_address -- $recipients"
finish
------------- filter.exim ------------------
------------- assfilter.sh ------------------
#!/bin/sh
/usr/local/bin/spamc|/usr/sbin/exim -oMr spam-scanned $@
------------- assfilter.sh ------------------
--
#Alex S. Yemelyanov
# Exim filter
if $received_protocol is "drweb-scanned"
then
if $sender_address_domain contains ".kz"
then
finish
endif
pipe "/etc/exim/assfilter.sh -f $sender_address -- $recipients"
finish
endif
if $received_protocol is "spam-scanned"
then
finish
endif
if error_message and $header_from: contains "Mailer-Daemon@"
then
# looks like a real error message - just ignore it
finish
endif
if not first_delivery
then
# not first delivery attempt
finish
endif
# Dr.Web Filter
pipe "/opt/drweb/drweb-exim -f $sender_address -- $recipients"
finish
Reply to: