Linode Forum
https://forum.linode.com/

Impact of changing hostname on postfix and other software?
https://forum.linode.com/viewtopic.php?f=11&t=9061
Page 1 of 1

Author:  inteja [ Tue Jun 26, 2012 4:02 am ]
Post subject:  Impact of changing hostname on postfix and other software?

I'm running postfix, dovecot, apache, php, mysql etc on Ubuntu 12.04 and (I think) I now need to reset my hostname and regenerate my smtpd.cert SSL certificate so that my certificate is validated by email clients. At the moment, Thunderbird launches a warning dialog saying "Wrong site: Certificate belongs to a different site" and prompting user to cancel or create a security exception.

So, I guess I need to change hostname to reflect my primary domain, then generate a new SSL cert with those same details.

Is this correct, and what other unforeseen impacts could changing the hostname have?

From what I could find, I need to change hostname in "/etc/hostname" and "/etc/hosts", then "sudo service hostname restart" and also change hostname for postfix in "/etc/mailname"

Anywhere else?

Author:  sleddog [ Tue Jun 26, 2012 7:25 am ]
Post subject:  Re: Impact of changing hostname on postfix and other softwar

Postfix identifies itself according to the value set for 'myhostname' in main.cf

If myhostname is not set, the fqdn of the server is used.

So you could set myhostname to agree with your cert....

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/