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.

Second IP and Warning "Mailserver hostname in Greeting"

Discussion in 'E-mail Discussions' started by sv70, May 2, 2007.

  1. sv70

    sv70 Active Member

    Joined:
    Dec 24, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
  2. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
  3. sv70

    sv70 Active Member

    Joined:
    Dec 24, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    that solution it doesn't seem to be valid when only works for dedicated IP's. Real world is about 10 or 100 different domain names using two or three IP's.

    Solution explained in http://forums.cpanel.net/showpost.php?p=304719&postcount=23 seems to be useful, because any domain name would be used in the HELO sessions avoiding DNS errors. I suspect more people suffer this problem with mail sessions, including returned e-mail, etc...
    That solution based in changing "$j" variable with "${if_name}" condition in Sendmail config sounds a good possibility.

    Please, maybe any CPanel developer could make some comments about this solution. According Google search this problem affects to thousand customers.

    Can you help to check the validity of this solution?


    thanks in advance,
     
    #3 sv70, May 3, 2007
    Last edited: May 3, 2007
  4. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Having looked at the thread you pointed to again, I don't really understand what it is you're trying to achieve.

    The original post is concerned with a misconfigured mailserver HELOing with a non-existent hostname. If that's all you want to fix, then just set primary_hostname to something valid in exim.conf.
     
  5. sv70

    sv70 Active Member

    Joined:
    Dec 24, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    No.

    look:

    you have four domains and two ip's. And your hostname is server.domain1.com

    domain1.com: 45.456.456.1
    domain2.com: 45.456.456.2
    domain3.com: 45.456.456.2
    domain4.com: 45.456.456.2


    when your mail is in server.domain1.com, then rest of domains in 45.456.456.2 will appear with DNS error:

    "domain2.com claims to be host server.domain1.com [but that host is at 45.456.456.1 (may be cached), not 45.456.456.2]. "


    Hope can you see now.



    best regards,
     
  6. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Then you just tell Exim that when it's using 45.456.456.2 it should HELO with a hostname that points to that IP. It doesn't matter what hostname it uses, as long as the hostname points to 45.456.456.2.
     
  7. sv70

    sv70 Active Member

    Joined:
    Dec 24, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    I have included those modifications in ip, names and exim.conf files as being cited in thread
    http://forums.cpanel.net/showpost.php?p=304719&postcount=23

    but after exim restart the DNS error persist.

    it seems the SMTP transport changes are only useful for modifications in headers of messages at the moment of transport.

    How can you change the server hostname?
     
    #7 sv70, May 4, 2007
    Last edited: May 4, 2007
  8. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Have you changed the MX records of the domains that are on a different IP to point to a hostname on that IP?
     
Loading...

Share This Page