On 07/24/18 10:36, Viktor Dukhovni wrote:
> On Tue, Jul 24, 2018 at 09:59:18AM -0400, Phil Stracchino wrote:
> 
>> I'm just not
>> sure of the best way to set things up such that it does NOT get filtered.
> 
> Add the backup MX to an IP-based whitelist.  Check that whitelist
> before all restrictions other than relay control.
> 
>       cidr = cidr:${config_directory}/
> 
>       smtpd_relay_restrictions = 
>           # Something along the lines of
>           permit_mynetworks,
>           permit_sasl_authenticated,
>           reject_unauth_destination
>       smtp_recipient_restrictions =
>           check_client_access ${cidr}whitelist.cidr,
>           # ...
>       smtp_client_restrictions =
>           # If non-empty, start with whitelist check
>           # check_client_access ${cidr}whitelist.cidr,
>           # ...
>       smtp_helo_restrictions =
>           # If non-empty, start with whitelist check
>           # check_client_access ${cidr}whitelist.cidr,
>           # ...
>       smtp_sender_restrictions =
>           # If non-empty, start with whitelist check
>           # check_client_access ${cidr}whitelist.cidr,
>           # ...


OK, it took me a couple of readings to parse what exactly you were doing
with the variable there, but once I cleared that up, it seems to be
working correctly for normal direct delivery.  Now waiting for my
outside co-conspirator to do another forced-backup-MX test.


-- 
  Phil Stracchino
  Babylon Communications
  [email protected]
  [email protected]
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958

Reply via email to