LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-02-2017, 01:27 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
sendmail failing with daemon domain not found


I am piping the message shown below into:
Code:
/usr/sbin/sendmail -t -oi -O NoRecipientAction=add-to-undisclosed
I've been using this sendmail command for quite a while on another system and it works fine. I don't see what the difference is. On this system gives the error:
Code:
   ----- The following addresses had permanent fatal errors -----
<mfoley@mydom.com>
    (reason: 553 5.1.8 <mfoley@mydom.com>... Domain of sender address daemon@hiram.local does not exist)

   ----- Transcript of session follows -----
... while talking to mydom.com.:
>>> DATA
<<< 553 5.1.8 <mfoley@novatec-inc.com>... Domain of sender address daemon@hiram.local does not exist
550 5.1.1 <mfoley@mydom.com>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)
(I am sending this message from mfoley@mydom.com to myself, mfoley@mydom.com) Why is it regarding daemon@hiram.local as the sender and not mfoley@mydom.com?

Why does it say "Neet RCPT"?

Why is mfoley@mydom.com "User unknown" when talking to mydom.com? That user definitely exists.

How can I fix this?

This is the message:
Code:
From mfoley@mydom.com Fri Jun  2 02:06:10 2017
Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.226])
        by sanford.mydom.com (8.15.2/8.15.2) with ESMTP id v52664Pn031110
        for <members@HW3.org>; Fri, 2 Jun 2017 02:06:04 -0400
Received: from [184.57.118.205] ([184.57.118.205:44246] helo=server.mydom.com)
        by dnvrco-omsmta01 (envelope-from <mfoley@mydom.com>)
        (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP
        id 16/A4-03935-B4001395; Fri, 02 Jun 2017 06:06:04 +0000
Received: from [192.168.0.65] ([192.168.0.65])
        by server.mydom.com (8.15.2/8.15.2) with ESMTP id v52662MA029921
        for <members@HW3.org>; Fri, 2 Jun 2017 02:06:03 -0400
Subject: Join Horeb-Wright #3 Companions
References: <a0a6216b-48df-eb3d-bc1a-ba9bed559a1a@mydom.com>
Bcc: mfoley@mydom.com
To: "Mailing List" <maillist@HW3.org>
From: Mark Foley <RAC@HW3.org>
Reply-To: Mark Foley <mfoley@mydom.com>
X-Forwarded-Message-Id: <a0a6216b-48df-eb3d-bc1a-ba9bed559a1a@mydom.com>
Message-ID: <e0715eb6-17cb-c9c0-bd3e-a1f76c81fe1e@mydom.com>
Date: Fri, 2 Jun 2017 02:05:41 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.1.1
MIME-Version: 1.0
In-Reply-To: <a0a6216b-48df-eb3d-bc1a-ba9bed559a1a@mydom.com>
Content-Type: multipart/alternative;
 boundary="------------2908EE12DB46171908FACDCD"
Content-Language: en-US
X-RR-Connecting-IP: 107.14.64.6:25
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE,T_SPF_TEMPERROR
        autolearn=ham autolearn_force=no version=3.4.1-_revision__1.0__
X-Spam-Report:
        *  0.0 T_SPF_TEMPERROR SPF: test of record failed (temperror)
        *  0.0 HTML_MESSAGE BODY: HTML included in message
X-Spam-Checker-Version: SpamAssassin 3.4.1-_revision__1.0__ (2015-04-28) on
        hiram.local

This is a multi-part message in MIME format.
--------------2908EE12DB46171908FACDCD
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Companions All,
 
Old 06-02-2017, 05:05 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
(I am sending this message from mfoley@mydom.com to myself, mfoley@mydom.com) Why is it regarding daemon@hiram.local as the sender and not mfoley@mydom.com?
Guess you need masquerading


Quote:
Why does it say "Neet RCPT"?
Most likely because of:
Quote:
550 5.1.1 <mfoley@mydom.com>... User unknown

Quote:
Why is mfoley@mydom.com "User unknown" when talking to mydom.com? That user definitely exists.
What gives:
Code:
sendmail -bv mfoley@mydom.com
 
Old 06-05-2017, 12:33 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
The masquerading was exactly it. The system that worked had masquerading configured. The one that didn't work did not. I cannot use masquerading on that system because it hosts several domains. The solution was to use:
Code:
/usr/sbin/sendmail -f${fname} -t -oi -O NoRecipientAction=add-to-undisclosed
where fname is the address of the sender (From). That did the trick.
 
1 members found this post helpful.
  


Reply

Tags
sendmail



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN failing when --daemon option used catkin Linux - Software 2 02-12-2012 10:33 AM
SSHD daemon failing Tuxfan11 Linux - Server 5 06-30-2011 10:50 AM
Sendmail doubling sender domain- ex. hostname.domain.net.domain.net halborr Slackware 7 08-23-2010 08:37 AM
httpd daemon failing to start jenniekingsland Linux - Newbie 3 01-27-2009 07:07 AM
Sendmail ignores aliases with sendmail daemon stopped phavn Solaris / OpenSolaris 1 12-01-2008 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration