> On 13 Jan 2023, at 16:22, Gerben Wierda <gerben.wie...@rna.nl> wrote:
> 
> 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 <http://mail.rna.nl/> 
> (source NAT).
> 
> In the single mail server, I have:
> 
> main.cf:myhostname = mail.rna.nl <http://mail.rna.nl/>
> 
> which creates a HELO that fits the reverse DNS of mail.rna.nl 
> <http://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 
> <http://a.rna.nl/> and b.rna.nl <http://b.rna.nl/>
> 
> I can have both configured like this:
> 
> main.cf:myhostname = mail.rna.nl <http://mail.rna.nl/>
> 
> or I can have both configured like this:
> 
> main.cf:myhostname = a.rna.nl <http://a.rna.nl/>
> main.cf:smtp_helo_name = mail.rna.nl <http://mail.rna.nl/>
> 
> is there a reason to do one or the other?

Answering myself: 

myhostname = a.rna.nl
smtpd_banner = mail.rna.nl
smtp_helo_name = mail.rna.nl

is an easy way (I had forgotten about smtpd_banner)

G

Reply via email to