The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

wrong Mail server host name in greeting

Discussion in 'E-mail Discussions' started by CoolMike, Jul 24, 2004.

  1. CoolMike

    CoolMike Well-Known Member

    Joined:
    Sep 6, 2001
    Messages:
    307
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  2. zentity

    zentity Well-Known Member

    Joined:
    Jun 16, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    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?
     
  3. CoolMike

    CoolMike Well-Known Member

    Joined:
    Sep 6, 2001
    Messages:
    307
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  4. zentity

    zentity Well-Known Member

    Joined:
    Jun 16, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  5. CoolMike

    CoolMike Well-Known Member

    Joined:
    Sep 6, 2001
    Messages:
    307
    Likes Received:
    0
    Trophy Points:
    16
    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
     
Loading...

Share This Page