[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sendmail+spamass-milter+cyrus-imapd
From: |
Dan Nelson |
Subject: |
Re: sendmail+spamass-milter+cyrus-imapd |
Date: |
Tue, 2 Dec 2003 10:41:11 -0600 |
User-agent: |
Mutt/1.5.5.1i |
In the last episode (Dec 02), L/E/G said:
> FreeBSD
> I use sendmail-8.12.10+spamassassin-2.0+spamass-milter+cyrus-imapd-2.0.17.
In the last episode (Dec 02), Leo said:
> I tried the option -b
>
> The mail marked as a spam went in to boxes
> -recipients
> -address in -b
In the last episode (Dec 02), Leo said:
> Dec 2 12:44:45 www sendmail[79980]: hB29iapG079980: from=<address@hidden>,
> size=30666, class=0, nrcpts=1, msgid=<address@hidden>, proto=ESMTP,
> daemon=MTA, relay=[212.216.176.221]
> Dec 2 12:44:45 www spamd[30329]: connection from localhost.strs.ru
> [127.0.0.1] at port 4131
> Dec 2 12:44:45 www spamd[80013]: processing message <address@hidden> for
> root:65534.
> Dec 2 12:44:50 www spamd[80013]: identified spam (5.7/5.2) for root:65534 in
> 4.9 seconds, 31295 bytes.
> Dec 2 12:44:52 www drweb-smf: dwlib: scan: message sent by <address@hidden>
> is passed
> Dec 2 12:44:52 www drweb-smf: [hB29iapG079980]: processing message from
> <address@hidden> completed (exit code 3)
> Dec 2 12:44:52 www sendmail[80016]: hB29iapG079980:
> address@hidden,<address@hidden>, delay=00:00:09, xdelay=00:00:00,
> mailer=cyrus, pri=60666, relay=localhost, dsn=2.0.0, stat=Sent
Could you temporarily raise the mail logging level in syslog.conf, so
it logs libmilter calls? Using
mail.* /var/log/maillog
and restarting syslogd should be enough. Here's what I see when I use
"-b spam" and send myself a test message:
Dec 2 10:03:53 <2.6> dan sm-mta[32629]: hB2G3pEf032629: Milter add: header:
X-Spam-Status: Yes, hits=10.0 required=8.0 tests=TESTSPAM autolearn=no
\n\tversion=2.60
Dec 2 10:03:53 <2.3> dan spamass-milter[26903]: SA score: 10
Dec 2 10:03:53 <2.6> dan sm-mta[32629]: hB2G3pEf032629: Milter add: rcpt: spam
Dec 2 10:03:53 <2.6> dan sm-mta[32629]: hB2G3pEf032629: Milter add: header:
X-Spam-Orig-To: <address@hidden>
Dec 2 10:03:53 <2.6> dan sm-mta[32629]: hB2G3pEf032629: Milter delete: rcpt
<address@hidden>
Dec 2 10:03:53 <2.6> dan sm-mta[32629]: hB2G3pEf032629: Milter add: header:
X-Spam-Report: \n\t* 10 TESTSPAM
Dec 2 10:03:53 <2.6> dan sm-mta[32629]: hB2G3pEf032629: Milter add: header:
X-Spam-Level: **********
Dec 2 10:03:53 <2.6> dan sm-mta[32629]: hB2G3pEf032629: Milter add: header:
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on
\n\tdan.emsphone.com
Dec 2 10:03:53 <2.6> dan sm-mta[32629]: hB2G3pEf032629: Milter change: header
Subject: from TESTSPAM to *****SPAM***** TESTSPAM
Dec 2 10:03:53 <2.6> dan sm-mta[32629]: hB2G3pEf032629: Milter message: body
replaced
Dec 2 10:03:54 <2.6> dan sm-mta[32637]: hB2G3pEf032629: to=/var/mail/spam,
ctladdr=spam (26/0), delay=00:00:03, xdelay=00:00:01, mailer=*file*, pri=30956,
dsn=2.0.0, stat=Sent
With the extra logging, you can see that sendmail removed
"<address@hidden>" and added "spam", and delivered to
/var/mail/spam and nothing else. If you see a "Milter delete: rcpt"
line but the mail still gets delivered, there may be a bug in sendmail
that I can't reproduce. Two other people reported this problem back in
July, but one worked around the problem, and I never got a response
from the other.
http://mail.gnu.org/archive/html/spamass-milt-list/2003-07/msg00012.html
Please try the attached patch and let me know if it helps. It changes
the code so that instead of adding the -b address first, it deletes the
original addresses first.
--
Dan Nelson
address@hidden
spamass-milter.diff
Description: Text document