Amavis doesn't mark mail as spam, and doesn't set spam headers

chaouche yacine yacinechaouche at yahoo.com
Mon Dec 4 16:30:53 CET 2017


Indeed, changing those two variables was effective, I now have my mail correctly marked as junk.So maybe this is a debian-specific problem ?
This is how the variables are shipped by debian in conf.d/05-default_id 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
root at messagerie[10.10.10.19] /etc/amavis/conf.d # cat 05-domain_id
use strict;
# $mydomain is used just for convenience in the config files and it is not
# used internally by amavisd-new except in the default X_HEADER_LINE (which
# Debian overrides by default anyway).
chomp($mydomain = `head -n 1 /etc/mailname`);
# amavisd-new needs to know which email domains are to be considered local
# to the administrative domain.  Only emails to "local" domains are subject
# to certain functionality, such as the addition of spam tags.
#
# Default local domains to $mydomain and all subdomains.  Remember to
# override or redefine this if $mydomain is changed later in the config
# sequence.
@local_domains_acl = ( ".$mydomain" );
1;  # ensure a defined return
root at messagerie[10.10.10.19] /etc/amavis/conf.d #   

I don't know how that translates in real strings when /etc/mailname is of the form host.domain.tld ?

Yassine.




 

    On Friday, December 1, 2017 9:52 PM, Dino Edwards <dino.edwards at mydirectmail.net> wrote:
 

 #yiv4226890353 #yiv4226890353 -- _filtered #yiv4226890353 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv4226890353 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv4226890353 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv4226890353 #yiv4226890353 p.yiv4226890353MsoNormal, #yiv4226890353 li.yiv4226890353MsoNormal, #yiv4226890353 div.yiv4226890353MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv4226890353 a:link, #yiv4226890353 span.yiv4226890353MsoHyperlink {color:blue;text-decoration:underline;}#yiv4226890353 a:visited, #yiv4226890353 span.yiv4226890353MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv4226890353 code {}#yiv4226890353 pre {margin:0in;margin-bottom:.0001pt;font-size:10.0pt;}#yiv4226890353 span.yiv4226890353EmailStyle17 {color:#1F497D;}#yiv4226890353 span.yiv4226890353HTMLPreformattedChar {}#yiv4226890353 .yiv4226890353MsoChpDefault {font-size:10.0pt;} _filtered #yiv4226890353 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv4226890353 div.yiv4226890353WordSection1 {}#yiv4226890353 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:amavis-users-bounces+dino.edwards=mydirectmail.net at amavis.org]On Behalf Of chaouche yacine
Sent: Friday, December 1, 2017 2:24 PM
To: amavis-users at amavis.org
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 at 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 at 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 <formorer at formorer.de> 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] <bounce-3308-19491836-3512-248 at frdww.com> -> <a.chaouche at mydomain.tld>, Queue-ID: 738D73A80088, Message-ID: <bf680addabf683575f7cc153be8a9094 at 101.55.71.3>, mail_id: lBrIu_4QeHCa, Hits: 11.386, size: 46197, queued_as: 6609E3A8008E, 736 ms
> And here is 15-content_filter_mode
> root at 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 at 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    

   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20171204/bf6c7a52/attachment.html>


More information about the amavis-users mailing list