Directadmin email does not work, problems with hostname

Ploert

Verified User
Joined
May 20, 2007
Messages
5
Hello,

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:
Please look here and then try your question again.

Also please explain what you mean by
I'm using a Dynamic Dedicated Server with DirectAdmin
I'm unsure as to what you mean because DirectAdmin requires a dedicated static IP#.

Jeff
 
I want to keep my domainname secret until the website goes officially online, but I edited my first post and wrote my ip address in it. I can't explain the exact working of Dynamic Dedicated Server, but I do have an static ip and it all works the same as an Dedicated Server.

But I don't understand that when I ask for my hostname on the server with SSH it says server1.[domain].com and that directadmin says that the hostname is empty. :confused:
 
Your IP (89.18.164.35) resolves to server1.fcmovei.com.

Is that your server?

Is that the output you get when you type hostname from a shell prompt?

Jeff
 
lol yes, that's exactly the hostname I get back from the shell and the one I want to get back from Directadmin. But Directadmin somehow can't find it?
 
Yes, I did this in DirectAdmin at the Administrator settings after Server's Hostname. Do I have to change it somewhere else too?
 
I don't know because I don't know what a Dynamic Dedicated Server is, or how it's settings differ.

Did it come with DirectAdmin? If so, then the provider should give you support.

Or did you buy DirectAdmin directly? Then you should write DA for support.

If you can't get support from either place, then perhaps support from whomever creates the Dynamic Dedicated Server or paid support from a third-party support provider.

Jeff
 
I got it from my provider, but they don't give support on it unless I pay for it. But I will contact them to look at the problem. :)

Thanks!
 
Back
Top