/var/log/maillog, hostname value wrong

bcrooker

Member
Jun 3, 2013
5
0
1
cPanel Access Level
Root Administrator
We migrated to cPanel and initially the hostname was 'vps2'. We later switched it to 'server'. I think everything has been updated correctly, but our /var/log/maillog file still shows vps2 in the first non/datetime column.

e.g.

Jun 5 12:57:51 vps2 pop3d-ssl: blah blah blah...

Is this a cause for concern? Where the heck is it getting the value from?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

Please check to see if your SSL certificates have been updated to the new hostname via:

"WHM Home » Service Configuration » Manage Service SSL Certificates"

If not, you can reset the certificate to a new self-signed one so it uses the new hostname.

Thank you.
 

bcrooker

Member
Jun 3, 2013
5
0
1
cPanel Access Level
Root Administrator
Hello :)

Please check to see if your SSL certificates have been updated to the new hostname via:

"WHM Home » Service Configuration » Manage Service SSL Certificates"

If not, you can reset the certificate to a new self-signed one so it uses the new hostname.

Thank you.
All of the certificates listed on that page show the correct server.blahblah.com name, which is a purchased certificate.

I also checked the /etc/hosts file (at one point the vps2 host was the first line in the file, I corrected that).

Besides the fact that this bugs me seeing that value, it also concerns me that it might be indicative of some configuration somewhere that might bite me in the butt down the road.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Could you open a support ticket so we can investigate and determine where the old hostname is stored at?

Submit A Ticket

Please post the ticket number here so we can keep this thread updated.

Thank you.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
463
438
Finland
cPanel Access Level
Root Administrator
We migrated to cPanel and initially the hostname was 'vps2'. We later switched it to 'server'. I think everything has been updated correctly, but our /var/log/maillog file still shows vps2 in the first non/datetime column.

e.g.

Jun 5 12:57:51 vps2 pop3d-ssl: blah blah blah...

Is this a cause for concern? Where the heck is it getting the value from?
I have had that a few times, and rebooting the server has always fixed it.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
We discovered in the ticket that this happened after a system reboot. This is a common issue on VPS machines, and typically happens when the VPS hardware node still has the old hostname configured. Contacting your VPS provider to have them update the hostname from the hardware node for the VPS will typically resolve this issue.

Thank you.