Re: [Exim] Rewriting $domain for exiscan

Top Page
Delete this message
Reply to this message
Author: Tom Kistner
Date:  
To: Dennis Skinner
CC: exim-users
Subject: Re: [Exim] Rewriting $domain for exiscan
Dennis Skinner wrote:

>   warn message = X-Spam-Score: $spam_score ($spam_bar)
>        spam = $recipients:true
>        condition = ${if >{$recipients_count}{1}{0}{1}}


Swap the order:

warn message = X-Spam-Score: $spam_score ($spam_bar)
      condition = ${if >{$recipients_count}{1}{0}{1}}
      spam = $recipients:true


Now "spam" will only be invoked when there is only one recipient :)



> multiple domains for a single account. For example, we own
> mydomain.net, mydomain.com, mydomain.biz, and mydomain.info. The user
> can send/receive mail at any of these domains, but will only be in the
> mysql db under the .com.


>  accept  domains       = +mydomain1_domains
>           set domain    = mydomain.com


Instead of setting $domain, set one of the acl_mX variables to the
customers primary domain, then in the "spam" condition, extract the
local part out of the $recipients variable with the ${local_part:}
operator and append the saved domain, like this:

warn message = X-Spam-Score: $spam_score ($spam_bar)
      condition = ${if >{$recipients_count}{1}{0}{1}}
      spam = ${local_part:${recipients}}@${acl_m0}:true



regards,

/tom