erlug
[Top] [All Lists]

Re: [Erlug] Amavisd non scrive gli header (Risolto)

To: "ERlug - Lista Pubblica" <erlug@xxxxxxxxxxxxxx>
Subject: Re: [Erlug] Amavisd non scrive gli header (Risolto)
From: "Riccardo Riva" <ric_ml@xxxxxxxx>
Date: Mon, 8 Mar 2010 17:33:08 +0100
Alla buon'ora,
 
sembra che il problema fosse nel :
 
local_domains_map
 
di Amavis.
 
In pratica non gestisce correttamente scrivendo le info richieste (da me) negli header se in quel campo non sono elencati tutti i domini gestiti.
Il mio problema è che il valore è di default :
 
@local_domains_maps = ( [".$mydomain"] );
 
e nel file di configurazione di Amavis avevo :
 
$mydomain = 'miodominioprincipale.com';   # a convenient default for other settings
 
Però la macchina fa relay per almeno altri 20 domini, ed il problema guarda caso era sempre sugli altri.
 
Ho quindi inserito in amavisd.conf:
 
@local_domains_maps=read_hash("/etc/postfix/relay_domains");
 
e in /etc/postfix/relay_domains
 
.miodominio_1.ext    OK
.miodominio_2.ext    OK
......
.miodominio_n.ext    OK
 
 
 
Ciao
Riccardo
----- Original Message -----
Sent: Monday, March 08, 2010 4:29 PM
Subject: Re: [Erlug] Amavisd non scrive gli header

Nello specifico il problema è che :
 
in /var/log/maillog vedo che :
 
Mar  8 16:05:05 relay amavis[5799]: (05799-14-25) Passed SPAMMY, [xx.xx.xx.xx] [xx.xx.xx.xx] <postmaster@xxxxxxx> -> <postmaster@xxxxxxx>, Message-ID: <20100308152528.AC214B2C7D@xxxxxxxxxxxxxx>, mail_id: 4+49SiMP0PnI, Hits: 12.884, size: 2603, queued_as: C34EAA70A45, 3795 ms
 
E giustamente viene identificata come SPAMMY perchè ho settato :
 
$sa_tag_level_deflt = undef; # add spam info header if at, or above that level
$sa_tag2_level_deflt = 4.0;  # add 'spam detected' headers at that level
$sa_kill_level_deflt = 20;  # triggers spam evasive actions (e.g. blocks mail)
$sa_spam_subject_tag = '****SPAM**** ';
$final_spam_destiny       = D_PASS;
 
Quindi sotto ai 20 punti la mail deve essere contrassegnata come SPAM ma deve essere consegnata.
 
Il fatto è che negli header della mail trovo :
 
Received: from murder ([unix socket])
         by mail (Cyrus v2.2.12) with LMTPA;
         Mon, 08 Mar 2010 16:05:06 +0100
X-Sieve: CMU Sieve 2.2
Received: from mail.xxxxxxx.com (mail.xxxxx.com [192.168.10.14])
        by mail.xxxxx.com (Postfix) with ESMTP id F008F1104001
        for <assistenza@xxxxxxxxxxxxxxxx>; Mon,  8 Mar 2010 16:05:05 +0100 (CET)
Received: from mx.yyyyyyyyyyyy.com (mx.yyyyyyyyyyyy.com [83.139.194.164])
        by mail.xxxxxx.com (Postfix) with SMTP id 9079343837F
        for <postmaster@xxxxxxx>; Mon,  8 Mar 2010 16:05:05 +0100 (CET)
Received: from localhost (localhost.localdomain [127.0.0.1])
        by mx.yyyyyyyyyyyy.com (Postfix) with ESMTP id C34EAA70A45
        for <postmaster@xxxxxxx>; Mon,  8 Mar 2010 16:05:05 +0100 (CET)
X-Virus-Scanned: amavisd-new 2.6.4 (20090625) at relay.yyyyyyyyyyyy.com
Received: from mx.yyyyyyyyyyyy.com ([127.0.0.1])
        by localhost (relay.yyyyyyyyyyyy.com [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id 4+49SiMP0PnI for <postmaster@xxxxxxx>;
        Mon,  8 Mar 2010 16:05:02 +0100 (CET)
Received: from mx2.netribe.it (unknown [81.208.35.119])
        by mx.yyyyyyyyyyyy.com (Postfix) with SMTP id C10A8A70A72
        for <postmaster@xxxxxxx>; Mon,  8 Mar 2010 15:04:00 +0000 (UTC)
Received: from affinis.us (unknown [190.66.24.100])
        by mx2.netribe.it (Postfix) with SMTP id AC214B2C7D
        for <postmaster@xxxxxxx>; Mon,  8 Mar 2010 16:25:28 +0100 (CET)
From: Approved VIAGRAXX Store <postmaster@xxxxxxx>
Subject: Your Future Order with 71% off retail
To: <postmaster@xxxxxxx>
MIME-Version: 1.0
Content-Type: text/html
Message-Id: <20100308152528.AC214B2C7D@xxxxxxxxxxxxxx>
Date: Mon,  8 Mar 2010 16:25:28 +0100 (CET)
 
Ora, la mail ha come mittente "postmaster" ed è indirizzata a "postmaster" di un dominio gestito e arriva da un server MX per il dominio.
Ma riscontro lo stesso problema anche su altre mail non indirizzate a postmaster.
 
Però non trovo NULLA nella documentazione e/o su Google che giustifichi tale comportamento.
 
Perchè non mi scrive gli header ????
Sono io che sbaglio e mi sto perdendo in un bicchiere d'acqua ?
 
Ciao
Riccardo
 



----
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it

Sponsor:
Apri Conto Arancio entro il 28 febbraio 2010 e ricevi 50 Euro da spendere presso Media World. Aprilo adesso
Clicca qui



_______________________________________________
Erlug mailing list
Erlug@xxxxxxxxxxxxxx
http://erlug.linux.it/cgi-bin/mailman/listinfo/erlug
-----------------------------------------------------------
ErLUG webzine: http://erlug.linux.it
Manuali FDL:
LinuxFacile - http://linuxfacile.medri.org/
Linux Da Zero - http://erlug.linux.it/linuxdazero/
Connettivita' offerta da Ehiweb.it - http://www.ehiweb.it/
-----------------------------------------------------------
<Prev in Thread] Current Thread [Next in Thread>