[SOLVED] Change HELO-fqdn independently from server hostname

May 30, 2018
4
1
3
30
Hello all together.

I tried to change the helo-fqdn that the PMG sends to other mailservers on outgoing mails independently from the server hostname. The background is that this PMG server is an internal server with a private IP-address and only the incoming port 25 redirected to it from outside.

Is there an option to configure this helo-fqdn independently from the servers hostname because some mailservers do lookups on the fqdn sent in the helo command?

Thanks in advance!
 
Last edited:
if you use exim, maybe you can modify the file /etc/exim4/exim4.conf.template


I think you can modify this

# In a minimaldns setup, update-exim4.conf guesses the hostname and
# dumps it here to avoid DNS lookups being done at Exim run time.
.ifdef MAIN_HARDCODE_PRIMARY_HOSTNAME
primary_hostname = MAIN_HARDCODE_PRIMARY_HOSTNAME
.endif


and change le primary_hostname.
 
Hello all together.

I tried to change the helo-fqdn that the PMG sends to other mailservers on outgoing mails independently from the server hostname. The background is that this PMG server is an internal server with a private IP-address and only the incoming port 25 redirected to it from outside.

Is there an option to configure this helo-fqdn independently from the servers hostname because some mailservers do lookups on the fqdn sent in the helo command?

Thanks in anvance!
Hi,
PMG?? I think you post in the wrong forum?

PVE use postfix, not exim (I assume PMG too), so you can configure there a lot!

Udo
 
  • Like
Reactions: Jesco C.
You need to copy templates as in admin guide to /etc/pmg/templates and then can adjust main.cf.in to set your own servername, which then been used on HELO. Then sync the templates and you‘re done.

smtp_helo_name is what you‘re searching for.
 
  • Like
Reactions: Jesco C.
You need to copy templates as in admin guide to /etc/pmg/templates and then can adjust main.cf.in to set your own servername, which then been used on HELO. Then sync the templates and you‘re done.

smtp_helo_name is what you‘re searching for.

Thank you very much for your reply!

That actually was the solution. I searched the Configuration Manual for a solution but not the Admin Manual.
Now all is working fine and the Proxmox Mail Gateway sends the spcified HELO-fqdn instead of its own internal hostname.
 
  • Like
Reactions: mdo
Hi,
I have the same problem and i have write this in the /etc/pmg/main.conf.in . but is always wrong in the smtp output.
220 pmg01.xxx.local mx.mydomain.de
I would like only mx.mydomain.de in this output.

Im sorry vor my bad english! ;-)

Thomas