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.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to