Hide real hostname from SMTP greeting

masterx

Member
Jun 6, 2020
26
6
23
24
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!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!