Adding X_SPAM headers to passed messages

James B. Byrne via amavis-users amavis-users at
Wed May 14 21:30:29 CEST 2014

On Wed, May 14, 2014 09:36, James B. Byrne wrote:

As suggested I manually added our domain ( to
@local_domains_maps.   This had the desired effect and X-SPAM headers began to
appear in processed emails.  However, I was curious why this would work since
we had these two statements already in amavisd.conf:

$mydomain = '';
. . .
@local_domains_maps = ( [ qw( .$mydomain
                              .someother.tld) ] );

To test what was happening I removed the newly added from
inside the @local_domains_maps and restarted amavisd.  And the headers
disappeared again.

To solve this I have added the local domain explicitly and now I get the
desired behaviour.  But I do not understand why the previous configuration no
longer worked.

@local_domains_maps = ( [ qw( .$mydomain
                       ) ] );

***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at
Harte & Lyne Limited
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

More information about the amavis-users mailing list