4 messages in net.sourceforge.lists.courier-usersRe: [courier-users] do maildrop filte...
FromSent OnAttachments
Bryan IrvineNov 23, 2005 2:59 pm 
Sam VarshavchikNov 23, 2005 3:21 pm 
Bryan IrvineNov 23, 2005 5:37 pm 
Sam VarshavchikNov 23, 2005 5:46 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] do maildrop filters support else?Actions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Nov 23, 2005 3:21:40 pm
List:net.sourceforge.lists.courier-users

Bryan Irvine writes:

I'm trying to get a handle on mailfilters, which I'm doing slowly but surely.

The filter I'm currently trying to write should redirect all emails for a specific account to the webmaster address if it didn't come from a specific address (to keep people from spamming the list while the full MLM is being set up), otherwise forward the emails off to the subscribers of the list.

something along the lines of:

# IP changed to protect the guilty if (!/^Received:.*\[10.0.0.1]+/){ to "webmaster@mydomain" }else{ bcc "address1" bcc "address2" etc.... }

You almost got it right.

Spacing is important. The correct formatting is:

if ( [condition] ) {

} else {

}

Opening and closing braces must appear on a line by themselves, and no intervening blank lines.

There is no bcc statement, you want the cc statement.

See the maildropfilter man page for more information.