Amavis not filtering spam for entries in second domain

Miguel Almeida migueldealmeida at
Tue Sep 18 10:04:27 CEST 2018

My postfix installation is working correctly (delivery via dovecot, spam
filtering via amavis - spamassasin).

I receive emails in and domains. For the emails that sent
to, amavis is not adding the spam headers (which I have configured
to be always added, via $sa_tag_level_deflt  = -20;)

I initially had the following in  /etc/amavis/conf.d/05-domain_id:

$mydomain = "";
@local_domains_acl = ( ".$mydomain");

I have tried to add my second domain in two ways:
@local_domains_acl = ( ".$mydomain", "" );
@local_domains_maps = ( [".$mydomain", ""]);
(and both)

But the headers are not added.
Here is an example log (with log_level = 5) of an email received at
info at

I can successfully see the email headers added if I change $mydomain to

Can you help me understand why I am not able to have both domains with the
spam headers added at the same time?

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amavis-users mailing list