[Mimedefang] Question about my filter/header
Lavoie,Alain [CMC]
Alain.Lavoie at ec.gc.ca
Tue Jul 6 15:54:32 EDT 2004
Hi guys!
I implement in filter_recipient the check to block spam who spoof
the helo define in the How-To.
http://www.mimedefang.org/node.php?id=18 The only modification I added
is the addition of the sender.
my $x = 0;
if($helo =~ /(^|.)my.domain$/i) { $x = 1; }
if($sender =~ /(^|.)my.domain$/i) { $x = 1; }
if($x == 1)
{
if($ip !~ /^(1\.2\.|4\.5\.|3\.3\.|9\.12\.)/)
{
return("REJECT", "Connection rejected");
}
}
The check is working great but sometimes I received spam from my domain.
I check the headers and
the Return-Path: is from my domain. Maybe I'm wrong but this header is
from the mail from: command!?!
I don't know why those spams are passing through with this header... is
there someone who have an idea?
Thanks a lot!
Levoy
More information about the MIMEDefang
mailing list