15 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Weird messages re...
FromSent OnAttachments
M CoreOct 18, 2007 11:13 pm 
Gordan BobicOct 19, 2007 12:56 am 
Leigh S. Jones, KR6XOct 19, 2007 6:01 am 
Alessandro VeselyOct 19, 2007 7:28 am 
M CoreOct 19, 2007 8:07 am 
Gordan BobicOct 19, 2007 8:24 am 
Marcin 'Rambo' RoguskiOct 19, 2007 8:29 am 
Gordan BobicOct 19, 2007 8:36 am 
Johnny C. LamOct 19, 2007 9:26 am 
Alessandro VeselyOct 19, 2007 10:28 am 
Alessandro VeselyOct 19, 2007 11:14 am 
M CoreOct 19, 2007 1:11 pm 
Johnny C. LamOct 19, 2007 1:34 pm 
Gordon MessmerOct 19, 2007 4:18 pm 
Gordon MessmerOct 19, 2007 4:21 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: [courier-users] Weird messages receivedActions...
From:Johnny C. Lam (jlam@buildlink.org)
Date:Oct 19, 2007 9:26:16 am
List:net.sourceforge.lists.courier-users

Gordan Bobic wrote:

Are there any docs on how to write filters for courier?

The courierfilter manpage spells out exactly what a filter must do.

It would also be worth checking if "MAIL FROM:" is the same as "From:" and "RCPT TO:" is the same as "To:". Can anyone think of why these would ever be inconsistent in a valid email?

The first argument to "MAIL FROM:" is the mailbox where errors and DSNs are sent. This is different from the "From:" header, which should be the mailbox of the author of the message and also the default "reply-to" address. These two can easily not match when address extensions and mailing lists are involved.

The first argument to "RCPT TO:" very often doesn't match the "To:" header if you receive the mail due to a Bcc: or have aliases or mail forwarding or mailing lists.

If you want to not receive these spams, then reject these messages by better checking of the envelope (MAIL and RCPT) or do body inspection. Do not try to force message headers to match the envelope -- there is a reason why those are different concepts.

Cheers,