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? 


_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

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