Return-Path: <root@vps> instead of Return-Path: <root@vps.domain.tld>
Hi Y'all,
I haven't seen anyone else with this issue, resolved or otherwise and, I haven't been able to figure it out myself.
I have recently migrated from an old VPS to a new VPS with a different hosting company.
The problem I'm seeing is that, when I view mail headers of email sent from the server, to my gmail account (other than SMTP), such as PHPMail from Wordpress sites & system emails from the server, I'm seeing;
spf=neutral (google.com: xxx.xxx.xxx.xxx is neither permitted nor denied by best guess record for domain of root@vps) smtp.mailfrom=root@vps
- instead of -
spf=pass (google.com: domain of root@vps.domain.tld designates xxx.xxx.xxx.xxx as permitted sender) smtp.mailfrom=root@vps.domain.tld
..and the return path line reads as;
Return-Path:
- instead of
Return-Path:
See how the "domain.tld" is missing from the hostname in the email headers?
I'm thinking there has to be something in the VPS setup that my previous host had configured for me, that my current host has not configured for me.
I've combed through WHM settings and can't figure out what I need to do to correct this.
Any ideas?
My server is;
Linux
EasyApache4
CENTOS 7.5
cPanel/WHM v72.0.7
Thanks in advance.
-
Hi @estoresite On the server that's just showing up as "vps" can you run the following: hostname
and reply here with the output? What it looks like is though you may have set your hostname at some point it reverted back to just vps - this typically occurs after a restart. Thanks!0 -
Thanks for replying Lauren, The result is attached. In the WHM interface it reads the whole hostname. Should I just resave it? Thanks. 0 -
Yes guessing its openVZ we have always had this issue when its started from the WHM GUI issue comes and goes we just just stick an rc.local script to reload the correct hostname in to /etc/hosts on reboot 0 -
That did the trick. Awesome. Thanks you two. 0 -
Hi @estoresite Great! I'm glad that fixed the issue. I would suggest if it is a VZ server that you request your provider (if you don't have access to the host node) change the container name to your hostname so that this doesn't occur after every restart - at least this is what I've been told resolves the issue. The advice given by @dalem will also work. Thanks! 0 -
Hi @cPanelLauren This is a xen server. Will that make any difference to either of the long-term solutions that you and @dalem suggested? Thanks again. 0 -
Hi @estoresite Both solutions would most likely work the same issue has been seen with XEN servers though just not as prevalent as with VZ - for example: Thanks! 0 -
We never have issues with XEN Just OpenVZ Do not know your providers infrastructure, But its possible that the hostname is set to VPS and at every reboot it sets the network settings and hostname. If you have access to a panel to set the hostname or your provider you can change it permanently. if not my rc.local solution works 0
Please sign in to leave a comment.
Comments
8 comments