Hannes Erven wrote:
> MrC wrote:
>> ...  and the user must be considered a local user, so check your
>> @local_domains_maps.
> 
> Thanks Mike (again ;-]) for the hint -- this really was the reason. I 
> rechecked, and noticed that the *last* domain in my @local_domains_maps 
> list *did* trigger the SPAM-TAG, but not any other domain listed in the 
> map. Since on one box the major messaging domain was actually listed 
> last, it appeared that it worked "better" than on the other box ;-)
> 
> 
> My setting actually follows one of the examples in the amavis.conf file:
> 
> My setting:
> @local_domains_maps = ([ qw( dom1.tld, dom2.tld, dom3.tld ) ]);
> 
There's a subtlety here.  When using qw() - quote words - you do not use
commas to separate entities.  Eg:

  qw(a b c)  # Correct
  qw(a,b,c)  # Incorrect

Note the examples in the amavisd.conf-sample page (like the line below)

> amavis.conf.sample:
> # @local_domains_maps =  # similar, split list elements on whitespace
> #   ( [qw( .example.com !host.sub.example.net .sub.example.net )] );

            no commas   ^^^^

> 
> ... which won't work, because there is one level of nesting too much. I 
> took out the [] around the qw and now it works as expected:
> 
> @local_domains_maps = ( qw( dom1.tld, dom2.tld, dom3.tld ) );

             you have commas         ^^^^
> 
> 
> I checked with the released 2.6.0 and 2.5.4 versions of amavisd-new, 
> both amavisd.conf.sample files contain this incorrect example. Should I 
> open an issue somewhere (where?) to get this corrected?
> 
> 
> Thank you folks,
> Best regards,
> 
>       -hannes

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to