This looks like a good idea! Where (which routine) did you add this to
your relay? filter_end?

Also, does this stop people from using sendmail directly to send email or
the few local users who might send mail with mutt or pine?


Oops!!  Sorry.  This comes inside a large "if" that excludes certain
messages, such as mail from 127.0.0.1, mail sent with smtp auth, and
mail sent from our own shell login hosts and webmail hosts.  That's
a bit different, isn't it!

This is in filter_begin().

Joseph Brennan
Columbia University Information Technology




We've been doing this for quite a while:

        if ($RelayHostname eq "localhost") {
            md_graphdefang_log('bounce',"PTR_to_localhost",$RelayAddr);
            action_bounce("You are not localhost");
            return action_discard();
        }

        if ($Helo eq "localhost") {
            md_graphdefang_log('bounce',"HELO_localhost",$RelayAddr);
            action_bounce("You are not me");
            return action_discard();
        }



_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to