On Tue, May 30, 2023 at 08:20:20PM +0800, t...@dkinbox.com wrote:

> > In other words, where is the mail ultimately delivered for users to
> > read it?
> 
> I have a primary mx server saying it's mx1.dkinbox.com, where mails are
> stored.

In that case, "load-balancing" makes no sense.  You should assign the
secondary MX host a worse (numerically higher) preference.  The
secondary should configure the domain in question as a "relay" domain.

    relay_domains = example.com

and must have an accurate table of valid recipients:

    relay_recipient_maps = ...

> If I add a backup MX server saying it's mx2.dkinbox.com, I just want both
> the mx1 and mx2 load balances the incoming messages, and mx2 forwards
> messages to mx1 then.

There's no good reason to have mail sent to mx2 unless mx1 is down.

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

Reply via email to