Hello, all.
I am trying to use Maildrop to filter incoming mail, but it appears that
the ESMTP server is not using it to deliver mail at all. Here's the
evidence...
When I send the text of a test email directly to Maildrop:
[EMAIL PROTECTED] ~]# cat test_email.txt | maildrop
maildrop: Unable to create a dot-lock.
The spam filter gets invoked just fine, as seen in /var/log/maillog:
=====================
Jun 1 09:45:07 odin spamd[22608]: connection from odin [127.0.0.1] at
port 38271
Jun 1 09:45:07 odin spamd[22608]: info: setuid to root succeeded
Jun 1 09:45:07 odin spamd[22608]: Still running as root: user not
specified with -u, not found, or set to root. Fall back to nobody.
Jun 1 09:45:07 odin spamd[22608]: processing message (unknown) for root:99.
Jun 1 09:45:07 odin spamd[22608]: identified spam (7.6/5.0) for root:99
in 0.3 seconds, 520 bytes.
Jun 1 09:45:07 odin spamd[22608]: 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
=====================
I don't know why the message fails to be delivered - it's probably
trying to deliver to root's $HOME/Maildir or something, since I ran the
test as root. In any case, I can tell that Maildrop is invoking
SpamAssassin from the log file. Anyway, so far so good.
However, when I send the same message through sendmail:
cat test_email.txt | /usr/lib/courier/bin/sendmail
The maillog is completely different! It shows only messages from
courierd and courierlocal, nothing from Maildrop or spamd...
=====================
Jun 1 09:48:55 odin courierd: newmsg,id=0000FAEC.429DBCC7.00000FC0:
dns; localhost (localhost [127.0.0.1])
Jun 1 09:48:55 odin courierd:
started,id=0000FAEC.429DBCC7.00000FC0,from=<[EMAIL PROTECTED]>,module=local,[EMAIL PROTECTED]/data/websites/bentonroberts.com/email/benton!/data/websites/bentonroberts.com/email/benton/Ma...,addr=<[EMAIL PROTECTED]>
Jun 1 09:48:55 odin courierd: Waiting. shutdown time=none, wakeup
time=none, queuedelivering=1, inprogress=1
Jun 1 09:48:55 odin courierlocal:
id=0000FAEC.429DBCC7.00000FC0,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>,size=784,success:
Message delivered.
Jun 1 09:48:56 odin courierd: completed,id=0000FAEC.429DBCC7.00000FC0
Jun 1 09:48:56 odin courierd: Waiting. shutdown time=Wed Jun 1
09:58:43 2005, wakeup time=Wed Jun 1 09:58:43 2005, queuedelivering=0,
inprogress=0
=====================
The message never gets processed by the spam filter, and just gets
dropped into the Inbox as usual. :(
I notice that the output there includes "module=local" -- shouldn't it
say something about Maildrop instead? I need to make sure I've got
everything set up to invoke Maildrop correctly...
=====================
[EMAIL PROTECTED] ~]# grep DEFAULTDELIVERY /etc/courier/courierd
##NAME: DEFAULTDELIVERY:0
DEFAULTDELIVERY="|/usr/lib/courier/bin/maildrop"
[EMAIL PROTECTED] ~]# cat /etc/courier/maildrop
/usr/lib/courier/bin/maildrop
=====================
As far as I can tell from the docs, this is all that's necessary to
enable Maildrop processing, but it's not happening for me. Any ideas?
Many thanks in advance,
-benton
-------------
Benton Roberts
[EMAIL PROTECTED]
-------------------------------------------------------
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