11

I have a VPS set up with Ubuntu 10.04 Lucid running exim4 as the MTA. The machine name itself is something easily recognizable to us (in this case, 'Fermat'), but the machine itself is responsible for serving up one of our domains (i.e. www.example.com).

When generating an email from exim, the email headers are reporting the server name (Fermat) instead of the domain name (example.com).

Is there a way to 'force' exim to report the server name as example.com without changing the machine's host name?

Error404
  • 8,278
  • 3
  • 35
  • 60
jerhinesmith
  • 1,733

2 Answers2

5

Make sure the content of /etc/mailname is example.com. If not, change it and reboot:

sudo nano /etc/mailname
sudo reboot
Weboide
  • 10,783
4

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.

lfaraone
  • 4,749