I get following message everyday:
Subject: This is e-mail notification to warn you that your hostname is setup improperly on your system. Today at 00:10
Your hostname, , and the servername you have set in DirectAdmin, www.maartendeblock.com, do not match. It is recommended that these two values are the same.
Solution:
Either change the servername in DirectAdmin or run the 'hostname.sh' script via ssh to change your hostname
Unable to resolve your hostname, . This will cause major issues when sending email.
Solution:
Create an A record for your hostname (.) in your DNS control panel. Point the hostname to your server's main IP address. Also check /etc/hosts to ensure that the server ip is correctly set.
I ran hostname.sh and when I type 'hostname' in ssh, I get www.maartendeblock.com.
These are my DNS records:
ftp A 91.199.50.28
localhost A 127.0.0.1
maartendeblock.com. A 91.199.50.28
mail A 91.199.50.28
ns1.maartendeblock.com. A 91.199.50.28
ns2.maartendeblock.com A 91.199.50.28
pop A 91.199.50.28
www A 91.199.50.28
maartendeblock.com. NS ns1.maartendeblock.com
ALT1.ASPMX.L.GOOGLE.COM. MX 20
ALT2.ASPMX.L.GOOGLE.COM. MX 20
ASPMX.L.GOOGLE.COM. MX 10
ASPMX2.GOOGLEMAIL.COM. MX 30
ASPMX3.GOOGLEMAIL.COM. MX 30
ASPMX4.GOOGLEMAIL.COM. MX 30
ASPMX5.GOOGLEMAIL.COM. MX 30
maartendeblock.com. TXT "v=spf1 a mx ip4:91.199.50.28 ?all"
What am I doing wrong?
Thank you
Subject: This is e-mail notification to warn you that your hostname is setup improperly on your system. Today at 00:10
Your hostname, , and the servername you have set in DirectAdmin, www.maartendeblock.com, do not match. It is recommended that these two values are the same.
Solution:
Either change the servername in DirectAdmin or run the 'hostname.sh' script via ssh to change your hostname
Unable to resolve your hostname, . This will cause major issues when sending email.
Solution:
Create an A record for your hostname (.) in your DNS control panel. Point the hostname to your server's main IP address. Also check /etc/hosts to ensure that the server ip is correctly set.
I ran hostname.sh and when I type 'hostname' in ssh, I get www.maartendeblock.com.
These are my DNS records:
ftp A 91.199.50.28
localhost A 127.0.0.1
maartendeblock.com. A 91.199.50.28
mail A 91.199.50.28
ns1.maartendeblock.com. A 91.199.50.28
ns2.maartendeblock.com A 91.199.50.28
pop A 91.199.50.28
www A 91.199.50.28
maartendeblock.com. NS ns1.maartendeblock.com
ALT1.ASPMX.L.GOOGLE.COM. MX 20
ALT2.ASPMX.L.GOOGLE.COM. MX 20
ASPMX.L.GOOGLE.COM. MX 10
ASPMX2.GOOGLEMAIL.COM. MX 30
ASPMX3.GOOGLEMAIL.COM. MX 30
ASPMX4.GOOGLEMAIL.COM. MX 30
ASPMX5.GOOGLEMAIL.COM. MX 30
maartendeblock.com. TXT "v=spf1 a mx ip4:91.199.50.28 ?all"
What am I doing wrong?
Thank you