wrong Mail server host name in greeting

CoolMike

Well-Known Member
Sep 6, 2001
313
0
316
Hi

I have the following problem on a fresh installed cpanel server. Customers can't send mails, becaus the Port 25 is answering wrong.

When I connect with "telnet userdomain.com 25" I'm getting:

220-*******************************************2******200**2*********0200
220**********************************************************************
220 *******************

With www.dnsreport.com I get the following message under "Mail server host name in greeting":

userdomain.com claims to be host *******************************************2******200**2******2**0200.

Where is here the mistake?

Thanks
Mike
 

zentity

Well-Known Member
Jun 16, 2004
78
0
156
What does

# hostname

Reveal as being your servers hostname?

Also what is contained within the following files

/etc/hosts
/etc/sysconfig/network
/etc/resolv.conf

If you set your hostname,

# hostname host.domain.com

and make sure that the same hostname is included within the above files, you also need to restart exim and that should take care of it.

/etc/init.d/exim restart

Does this help at all?
 

CoolMike

Well-Known Member
Sep 6, 2001
313
0
316
Thansk a lot for your answer. In /etc/resolv.conf I don't have a reference to the hostname, but everywhere else you mentioned it's correct. Where else could be the mistake?

Thanks
Mike
 

zentity

Well-Known Member
Jun 16, 2004
78
0
156
Assuming that you run dns on the machine, have you added a dns zone for your servers hostname too?

What does

# dig host.domain.com

Yield on the server?

What are the permissions on /dev/null

# ls -l /dev/null

Check the dns is setup properly and run /scripts/exim4 to reinstall exim if you still have issues. Other than that you'd probably need someone to look at the server to see the cause.
 

CoolMike

Well-Known Member
Sep 6, 2001
313
0
316
Everything looks ok, I compared this also with my other servers.

I just realized, that my Reverse DNS Lookup is not working yet, could this be the reason for this problem?

When I try it on the server self, then it works. I also have a firewall, but the ports are open.

Thanks
Michael