Hello,
I'm using a Dynamic Dedicated Server with DirectAdmin. Every day I get this message in DirectAdmin;
When I go to my server using SSH and type hostname I get server1.[domain].com, just like I want it. And in my DNS administration I created an A record for server1.[domain].com that point to my main IP address.
Yesterday I let the 'hostname.sh' script run and changed my hostname again to server1.[domain].com.
So, as far as I know, everything is setup correctly. But still I get the messages in DirectAdmin and my email is not working. When I try to mail with info@[domain].nl my email will be send, but when someone wants to mail to info@[domain].nl they get the following error.
Does someone knows what's going wrong?
I'm using a Dynamic Dedicated Server with DirectAdmin. Every day I get this message in DirectAdmin;
Your hostname, , and the servername you have set in DirectAdmin, server1.[domein].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.
When I go to my server using SSH and type hostname I get server1.[domain].com, just like I want it. And in my DNS administration I created an A record for server1.[domain].com that point to my main IP address.
My /etc/hosts file says;
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 server1.[domain].com localhost localhost.localdomain
89.18.164.35 server1.[domain].com
Yesterday I let the 'hostname.sh' script run and changed my hostname again to server1.[domain].com.
So, as far as I know, everything is setup correctly. But still I get the messages in DirectAdmin and my email is not working. When I try to mail with info@[domain].nl my email will be send, but when someone wants to mail to info@[domain].nl they get the following error.
Reporting-MTA: dns;bay0-omc1-s5.bay0.hotmail.com
Received-From-MTA: dns;BAY112-W4
Arrival-Date: Sun, 20 May 2007 01:15:45 -0700
Final-Recipient: rfc822;info@[domain].nl
Action: failed
Status: 5.5.0
Diagnostic-Code: smtp;550 Client host rejected: cannot find your hostname, [65.54.246.77]
Does someone knows what's going wrong?
Last edited: