[SOLVED] Setting correct SMTP HELO host, domain name, PTR records for e-mail server

Hi all,

My sincere thanks to @Andy_Wismer.

The most simple working solution is to use a setprop command.

1 → At the ISP (the real owner of the IP address):

  • The PTR record is set to mail.DomainName.

2 → At the domain registrar for the DNS records:

  • There is an A records for DomainName pointing at the IP.
  • There is an A records for mail.DomainName pointing at the IP.
  • There is an A records for myhelo pointing at the IP.

3 → At the NethServer console:

The default HeloHost:

# config show postfix
postfix=service
...
HeloHost=myhelo.DomainName
...
#

Using setprop:

# config setprop postfix HeloHost mail.DomainName
#

# signal-event nethserver-mail-server-update
#

The new HeloHost property:

# config show postfix
postfix=service
...
HeloHost=mail.DomainName
...
#

4 → https://www.mail-tester.com/:
The orange check mark is due to the fact that I didn’t include an unsubscribe link in the email I sent for the test.

●●● Maybe ask the developers to change myhelo.DomainName to mail.DomainName because it is recommended to always use mail and never myhelo as @Andy_Wismer explained.

Michel-André

P.S. The next problem will be with multi-domains, but this is another story by itself…

4 Likes