Hide real hostname from SMTP greeting

masterx

Active Member
Jun 6, 2020
29
7
43
25
Hi

is it possible to hide or better change the hostname which is being presented when connecting with the mail gateway? It discloses my internal domain name and tbh the internal hostname is none of anyones business either... I'd like to change it to the mx record's name.

Thanks!
BR
 
is it possible to hide or better change the hostname which is being presented when connecting with the mail gateway? It discloses my internal domain name and tbh the internal hostname is none of anyones business either... I'd like to change it to the mx record's name.

not 100% sure if I get where exactly you'd like to change the hostname (if possible provide a screendump as text/screenshot where it's shown)

but the following suggestions might help:
* if possible consider changing the hostname of pmg (/etc/hostname, /etc/resolv.conf, /etc/hosts) to the value you'd like to see:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_configuration_files_overview
* you can override the smtpd_banner in the main.cf.in template:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

I hope this helps!