LinuxQuestions.org
Help answer threads with 0 replies.
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 07-22-2017, 10:37 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
sendmail: Host Unknown (host not found)


I am sending a email from one Linux host to another on the same 192.168.0.0/14 LAN. On the source host, I have define(`SMART_HOST',`192.168.0.15')dnl, where 192.168.0.15 is the mail server for the LAN, also running sendmail. On the source host I get the maillog messages shown below. In particular is the message, "DSN: Host unknown (Name server: 192.168.0.15: host not found)." I don't understand why this host is not found, especially since I've specified the SMART_HOST by IP. I can ssh to this host by IP and hostname (server) and generally access it otherwise.

In the SMART_HOST /etc/mail/access I have "192.168.0 RELAY".

No messages whatsoever show up in the smart host's maillog, so it's not getting that far.

Why can't I send mail through it?
Code:
Jul 22 23:27:09 quadmon sendmail[2927]: v6N3R9c8002927: from=noreply@novatec-inc.com, size=317, class=0, nrcpts=1, msgid=<5974178d.vKxE2JDybzKGuOYE%noreply@novatec-inc.com>, relay=root@localhost
Jul 22 23:27:09 quadmon sm-mta[2928]: v6N3R9hg002928: from=<noreply@novatec-inc.com>, size=477, class=0, nrcpts=1, msgid=<5974178d.vKxE2JDybzKGuOYE%noreply@novatec-inc.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul 22 23:27:09 quadmon sendmail[2927]: v6N3R9c8002927: to=mfoley@novatec-inc.com, ctladdr=noreply@novatec-inc.com (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30317, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v6N3R9hg002928 Message accepted for delivery)
Jul 22 23:27:09 quadmon sm-mta[2930]: v6N3R9hg002928: to=<mfoley@novatec-inc.com>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120477, relay=192.168.0.15, dsn=5.1.2, stat=Host unknown (Name server: 192.168.0.15: host not found)
Jul 22 23:27:09 quadmon sm-mta[2930]: v6N3R9hg002928: v6N3R9hg002930: DSN: Host unknown (Name server: 192.168.0.15: host not found)
Jul 22 23:27:09 quadmon sm-mta[2930]: v6N3R9hg002930: to=<noreply@novatec-inc.com>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31702, relay=192.168.0.15, dsn=5.1.2, stat=Host unknown (Name server: 192.168.0.15: host not found)
Jul 22 23:27:10 quadmon sm-mta[2930]: v6N3R9hg002930: v6N3R9hh002930: return to sender: Host unknown (Name server: 192.168.0.15: host not found)
 
Old 07-23-2017, 08:26 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 a email from one Linux host to another on the same 192.168.0.0/14 LAN. On the source host, I have define(`SMART_HOST',`192.168.0.15')dnl, where 192.168.0.15 is the mail server for the LAN, also running sendmail.
Make sure that the nameserver defined in client's /etc/resolv.conf can resolve 192.168.0.15 to a valid hostname.
Or you can enclose the smarthost IP in square brackets, so sendmail doesn't do a dns lookup for it:
Code:
define(`SMART_HOST',`[192.168.0.15]')dnl
Don't forget to build sendmail.cf and restart the service.

Regards
 
Old 07-30-2017, 08:24 PM   #3
RPN
LQ Newbie
 
Registered: Aug 2005
Distribution: Slackware
Posts: 18

Rep: Reputation: 5
I have a similar installation where users on one server needed mail forwarded to another server for either users on that mail server or to be sent off the LAN via the Internet.
One thing I had to do that you do not mention you have done is put an entry in the source server's /etc/hosts file pointing to the destination server which is also the main mail server for the domain. If you do not have an entry like the following in your /etc/hosts file you might give it a try.



Code:
192.168.0.15    novatec-inc.com  servername.novatec-inc.com
 
  


Reply

Tags
sendmail, smarthost



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
Sendmail Error 550 Host Unknown MarcusG Linux - Networking 7 01-21-2020 06:38 AM
5.1.2 unknown host error CentOS sendmail gymiv@aol.com Linux - Software 3 09-23-2011 02:49 PM
Ping: Unknown Host Not Found on Ubuntu 11 canegames Linux - Networking 9 08-14-2011 04:19 PM
Host Unknown Error:Sendmail varun2109 Linux - Server 2 09-08-2009 11:49 PM
sendmail error 550 - Host Unknown jaguarfam Linux - Newbie 2 06-08-2009 08:33 AM

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

All times are GMT -5. The time now is 06:00 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