How to configure mail server to report a hostname distinct from server name [closed]
Make sure the content of /etc/mailname
is example.com
. If not, change it and reboot:
sudo nano /etc/mailname
sudo reboot
Reconfigure exim4:
sudo dpkg-reconfigure exim4
One of the questions it'll ask you is for the "System mail name". You want to change that.