[Mimedefang] Bouncing on invalid HELO/EHLO

Edgars Klepers mimedefanglist at eklynx.com
Thu Jun 12 18:22:10 EDT 2003


Bah, brain dead, ignore that message...   Brain ignored the # in front of
the MX_RELAY_CHECK=yes line in the init script.

-----Original Message-----
From: Edgars Klepers [mailto:mimedefanglist at eklynx.com] 
Sent: Thursday, June 12, 2003 3:13 PM
To: 'mimedefang at lists.roaringpenguin.com'
Subject: RE: [Mimedefang] Bouncing on invalid HELO/EHLO


Now how do I call filter_relay?  Or is it automatically done...  I'm
searching for examples, but coming up short.  I added the subfilter_relay in
the main section (not under any other functions) and it still runs the HELO
check I added by the spamasassin checks.

-----Original Message-----
From: mimedefang-admin at lists.roaringpenguin.com
[mailto:mimedefang-admin at lists.roaringpenguin.com] On Behalf Of Jim
McCullars
Sent: Thursday, June 12, 2003 1:31 PM
To: mimedefang at lists.roaringpenguin.com
Subject: RE: [Mimedefang] Bouncing on invalid HELO/EHLO




On Thu, 12 Jun 2003, Jim McCullars wrote:

> > 2 subnets 204.182.112.64/27 and 64.38.151.160/27  (32 ip range)
>
>    I think this should work:
>
> sub filter_relay {
>   my($ip, $name, $helo) = @_;
>   return(1, "OK") if($ip =~/^204\.182\.112\.(?:6[4-9]|7\d|8\d|9[0-5])$/);
>   return(1, "OK") if($ip 
> =~/^64\.38\.151\.(?:16\d|17\d|18\d|19[0-1])$/);

  I just saw another reply to this problem and realized I left out
localhost.  If you go with the above, add this:

    return(1, "OK") if ($ip eq "127.0.0.1");

Jim


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





More information about the MIMEDefang mailing list