I think the problem is that you are misunderstanding maildrop. I'm no
expert, but I think what you have written will do nothing. If the deliver
location is not changed, or the message sent "to" somewhere, it just goes to
"DEFAULT". You want to send to /dev/null - I remember there being a
discussion on the right way to do that in the list last month. If you find
the /dev/null process send me a reminder? I was going to go looking for it.
m/
-----Original Message-----
From: cour...@lists.sourceforge.net
[mailto:cour...@lists.sourceforge.net]On Behalf Of Courier
Mail
Sent: Friday, December 05, 2003 1:45 AM
To: cour...@lists.sourceforge.net
Subject: [courier-users] (no subject)
Sam..
My ~/.mailfilters/default looks like this:
if ( /^From: *!.*/ && lookup ($MATCH2, "$HOME/.mailfilters/drop.list"))
{
exit
}
Where ~/.mailfilters/drop.list is a list of email addresses I want to
block.. This doesn't work.. Is this a failure in understanding how
maildrop works, or my maildrop is screwed up? If the syntax is screwed up,
courier barfs at me, and so I know it's testing for the condition.. But
it's not trapping anything..
Q2, I tried doing this to my /usr/local/courier/etc/maildroprc and it wasn't
too happy.. :-(
Q3, any way for me to up to amount of debugging info I'm getting?
I ran Courier manually piping in the file to maildrop, and it filtered..???
Thanks.
Albert