[Mimedefang] Verizon and greylisting

Jeff Rife mimedefang at nabs.net
Fri Dec 22 19:44:27 EST 2006


On 20 Dec 2006 at 10:19, Whit Blauvelt wrote:

> What I'm now trying (unproven) is:
> 
> if ($RelayHostname =~ /sv[1-99]pub.verizon.net/) { return ('ACCEPT_AND_NO_MORE_FILTERING', 'OK'); }
> 
> before the greylist code.

The following will deal with any callbacks (like from Verizon) or with
any DSN e-mails:

filter_recipient:
   ...
read_commands_file();

if ($Sender eq '<>')        # don't greylist here for DSN or callback
  {
  if ($#Recipients > 1)     # Can't have more than one with null sender
    {
    return ('TEMPFAIL', 'Only one recipient allowed for null sender', 451, "4.7.1");
    }
  }
else
  {
  if (should_we_greylist($Sender, $recipient, $ip))
    {
    return ('TEMPFAIL', 'Greylisting');
    }
  }
   ...


filter_begin:
   ...
if ($Sender eq '<>')        # now we greylist for DSN or callback
  {
  if (should_we_greylist($Sender, $Recipients[0], $ip))
    {
    action_tempfail('Greylisting',451,"4.7.1");
    }
  }
   ...

Fill in the "should_we_greylist" call with whatever you use to decide 
whether to greylist a transaction.


--
Jeff Rife |  Sam: What d'ya say to a beer, Normie? 
          |  
          | Norm: Hi, sailor...new in town? 





More information about the MIMEDefang mailing list