Sender white list: email header 'X-spam-stauts' of whitelisted emails
Martin Johannes Dauser
mdauser at cs.sbg.ac.at
Mon Aug 12 16:42:08 CEST 2019
Ah, I forgot to mention: In whitelisted emails the header X-spam-status
becomes:
X-spam-status: No, score=x required=5 WHITELISTED tests=[]
autolearn=unavailable
Greetings
Martin
On Mon, 2019-08-12 at 16:33 +0200, Martin Johannes Dauser wrote:
> FIRST, be warned that sender address can be spoofed really easily. So
> you shouldn't put too much trust into them!
>
> I guess you haven't configured incomming and originating/outgoing paths
> for amavis yet? Something similar to this (ports 10024 and 10026 need to
> be delivered by your MTA of course):
>
>
> @mynetworks_maps = (read_array('/etc/amavisd/mynetworks'),); # IP-addresses regarded as local/originating saved as one IP or one Network with CIDR notation per line
>
> read_hash(\%whitelist_sender, '/etc/amavisd/whitelist_senders');
>
> @listen_sockets = ( # incomming
> '127.0.0.1:10024',
> # originating
> '127.0.0.1:10026',
> );
>
>
> $interface_policy{'10024'} = 'INCOMMING';
> $interface_policy{'10026'} = 'ORIGINATING';
>
> $policy_bank{'INCOMMING'} = {
> # set incomming mails as NOT-originating
> originating => 0,
>
> # mails from trusted envelope senders won't get scanned by Spamassassin
> whitelist_sender_maps => [ \%whitelist_sender ],
>
> # other settings
> #...
> };
>
>
> $policy_bank{'ORIGINATING'} = {
> # set local smtpd as originating
> originating => 1,
>
> # other settings
> #...
> };
>
>
> Greetings
> Martin
More information about the amavis-users
mailing list