I would like to set up per user scanning using spamassassin and exim. If
there are multiple recipients I would like to use the user 'nobody',
otherwise I want to use the mail alias. Its a University so only 1
domain...
can i merge the following 2 seperate conditions into one multiconditional?
Also from inspection will the following work as im testing it atm but
mails are getting through and not even being sent to SA.
Ronan
acl_check_rcpt:
condition = ${if >{$recipients_count}{1}{1}{0}}
set acl_m1 = 1
acl_check_data:
warn message = X-Spam-Score: $spam_bar ($spam_score)\n\
X-Spam-Score-Int: $spam_score_int
condition = ${if
and{{>{$spam_score_int}{100}}{and{{<{$message_size}{80k}}{eq{$acl_m1}{0}}}}}}
set acl_m9 = 1
spam = ${lc:${extract{1}{=@}{$recipients}{$value}}}:true
set acl_m9 = 0
warn message = X-Spam-Score: $spam_bar ($spam_score)\n\
X-Spam-Score-Int: $spam_score_int
condition = ${if
and{{>{$spam_score_int}{100}}{and{{<{$message_size}{80k}}{eq{$acl_m1}{1}}}}}}
set acl_m9 = 1
spam = ${lc:${extract{1}{=@}{$recipients}{$value}}}:true
set acl_m9 = 0
--
Regards
Ronan McGlue
===================
Analyst / Programmer
Queens University Belfast