1. I have disable dspam routers, I am only using SpamAssassin.
2. Also, I have set "no_mbox_unspool" which saves spooled copies of messages
after acl_smtp_data ACL has finished running.
3. The message is sent to [EMAIL PROTECTED]
4. The spooled copy of message is piped to dbmail-smtp to another mailbox
([EMAIL PROTECTED]).
cat /var/spool/exim/scan/1IzQI3-0004uD-Ox/1IzQI3-0004uD-Ox.eml |
/usr/local/sbin/dbmail-smtp -d [EMAIL PROTECTED]
-- (2)
# 2. Exim - acl_smtp_data ACL - SpamAssassin
warn hosts = 127.0.0.1
condition = ${if <{$spam_score_int}{25} {1}}
add_header = X-Spam-Score: $spam_score ($spam_bar)\n\
X-Spam-Report: $spam_report
control = no_mbox_unspool
--
SMTP session:
-- (3)
[EMAIL PROTECTED] ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 centos.wizwerx.com ESMTP Exim 4.63 Tue, 04 Dec 2007 13:25:27 +0800
HELO test8
250 centos.wizwerx.com Hello test8 [127.0.0.1]
MAIL FROM:<[EMAIL PROTECTED]>
250 OK
RCPT TO:<[EMAIL PROTECTED]>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
From: "Wallace" <[EMAIL PROTECTED]>
To: wallace <[EMAIL PROTECTED]>
Subject: Test 8
This line works, however,
From what I know, this doesn't work.
.
250 OK id=1IzQI3-0004uD-Ox
QUIT
221 centos.wizwerx.com closing connection
Connection closed by foreign host.
--
Exim spooled copy of message:
-- (4)
[EMAIL PROTECTED] ~]# cat
/var/spool/exim/scan/1IzQI3-0004uD-Ox/1IzQI3-0004uD-Ox.eml
From [EMAIL PROTECTED] Tue Dec 04 13:26:09 2007
X-Envelope-From: <[EMAIL PROTECTED]>
Received: from [127.0.0.1] (port=57628 helo=test8)
by centos.wizwerx.com with smtp (Exim 4.63)
(envelope-from <[EMAIL PROTECTED]>)
id 1IzQI3-0004uD-Ox
for [EMAIL PROTECTED]; Tue, 04 Dec 2007 13:26:09 +0800
From: "Wallace" <[EMAIL PROTECTED]>
To: wallace <[EMAIL PROTECTED]>
Subject: Test 8
Message-Id: <[EMAIL PROTECTED]>
Date: Tue, 04 Dec 2007 13:26:02 +0800
This line works, however,
From what I know, this doesn't work.
--
Email message source in [EMAIL PROTECTED] mailbox:
-- (3)
Received: from [127.0.0.1] (port=57628 helo=test8) by centos.wizwerx.com
with smtp (Exim 4.63) (envelope-from <[EMAIL PROTECTED]>)
id 1IzQI3-0004uD-Ox for [EMAIL PROTECTED];
Tue, 04 Dec 2007 13:26:14 +0800
From: "Wallace" <[EMAIL PROTECTED]>
To: wallace <[EMAIL PROTECTED]>
Subject: Test 8
Message-Id: <[EMAIL PROTECTED]>
Date: Tue, 04 Dec 2007 13:26:02 +0800
X-Spam-Score: -1.4 (-)
X-Spam-Report: Spam detection software, running on the system
"centos.wizwerx.com", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: This line works, however, From what I know, this
doesn't
work.
[...]
Content analysis details: (-1.4 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP
Return-Path: "Wallace" <[EMAIL PROTECTED]>
MIME-Version: 1.0
X-DBMail-PhysMessage-ID: 33395
This line works, however,
--
Email message source in [EMAIL PROTECTED] mailbox:
-- (4)
X-Envelope-From: <[EMAIL PROTECTED]>
Received: from [127.0.0.1] (port=57628 helo=test8) by centos.wizwerx.com
with smtp (Exim 4.63) (envelope-from <[EMAIL PROTECTED]>)
id 1IzQI3-0004uD-Ox for [EMAIL PROTECTED];
Tue, 04 Dec 2007 13:26:09 +0800
From: "Wallace" <[EMAIL PROTECTED]>
To: wallace <[EMAIL PROTECTED]>
Subject: Test 8
Message-Id: <[EMAIL PROTECTED]>
Date: Tue, 04 Dec 2007 13:26:02 +0800
Return-Path: "Wallace" <[EMAIL PROTECTED]>
MIME-Version: 1.0
X-DBMail-PhysMessage-ID: 33396
This line works, however,
--
Aleksander Kamenik wrote:
I tried exactly the same SMTP session as you (except MAIL FROM and RCPT
TO). Worked for me.
In the dspam headers you can see "I+know, 0. 26406," is in, so at least
we know exim delivers the message to dspam successfully.
Wallace Tan wrote:
command = "/usr/local/sbin/dbmail-smtp -d [EMAIL PROTECTED]"
You could take the message with headers and everything and try to feed
it to dbmail-smtp the same way exim does, then you'll know for sure
whether the bug is with dbmail or exim/dspam.
cat messagefile | /usr/local/sbin/dbmail-smtp -d [EMAIL PROTECTED]
Regards,
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail