[Mimedefang] score USER_IN_WHITELIST_TO

Kris Deugau kdeugau at vianet.ca
Wed Nov 22 16:39:49 EST 2017


Marcus Schopen wrote:
> Am Dienstag, den 21.11.2017, 10:32 -0500 schrieb Bill Cole:
>> On 20 Nov 2017, at 16:41 (-0500), Kris Deugau wrote:
>>
>>> USER_IN_WHITELIST_TO applies to all mail for a given recipient;  IMO
>>> it's a crude hack to work around cases where whatever is calling SA
>>> can't use the SA userprefs system to just change the threshold
>>> instead.
>>
>> It is very useful for protecting role aliases (e.g. abuse, postmaster)
>> that are mapped to targets (e.g. root or an off-system address) that
>> should not generally be left unprotected.
>
> This is what I want to use it for: postmaster@ and abuse@

Right, sorry, I forgot about those kind of cases (even in the man page 
IIRC).  I've always excluded those by just not passing their mail to SA 
- either because of some magic in my MIMEDefang setup, or by disabling 
the call to SA at final delivery to a mailbox.

You can set the score for this the same as any other rule, by adding 
this to sa-mimedefang.cf:

score USER_IN_WHITELIST_TO  -100

Note that this affects *all* whitelist_to entries;  there is no way to 
selectively set a different score for each one.  If you need to do that, 
you probably need to make larger changes in the mail flow for those 
recipients so you can bypass SA entirely, or process it but deliver as 
usual instead of quarantining for those recipients.

-kgd



More information about the MIMEDefang mailing list