Код: Выделить всё
logfile /var/log/exim/system-filter.log
if $acl_m1 contains "1"
then
deliver quarantine@ruskon.biz
else
if $acl_m1 contains "2"
then
deliver spam@ruskon.biz
else
if $acl_m0 matches ^\\d+
then
if $acl_m0 is above 59
then
deliver spam@ruskon.biz
endif
headers add "X-Spam-Description: if spam count > 60 - this is spam"
headers add "X-Spam-Count: $acl_m0"
if $acl_m0 is above 58
then
headers add "Old-Subject: $h_subject:"
headers remove "Subject"
headers add "Subject: (*** SPAM ***) $h_old-subject:"
headers add "X-Spam: YES"
logwrite "EXIM FILTER: Spam count = $acl_m0 ; Added SPAM header"
endif
endif
endif
endif
if $recipients is "${lookup mysql{SELECT `address` FROM `alias` WHERE `address`='$recipients' AND `copy_mail`='1' LIMIT 1}}"
then
unseen deliver security@ruskon.biz
endif
if $sender_address is "${lookup mysql{SELECT `address` FROM `alias` WHERE `address`='$sender_address' AND `copy_mail`='1' LIMIT 1}}"
then
unseen deliver security@ruskon.biz
endif