I have created a second postfix server in my LAN. The idea is to use both in a 
failover/loadbalancing setting for now. At the back are two dovecots that 
replicate to each other.

When mail is sent out via my router, it picks up anything that goes out to port 
25 and makes sure it comes from mail.rna.nl (source NAT).

In the single mail server, I have:

main.cf:myhostname = mail.rna.nl

which creates a HELO that fits the reverse DNS of mail.rna.nl because of that 
source NAT. That works.

But now I have two mail servers, say, internally they are called a.rna.nl and 
b.rna.nl

I can have both configured like this:

main.cf:myhostname = mail.rna.nl

or I can have both configured like this:

main.cf:myhostname = a.rna.nl
main.cf:smtp_helo_name = mail.rna.nl

is there a reason to do one or the other?

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R&A IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

Reply via email to