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.

Mail Error - invalid/host-not-in-DNS

Discussion in 'Bind / DNS / Nameserver Issues' started by flashweb, May 3, 2003.

  1. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi,

    I get following error when sending mail from PHP script and web mail. I can send mails using OutLook and that works fine.

    In WHM Mail Delivery Stats
    ----------------------------------

    1 flashweb@asianetonline.net R=lookuphost T=remote_smtp:
    SMTP error from remote mailer after MAIL FROM:
    SIZE=2120: host ekm.asianetonline.net [202.88.231.5]:
    550 5.1.8 invalid/host-not-in-DNS return address not allowed

    Returned Mails
    ------------------

    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es)
    failed:

    flashweb@asiaXXXXline.net
    SMTP error from remote mailer after MAIL
    FROM:<nobody@server2.hosthat.com> SIZE=1378:
    host ekm.asiaXXXXline.net [202.88.231.5]: 550 5.1.8
    invalid/host-not-in-DNS return address not allowed

    ------ This is a copy of the message, including all the headers. ------

    Return-path: <nobody@server2.hosthat.com>
    Received: from nobody by server2.hosthat.com with local (Exim 3.36 #1)
    id 19Bq1R-0004yP-00
    for flashweb@asiaXXXXline.net; Sat, 03 May 2003 01:57:21 -0400
    To: flashweb@asianetonline.net
    Subject: hi from new server
    From: info@biXXat.com
    Message-Id: <E19Bq1R-0004yP-00@server2.hosthat.com>
    Date: Sat, 03 May 2003 01:57:21 -0400

    hi from new server

    ==============================

    Can any one help ?

    Regards,

    Yujin
     
  2. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Another error i got.

    SMTP error from remote mailer after end of data:
    host fxxxxxxt.com [xxx.xxx.xxx.xx]: 550 rejected:
    cannot route to sender <nobody@server2.hosthat.com>

    Is this happen because there is no real host name (server2.hosthat.com) ?

    Regards,

    Yujin
     
  3. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    Join the club!
     
  4. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks :D

    -----
    SMTP error from remote mailer after MAIL FROM:<root@server2.hosthat.com> SIZE=1668:
    host ekm.asianetonline.net [202.88.231.5]: 550 5.1.8 invalid/host-not-in-DNS return address not allowed
     
  5. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Yes you *NEED* to have a vaild hostname in whatever you send in MAIL FROM: (which may or may not maybe the same as in the From: field as those are completly seperate things) or else your mail will be rejected by alot of servers

    If you have your servers hostname in the MAIL FROM: field (like you have) then ideally you should also have your reverse dns properly setup to point back to that hostname or else some pedantic servers might reject you for not having proper forward/reverse dns mapping (doing this is debatable though since it can cut out a large amount of otherwise legitmate mail)
     
  6. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks howard for the reply.

    I changed host name with one with A record and it start working.

    Hope adding an "A" Record to server2.hosthat.com will be ok.

    Regards,

    Yujin
     
  7. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    yep that would be fine (most mail servers do it really just to catch common typos / and to prevent people frm randomly making up addresses such as a dhusdhusd@xjnushux to evade blocks etc )
     
Loading...

Share This Page