[Mimedefang] Re: VERY Newbie Question

David F. Skoll dfs at roaringpenguin.com
Fri Oct 29 15:01:48 EDT 2004


On Fri, 29 Oct 2004, Yang Xiao wrote:

> sub filter_sender {
>         my ($sender, $ip, $hostname, $helo) = @_;
>         return('CONTINUE', "OK") if ($ip eq "127.0.0.1");
>         if ($helo =~ /mydomain\.com$/i) {
>                 return ('REJECT', "We Don't Like Spammers, Go Away!!!.");
>         }

That's a good rule.

>         elsif ($ip ne $helo){
>                 return ('REJECT', "You are not who you say you are.")
>         }

That will reject 99.999% of all your e-mail.  Most machines use the
machine name in HELO, not an IP address, so...

--
David.



More information about the MIMEDefang mailing list