[Mimedefang] MX -> 127.0.0.1

Joseph Brennan brennan at columbia.edu
Mon Sep 12 09:57:16 EDT 2005


> 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();
>>         }






More information about the MIMEDefang mailing list