Results 1 to 7 of 7

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

  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    228
    cPanel/WHM Access Level

    Root Administrator

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

    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. #2
    Member
    Join Date
    Mar 2003
    Posts
    228
    cPanel/WHM Access Level

    Root Administrator

    Default

    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. #3
    Member
    Join Date
    Mar 2003
    Posts
    862

    Default

    Join the club!

  4. #4
    Member
    Join Date
    Mar 2003
    Posts
    228
    cPanel/WHM Access Level

    Root Administrator

    Default

    Thanks

    -----
    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. #5
    Member
    Join Date
    Apr 2003
    Posts
    243

    Default

    Originally posted by flashweb
    Is this happen because there is no real host name (server2.hosthat.com) ?
    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. #6
    Member
    Join Date
    Mar 2003
    Posts
    228
    cPanel/WHM Access Level

    Root Administrator

    Default

    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. #7
    Member
    Join Date
    Apr 2003
    Posts
    243

    Default

    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 )

Similar Threads

  1. Replies: 8
    Last Post: 12-28-2009, 06:42 PM
  2. Replies: 8
    Last Post: 11-12-2009, 05:52 AM
  3. mail host name in dns report
    By hamper in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 01-30-2008, 09:39 AM
  4. DNS warning - Mail server host name in greeting
    By dory36 in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-26-2007, 03:46 PM
  5. How to ONLY host web, NOT mail or DNS??
    By sneader in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 04-07-2004, 08:37 PM