smtpd_relay_restrictions ready for general use

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

smtpd_relay_restrictions ready for general use

Wietse Venema
After a few iterations the smtpd_relay_restrictions is ready for
general use. I have uploaded snapshot 20121007.


Major changes with snapshot 20121007

This version introduces the smtpd_relay_restrictions feature
for mail relay control. The new built-in default settings are:

    smtpd_relay_restrictions =

    smtpd_recipient_restrictions =
        ( optional spam blocking rules would go here )

For comparison, this is the Postfix before 2.10 default:

    smtpd_recipient_restrictions =
        ( optional spam blocking rules would go here )

With Postfix versions before 2.10, the mail relay policy and spam
blocking policy were combined under smtpd_recipient_restrictions,
resulting in error-prone configuration.

As of Postfix 2.10, the mail relay policy is preferably implemented
with smtpd_relay_restrictions, so that a permissive spam blocking
policy under smtpd_recipient_restrictions will not unexpectedly
result in a permissive mail relay policy.

As usual, this new feature is introduced with safety nets to prevent
surprises when a site upgrades from an earlier Postfix release.

1 - FORWARD COMPATIBILITY SAFETY NET: the Postfix installation
    procedure adds the following smtpd_relay_restrictions entry to when there is none:

    smtpd_relay_restrictions =

    If your site has a complex mail relay policy configured under
    smtpd_recipient_restrictions, this safety net will defer mail
    that the built-in smtpd_relay_restrictions setting would bounce.

    To eliminate this safety net, take one of the following three

    - Set smtpd_relay_restrictions empty, and keep using the existing
      mail relay authorization policy in smtpd_recipient_restrictions.

    - Copy the existing mail relay authorization policy from
      smtpd_recipient_restrictions to smtpd_relay_restrictions.

    - Set smtpd_relay_restrictions by hand to the new built-in
      policy: permit_mynetworks reject_unauth_destination.

    There is no need to change the value of smtpd_recipient_restrictions.

2 - BACKWARDS COMPATIBILITY SAFETY NET: sites that migrate from
    Postfix versions before 2.10 can set smtpd_relay_restrictions
    to the empty value, and use smtpd_recipient_restrictions exactly
    as they used it before.