Hi all,
We receive a lot of spam from "www-data@xxxxx17363"@domain.com so I
create a rule like below and works pretty well, but I don't know how to
create a variation to block everything that starts with "return-" like
[email protected] my ideia is create a variable like
%BadSenders but I really don't know how to code that, actually is better
point to a file. ($BadSender = /etc/mail/mimedefang-badsenders).
sub filter_sender {
my ($sender, $ip, $hostname, $helo) = @_;
if ($sender =~
/^<?"www-data\@([A-Z][a-z0-9_.=]*)"\@([A-Z][a-z0-9.-]*)>?$/i) {
return ('REJECT', "Reject -
http://www.example.com/postmaster.html");
}
return ('CONTINUE', "ok");
}
Regards,
Ricardson
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang