Mail from localhost not excluded from checks

edv at proasyl.de edv at proasyl.de
Mon Nov 18 10:59:55 CET 2019


Followed your advice - it worked.
Thank you

Am 14.11.2019 um 08:49 schrieb Damian:
>>  Received: by [my.servers.name] (Postfix, from userid 0)
>>          id B874A8075CE1; Tue, 12 Nov 2019 09:50:55 +0100 (CET)
> I seem to have missed that you have amavis on pickup? In that case you
> will probably need to use a separate $interface_policy instead of xforward.
>
>> You probably did not enable xforward.
>>
>> https://www.ijs.si/software/amavisd/README.postfix.html#basics_transport_smtp-client
>>
>>> I'm a bit puzzled. I run a Perl script on our mailserver which once per
>>> day will send me a summarized overview of all in- and outgoing mails.
>>> But these mail are spam and virus checked by amavis:
>>>
>>> X-Spam-Status: Yes, score=24.574
>>> Received: from [my.servers.name] ([127.0.0.1])
>>>         by localhost [my.servers.name] [127.0.0.1]) (amavisd-new, port
>>> 10024)
>>>         with ESMTP id 5qjFB26fDv8l for <logging@[my.domain]>;
>>>         Tue, 12 Nov 2019 09:50:55 +0100 (CET)
>>> Why?
>>>
>>> amavisd.conf
>>>
>>> @mynetworks = qw( 127.0.0.0/24 192.168.27.0/24 [etc.])
>>> [...]
>>> $policy_bank{'MYNETS'} = {  # clients in @mynetworks
>>>   bypass_spam_checks_maps   => [1],  # don't spam-check internal mail
>>>   bypass_banned_checks_maps => [1],  # don't banned-check internal mail
>>>   bypass_header_checks_maps => [1],  # don't header-check internal mail
>>>   bypass_virus_checks_maps  => [1],
>>> };
>>>
>>> Any ideas?



More information about the amavis-users mailing list