Hello, all.
I am having trouble getting maildrop to invoke SpamAssassin for me.
Although I have installed SpamAssassin, checked that the server is
running, and can see its output in the maillog when I send test messages
manually, courier doesn't seem to be invoking SpamAssassin at all. When
I send a message I know will be flagged by SpamAssassing as Spam,
courier delivers it straight to the regular INBOX without the extra
headers added. :(
Here are the relevant lines from /etc/courer/courierd:
DEFAULTDELIVERY="| /usr/bin/spamc | /usr/lib/courier/bin/maildrop"
MAILDROPDEFAULT=./Maildir
And here is my /etc/courier/maildroprc:
========================================
logfile "maildrop-filter-log"
if (/^X-Spam-Level: *\*\*\*\*\*.*$/)
{
cc "|/usr/bin/sa-learn --single --spam"
to "Maildir/.Spam"
}
if (/^X-Spam-Level: *\*.*$/)
{
to "Maildir/.AssumedSpam"
}
cc "|/usr/bin/sa-learn --single --ham"
to "Maildir"
========================================
If I make a test email that looks like spam, save it as test_email.txt,
I can run
cat test_email.txt | /usr/bin/spamc | /usr/lib/courier/bin/maildrop
I get the follwing error:
Learned from 1 message(s) (1 message(s) examined).
/usr/lib/courier/bin/maildrop: Unable to create a dot-lock.
I don't know why the error, but I also get the following in my maillog:
========================================
May 31 12:29:18 odin spamd[22610]: connection from odin [127.0.0.1] at
port 36431
May 31 12:29:18 odin spamd[22610]: info: setuid to root succeeded
May 31 12:29:18 odin spamd[22610]: Still running as root: user not
specified with -u, not found, or set to root. Fall back to nobody.
May 31 12:29:18 odin spamd[22610]: processing message (unknown) for root:99.
May 31 12:29:19 odin spamd[22610]: identified spam (7.6/5.0) for root:99
in 0.3 seconds, 520 bytes.
May 31 12:29:19 odin spamd[22610]: result: Y 7 -
ALL_TRUSTED,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,MISSING_DATE,MONEY_BACK,URIBL_AB_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL,URIBL_WS_SURBL
scantime=0.3,size=520,mid=(unknown),autolearn=no
========================================
This indicates to me that SpamAssassin is operating fine, but not geting
invoked b Courier. When I send the same message through the ESMTP
server, the maillog shows no entry for spamd at all...
========================================
May 31 12:24:06 odin courieresmtpd: started,ip=[::ffff:166.84.1.72]
May 31 12:24:06 odin courierd: newmsg,id=0000FAF0.429C8FA6.00005C71:
dns; mail1.panix.com (mail1.panix.com [::ffff:166.84.1.72])
May 31 12:24:06 odin courierd:
started,id=0000FAF0.429C8FA6.00005C71,from=<[EMAIL PROTECTED]>,module=local,[EMAIL
PROTECTED]/data/websites/bentonroberts.com/email/benton!/data/websites/bentonroberts.com/email/benton/Ma...,addr=<[EMAIL
PROTECTED]>
May 31 12:24:06 odin courierd: Waiting. shutdown time=none, wakeup
time=none, queuedelivering=1, inprogress=1
May 31 12:24:06 odin courierlocal:
id=0000FAF0.429C8FA6.00005C71,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>,size=1177,success:
Message delivered.
May 31 12:24:06 odin courierd: completed,id=0000FAF0.429C8FA6.00005C71
May 31 12:24:06 odin courierd: Waiting. shutdown time=Tue May 31
13:23:04 2005, wakeup time=Tue May 31 13:23:04 2005, queuedelivering=0,
inprogress=0
========================================
Is maildrop even operating here? Isn't that where the courierlocal
message comes from? Where's my Assassin?
Thanks for your help,
- benton
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users