• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 900
  • Last Modified:

refused 'mail from' because return MX does not exist

I am getting this error only for emails sent from my Exch 2K server to users of a mail server in China:

There was a SMTP communication problem with the recipient's email server.  Please contact your system administrator.
            <INA-MAIL-01.inasoft.com #5.5.0 smtp;554 refused 'mail from' because return MX does not exist (#5.5.4)>

Here is the header of a failed email:

Microsoft Mail Internet Headers Version 2.0
Received: from linuxbug.inasoft.com ([192.168.1.27]) by INA-MAIL-01.inasoft.com with Microsoft SMTPSVC(5.0.2195.6713);
       Mon, 20 Sep 2004 01:59:36 -0700
Received: from linuxbug.inasoft.com (localhost.localdomain [127.0.0.1])
      by linuxbug.inasoft.com (8.12.10/8.12.9) with ESMTP id i8K9XTGZ013564
      for <sr@inasoft.com>; Mon, 20 Sep 2004 02:33:29 -0700
Received: (from bugzilla@localhost)
      by linuxbug.inasoft.com (8.12.10/8.12.10/Submit) id i8K9XTeM013563;
      Mon, 20 Sep 2004 02:33:29 -0700
Date: Mon, 20 Sep 2004 02:33:29 -0700
Message-Id: <200409200933.i8K9XTeM013563@linuxbug.inasoft.com>
From: bugzilla-daemon@linuxbug.inasoft.com
To: sr@inasoft.com
Subject: [Bug 534]  New: The expand field in the schedule remind display two "30" days...
X-Bugzilla-Reason: AssignedTo
Return-Path: bugzilla@linuxbug.inasoft.com
X-OriginalArrivalTime: 20 Sep 2004 08:59:36.0514 (UTC) FILETIME=[277E3A20:01C49EF0]


Here is our setup. We have a Linux server, linuxbug, that runs a bug tracking program called Bugzilla. Bugzilla sends emails (relays) to a distribution list (sr@inasoft.com) on our exchange server. Only recipients that have addresses ending in @njinsoft.com (our China site) get the error & the email is not delivered. If I send an email directly from the exchange server to a @njinasoft.com address it works fine. To work around this problem I have set up a rule in outlook to forward messages from sr@inasoft.com to the @njinasoft.com people.

I am guessing my problem lies in one or both of the lines below from my email header:

Received: from linuxbug.inasoft.com (localhost.localdomain [127.0.0.1])
Received: (from bugzilla@localhost)

I am also guessing that I will need to modify bugzilla or sendmail on my linux server to fix this. I am pretty new to linux so I want to make sure I am going down the right path....
0
gpietila
Asked:
gpietila
  • 5
  • 4
1 Solution
 
h5ujCommented:
Taking a look at your error I did an nslookup:
%nslookup -type=mx
Default Server:  localhost.droopy.com
Address:  127.0.0.1

> njinsoft.com
Server:  localhost.droopy.com
Address:  127.0.0.1

*** localhost.droopy.com can't find njinsoft.com: Non-existent host/domain
> inasoft.com    
Server:  localhost.droopy.com
Address:  127.0.0.1

Non-authoritative answer:
inasoft.com     preference = 10, mail exchanger = inamail01.inasoft.com

Authoritative answers can be found from:
inasoft.com     nameserver = ns1.nextlevelinternet.com
inasoft.com     nameserver = ns2.nextlevelinternet.com
inasoft.com     nameserver = dns1
inasoft.com     nameserver = dns1.inasoft.com
inamail01.inasoft.com   internet address = 66.185.168.46
> njinsoft.com
Server:  localhost.droopy.com
Address:  127.0.0.1

-------------------------------
I would make your external DNS records for MX match the working site (or where ever you would like it to route)
Wait a while, and try them again (the dest. maybe cached)
0
 
gpietilaAuthor Commented:
Actually that nslookup should be for njinasoft.com not njinsoft.com
0
 
h5ujCommented:
You can edit the genericstable on your  sendmail box and have it map that outbound user to a different domainname.
what version of linux is it?
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
gpietilaAuthor Commented:
RedHat 9

I am pretty new to Linux, any instructions on how to edit the genericstable would be most appreciated.
0
 
gpietilaAuthor Commented:
I found that WebAdmin allowed me to add a masquarading domain to Sendmail but I still get the original error. Do I need to stop and restart the sendmail service?
0
 
h5ujCommented:
Which version of linux are you using?
0
 
gpietilaAuthor Commented:
RedHat 9
0
 
h5ujCommented:
you should have a file called /etc/mail/genericstable  if this file is not present do the following to find it
grep genericstable /etc/mail/sendmail.cf
neil@hope:/etc> grep genericstable sendmail.cf

it will look something like this:
Kgenerics hash -o /etc/mail/genericstable.db


edit this file ( /etc/mail/genericstable)  notice no .db on the end

add:
bugzilla-daemon<TAB>bugzilla-daemon@njinasoft.com

***The <TAB> is the tab key***
from the unix prompt (as root) put
makemap hash /etc/mail/genericstable </etc/mail/genericstable

now any mail leaving this system matching bugzilla-daemon will be bugzilla-daemon@njinasoft.com
and everyone else will be as they were before.
0
 
gpietilaAuthor Commented:
Unfortunately I am unable to work this issue any further. The company I work for ceased operations last week & I am out of a job.

I think h5uj was on the right track so I am going to give him/her the win. I wish I could actually try his suggestion..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now