6 messages in net.sourceforge.lists.courier-users[courier-users] .mailfilter ignored
FromSent OnAttachments
Moshe GurvichJul 9, 2002 7:23 pm 
Sam VarshavchikJul 9, 2002 8:02 pm 
Moshe GurvichJul 9, 2002 8:39 pm 
Moshe GurvichJul 9, 2002 10:10 pm 
Mike A. SauvainJul 11, 2002 11:17 am 
mosh...@kabbalah.comJul 11, 2002 5:24 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:[courier-users] .mailfilter ignoredActions...
From:Moshe Gurvich (mos@post.kabbalah.com)
Date:Jul 9, 2002 7:23:39 pm
List:net.sourceforge.lists.courier-users

Hi, I'm trying to make .mailfilter that would reply with "bad user" message to some senders.

It seems that courier just ignores .mailfilter, because the user receives matched emails and test line `cc "!cont@domain.com"` is not performed.

I'm not sure also that maildroprc is in use. What could be the problem? Is there a way to trace maildrop's execution? Thank you.

The configuration is as follows:

# cat /etc/courier/maildrop /usr/lib/courier/bin/maildrop

# cat /etc/courier/maildroprc xfilter "/usr/bin/spamc"

# ls $HOME/.mailfilter -rw------- 1 virtual virtual 222 Jul 9 19:03 .mailfilter

# cat $HOME/.mailfilter cc "!cont@domain.com" /^From:.*/ FROM = getaddr($MATCH) if ($FROM="cont@domain.com") { xfilter "reformail -r -t" to "| ( cat - ; echo ''; cat baduser.msg) | $SENDMAIL" }