[Mimedefang] Re: MX - > 127.0.0.1

M Jerome Garrett jgarrett at techsolutions.cc
Mon Sep 12 14:15:51 EDT 2005


What is the larger "if" that "excludes certain messages"?

Jerome

-----Original Message-----
From: mimedefang-bounces at lists.roaringpenguin.com
[mailto:mimedefang-bounces at lists.roaringpenguin.com] On Behalf Of
mimedefang-request at lists.roaringpenguin.com
Sent: Monday, September 12, 2005 11:00 AM
To: mimedefang at lists.roaringpenguin.com
Subject: MIMEDefang Digest, Vol 24, Issue 23

Send MIMEDefang mailing list submissions to
	mimedefang at lists.roaringpenguin.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
or, via email, send a message with subject or body 'help' to
	mimedefang-request at lists.roaringpenguin.com

You can reach the person managing the list at
	mimedefang-owner at lists.roaringpenguin.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MIMEDefang digest..."


Today's Topics:

   1. Re: MX -> 127.0.0.1 (Joseph Brennan)
   2. Re: MX -> 127.0.0.1 (Joseph Brennan)


----------------------------------------------------------------------

Message: 1
Date: Mon, 12 Sep 2005 09:57:16 -0400
From: Joseph Brennan <brennan at columbia.edu>
Subject: Re: [Mimedefang] MX -> 127.0.0.1
To: mimedefang at lists.roaringpenguin.com
Message-ID: <3084A74BB2544B43715A3016 at sodor.cc.columbia.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed


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





------------------------------

Message: 2
Date: Mon, 12 Sep 2005 10:04:03 -0400
From: Joseph Brennan <brennan at columbia.edu>
Subject: Re: [Mimedefang] MX -> 127.0.0.1
To: mimedefang at lists.roaringpenguin.com
Message-ID: <E37846A5EF8C5BDC2F6CEF9A at sodor.cc.columbia.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed


> Also does this actually do the MX lookup?  The ones I'm getting
> have reasonable looking names and you don't see the problem
> until you follow the MX record and find the IP address is
> 127.0.0.1, 0.0.0.0 or something equally crazy.  I have
> sendmail set to reject if the sending domain doesn't resolve,
> but it doesn't care about the IP value.


No, we don't look up the mx record (yet?!).  That's a good point.

Joseph Brennan
Columbia University Information Technology





------------------------------

_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


End of MIMEDefang Digest, Vol 24, Issue 23
******************************************




More information about the MIMEDefang mailing list