3 messages in net.sourceforge.lists.courier-maildrop[maildropl] Configuration
FromSent OnAttachments
Will HawesJun 19, 2006 3:35 am 
Mark NienbergJun 19, 2006 4:56 pm 
moussJul 30, 2006 4:14 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] ConfigurationActions...
From:Will Hawes (in@whawes.co.uk)
Date:Jun 19, 2006 3:35:27 am
List:net.sourceforge.lists.courier-maildrop

I've installed maildrop on FreeBSD 4.11-STABLE ("pkg_add -r maildrop") running qmail. I'd like to be able to filter incoming mail both for individual users and on a global basis. After RTFM and Googling I've come up with the following:

ds645# ls -l /usr/local/etc/maildrop* -rw-r--r-- 1 root wheel 0 Jun 19 10:24 /usr/local/etc/maildroprc -rw-r--r-- 1 root wheel 0 Jun 19 10:25 /usr/local/etc/maildroprc.log

ds645# cat /usr/local/etc/maildroprc logfile "maildroprc.log" if( /^random string/ ) { to Maildir/.Test }

ds645# cat ~/.qmail-antiflood | /usr/local/bin/maildrop #mailbox ./users/antiflood/Maildir/

ds645# cat ~/.mailfilter logfile "maildroprc.log" if( /^random string/ ) { to Maildir/.Test }

ds645# ls -l total 14 -rw------- 1 root wheel 74 Jun 19 10:32 .mailfilter -rw-r----- 1 root mail 62 Jun 19 10:07 .qmail-antiflood -rw-r----- 1 root mail 26 Jun 16 16:51 .qmail-default drwxr-x--- 2 ald ald 1024 Jun 19 01:26 logs drwx---r-x 3 2005 sites 512 Nov 4 2005 public_html drwxr-x--- 2 root mail 512 May 19 2005 responders drwxr-x--- 3 root mail 512 Nov 4 2005 users

The aim here is to deliver any messages containing "random string" to the subfolder .Test in my Maildir. At present, messages meeting the criteria are going AWOL. Messages not matching the criteria are being delivered as usual.

I've tried specifying full paths to all log files and mailbox locations, as well as specifying everything with/without quotes. I see no difference in behaviour in either case.

It seems that maildrop is being invoked, but nothing is recorded in either of my maildroprc.log files (presumably due to mis-configuration) and maildrop doesn't seem to be logging to anywhere else. I'm a bit stumped as to where to start looking.

Is there anything obviously wrong with the above configuration? My first thought was a permissions problem - what are the correct permissions for all of these files? The only advice I found in the maildrop docs was to make sure that .mailfilter files are not group/world readable.

Is there some way I could get some debug output out of maildrop? From what I've read it appears manual mode might yield something via STDOUT, but I'm struggling to find a good example.

Where are the missing messages going? I've seen references to the "user's default mailbox" in the documentation but I don't know where that is located. There is only one mailbox for each user account.

Thanks, WH