Adriel via Postfix-users:
> If users are added in main MX, how can they be synchronized to backup MX 
> for relay access?

Use Postfix recipient addres verification. 
https://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient

This populates a valid recipient address cache on the remote MX.
Doing this makes sense if your list of valid addresses changes a
often. Otherwise just use a static list.

For this to work, both local and remote MX should have the same MX
preference, with the remote MX having a transport_maps setting that
routes your domain to the local MX.

Both MXes should have the same anti-spam policy.

On the remote MX:

/etc/postfix/main.cf:
    smtpd_recipient_restrictions = 
        permit_mynetworks
        # reject_unauth_destination is not needed here if the mail
        # relay policy is specified under smtpd_relay_restrictions
        # (available with Postfix 2.10 and later).
        reject_unauth_destination
        ...
        reject_unverified_recipient
        ...
    # Privacy feature.
    # unverified_recipient_reject_reason = Address lookup failed

    # Forward this domain to the local MX. The [] are required.
    relay_domains = example.com
    transport_maps = inline:{
        { example.com = relay:[local-mx.example.com] }}

The tricky part is the "same anti-spam policy" part.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to