Page 1 of 1

Set SMTP HostName

Posted: Mon Apr 14, 2008 3:31 pm
by brianlj
Hi -
I've recently installed OpenEMM and everything looks to be going well.
The one question I have is how to set the outgoing SMTP hostname. Currently, when mail is sent and you examine the hostname in the header it is set to "vmx.openemm.org". I am concerned that some servers may bounce these messages since the hostname does not match the IP I am sending from.
Can someone tell me how to change the hostname from vmx.openemm.org to the URL I have created for my OpenEMM install?

Much appreciated!
Thanks,
Brian

Posted: Wed Apr 16, 2008 3:03 pm
by ud
Sendmail uses the system hostname (or to be more concrete it uses the system hostname and tries to resolve it for its FQDN). To set the system hostname use the command hostname <hostname> (restart sendmail afterwards) or add it for permanent use in your system files (e.g. /etc/sysconfig/network on CentOS 5, the entry HOSTNAME). Reboot to make this change active.

-- ud