Bryan Irvine writes:
On 11/23/05, Sam Varshavchik <mrs...@courier-mta.com> wrote:
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.
ok, does the cc make the recipients known to each other?
Neither. The cc command takes the message, and mails it, unaltered, to the
stated recipients.