I suggest that all your customization be done on /etc/amavis/conf.d/50-user for simplicity sake instead of jumping around all those config files. Up to you.
On your particular issue, try this: $mydomain = "mydomain.tld"; @local_domains_acl = ( "mydomain.tld", "localhost" ); The way you had it set “.$mydomain” I’m pretty sure it means all subdomains of mydomain.tld but not the actual domain. Someone correct me if I’m wrong here. From: amavis-users [mailto:[email protected]] On Behalf Of chaouche yacine Sent: Friday, December 1, 2017 2:24 PM To: [email protected] Subject: Re: Amavis doesn't mark mail as spam, and doesn't set spam headers Hello Alexander, I don't know how to check for that. Here's 05-domain_id root@messagerie[10.10.10.19<mailto:root@messagerie[10.10.10.19>] /etc/amavis/conf.d # removeblanks 05-domain_id use strict; chomp($mydomain = `head -n 1 /etc/mailname`); @local_domains_acl = ( ".$mydomain" ); 1; # ensure a defined return root@messagerie[10.10.10.19<mailto:root@messagerie[10.10.10.19>] /etc/amavis/conf.d # my /etc/mailname contains the hostname of the mail server, which is "messagerie.mydomain.tld", whereas I accept mail for "mydomain.tld" Yassine. On Friday, December 1, 2017 1:20 PM, Alexander Wirt <[email protected]<mailto:[email protected]>> wrote: On Fri, 01 Dec 2017, chaouche yacine wrote: > Hello Alxander, > This log entry seems to show that spam checking was done : > Nov 28 16:33:16 messagerie amavis[46130]: (46130-07) Passed SPAMMY > {RelayedOpenRelay}, [101.55.71.90]:53783 [101.55.71.90] > <[email protected]<mailto:[email protected]>> > -> <[email protected]<mailto:[email protected]>>, Queue-ID: > 738D73A80088, Message-ID: > <[email protected]<mailto:[email protected]>>, > mail_id: lBrIu_4QeHCa, Hits: 11.386, size: 46197, queued_as: 6609E3A8008E, > 736 ms > And here is 15-content_filter_mode > root@messagerie<mailto:root@messagerie>[10.10.10.19] /etc/amavis/conf.d # > removeblanks 15-content_filter_mode > use strict; > @bypass_virus_checks_maps = ( > \%bypass_virus_checks, \@bypass_virus_checks_acl, > \$bypass_virus_checks_re); > @bypass_spam_checks_maps = ( > \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re); > 1; # ensure a defined return > root@messagerie<mailto:root@messagerie>[10.10.10.19] /etc/amavis/conf.d # > > Should they be commented out ? no, they are fine that way. > > > Also, both spamd and amavis are running : Amavis doesn't use spamd. Is "mydomain.tld" in localdomains? Alex
