* Duncan B. <[email protected]>:
>
>
> On Wed, 29 Jan 2014, Noel Jones wrote:
>
> >>I couldn't find a way to make Amavisd scan only for certain domains,
> >>rather than whitelist. (Although I understand this is beyond the
> >>scope of this list :))
> >>
> >
> >Any kind of pre-queue per-domain filtering will need to be done
> >within the filter -- once the mail gets to postfix it's too late.
> >
> >You should be able to define the amavisd-new bypass_spam_checks_maps
> >to something like "yahoo no, hotmail no, everyone else yes".
>
>
> Many thanks Noel, I've managed to do this with the config (in case
> it helps anyone in future):
>
> @bypass_spam_checks_maps = ( [ "!.hotmail.com", "!.gmail.com", "." ] );
>
> Doesn't seem to add too much latency to send times either.
I suggest you do not use the envelope-sender address, because it can be forged
easily. Instead I'd use valid DKIM signatures as trigger to bypass certain
checks:
@author_to_policy_bank_maps = ( {
'sys4.de' => 'WHITELIST,NOBANNEDCHECK,NOVIRUSCHECK',
'.paypal.com' => 'WHITELIST',
'amazon.de' => 'WHITELIST',
'hotmail.com' => 'WHITELIST',
'gmail.com' => 'WHITELIST',
} );
#############################################################################
## POLICY BANKS: WHITELIST
#
$policy_bank{'WHITELIST'} = {
bypass_spam_checks_maps => [1],
spam_lovers_maps => [1],
};
p@rick
--
[*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein