[Mimedefang] Block Sender Multiple Address
Ricardson Williams
ricardsonwilliams at gmail.com
Sat Jun 7 12:55:35 EDT 2014
Hi all,
We receive a lot of spam from "www-data at 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
return-domainxxxx21636467 at spammer.com 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
More information about the MIMEDefang
mailing list