3 messages in net.sourceforge.lists.courier-maildropRe: [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:Re: [maildropl] ConfigurationActions...
From:mouss (use@free.fr)
Date:Jul 30, 2006 4:14:00 pm
List:net.sourceforge.lists.courier-maildrop

Will Hawes wrote:

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 }

[snip]

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.

run maildrop manually:

maildrop -V 6 -d user@domain.example < message.eml

and see what it says.

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.

for maildropfilter manpage: Note: The grammar of this if statement is stricter than usual. If you get baffling syntax errors from maildrop, make sure that the braces, and the if statement, appear on separate lines. Specifically: the closing parenthesis, the closing braces, and the else statement, must be at the end of the line (comments are allowed), and there may not be any blank lines in between (not even ones containing comments only).

I would try if (/^random string/) { exception { to Maildir/.Test/ } }