MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: lenawaii on 2018-10-15, 09:53:36
-
Hey there,
I have some trouble with hostname with Kloxo MR 7.
I defined my hostname with command: #hostnamectl set-hostname server3.mydomain.com
If i do: hostnamectl status, my static hostname is: server3.mydomain.com
But when I receive a mail from my server with email root@server3.server3, it shoud be root@server3.mydomain.com, so what's wrong?
Plus, when I send an email to mail-tester.com, my hostname is detected as only "server3" and not "server3.mydomain.com"
Can you please help me resolve this? Thanks a lot.
-
all right, thanks for no reply ;D
so I found the solution myself, we have to modify this file :
/var/qmail/control/me
and add your hostname and restart qmail
If you set up proprely SPF, DKIM AND DMARC, you will get a 10/10 in mail-tester.com
Enjoy!
-
After a reboot, hostname changes to subdomain serverx instead of server3.mydomain.com apparently, it's a centos 7 issue.
So you need to run this command after each reboot: # hostnamectl set-hostname serverx.mydomain.com
If you know how to resolve this little bug, please with us ;-)
-
@lenawaii
Thank you for sharing this information. Very interresting findings. I have had the same issue. But on my last VPS I did not change hostname from what was originally provided by the service provider, and after reboot it always stay the same.