Hi,
I need to copy all mail sent from specific addresses in my domain to another
address for archive purposes, i.e. [EMAIL PROTECTED] or
[EMAIL PROTECTED] to [EMAIL PROTECTED]
I've been using Mimedefang for sometime now, however my rules are somewhat
basic due to my limited knowledge of perl, any help with this one much
appreciated.
>From the man page, I'm thinking filter_sender is what I need to call. I have
the following in my filter.....
sub filter_sender {
my($sender, $hostip, $hostname, $helo) = @_;
if ($sender =~
/[EMAIL PROTECTED]/i)
{
add_recipient('[EMAIL PROTECTED]');
}
}
I'm not really sure the correct place to call filter_sender in the filter.
I've enabled MX_SENDER_CHECK=yes in the init script, so filter_sender is
definitely being called.
All messaged are currently rejected. (on a test machine though, so not to
much of a panic)
Martin.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang