LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2015, 02:44 AM   #1
medicherlas89
LQ Newbie
 
Registered: Mar 2015
Posts: 19

Rep: Reputation: Disabled
dsn=5.1.2, stat=Host unknown (Name server:


Hi All,

i have configured sendmail client in my server after configuration done we are not able to send mails, anyone please help me on this.


Jun 15 13:16:39 test1 sendmail[1867]: t5F7GclF001867: from=<applprod@test1.demo.com>, size=508, class=0, nrcpts=1, msgid=<201506150716.t5F7Gct0001866@test1.demo.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun 15 13:16:39 test1 sendmail[1866]: t5F7Gct0001866: to=ramesh@demo.com, ctladdr=applprod (54322/54322), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30228, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t5F7GclF001867 Message accepted for delivery)
Jun 15 13:16:39 test1 sendmail[1869]: t5F7GclF001867: to=<ramesh@demo.com>, ctladdr=<applprod@test1.demo.com> (54322/54322), delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=120508, relay=demo.com, dsn=5.1.2, stat=Host unknown (Name server: demo.com: no data known)
Jun 15 13:16:39 test1 sendmail[1869]: t5F7GclF001867: t5F7GdlF001869: DSN: Host unknown (Name server: demo.com: no data known)
Jun 15 13:16:39 test1 sendmail[1869]: t5F7GdlF001869: to=<applprod@test1.demo.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31743, dsn=2.0.0, stat=Sent
 
Old 06-15-2015, 03:53 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by medicherlas89 View Post
Hi All,

i have configured sendmail client in my server after configuration done we are not able to send mails, anyone please help me on this.
While I don't know sendmail, the messages seem to indicate something is wrong with name resolution. Perhaps the MX record for demo.com is not set correctly, or you need to tell sendmail what to do with messages that go to demo.com.
 
1 members found this post helpful.
Old 06-15-2015, 05:08 AM   #3
medicherlas89
LQ Newbie
 
Registered: Mar 2015
Posts: 19

Original Poster
Rep: Reputation: Disabled
How to set the MX record and how to resolve the name resolution, can you please help me on this
 
Old 06-16-2015, 12:40 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by medicherlas89 View Post
How to set the MX record and how to resolve the name resolution, can you please help me on this
Your server is named test1.demo.com. The "demo.com" part is your domain. You are now sending email to ramesh@demo.com. The problem now is: How does the mailing system know to which server the message should be sent?

This problem is solved by the Domain Name System. DNS maps host names to IP addresses, but it can also configure the mail servers for a domain. The MX record in the DNS config file performs that mapping.
You can see the MX records of a domain with commands like host or nslookup, e.g. nslookup -type=MX google.com or host -t MX google.com.

So, for your domain demo.com you need a DNS server that contains an MX record. If you have such a server, put its IP address in the /etc/resolv.conf file. If not, you need to configure one. I can't describe DNS setup in a forum post, but the internet is full of recipes for that. It's not really for beginners, so that you learning curve might be steep, but you would learn a lot in the process.

However, if you are not interested in setting up MX records, just test your mailing system by sending a message to ramesh@test1.demo.com. In other words, use the specific system name where ramesh has an account rather than the domain.
 
Old 06-16-2015, 01:29 AM   #5
medicherlas89
LQ Newbie
 
Registered: Mar 2015
Posts: 19

Original Poster
Rep: Reputation: Disabled
hi,

Thanks for clarification.
We are having 2 dns servers and 1 sendmail server(10.10.1.18)


host -t MX demo.com
demo.com has no MX record


cat /etc/resolv.conf
# Generated by NetworkManager
search demo.com
nameserver 10.10.1.23
nameserver 10.10.1.24
 
Old 06-17-2015, 02:02 AM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by medicherlas89 View Post

host -t MX demo.com
demo.com has no MX record
So you have to add an MX record to the DNS server(s)

Quote:
cat /etc/resolv.conf
# Generated by NetworkManager
search demo.com
nameserver 10.10.1.23
nameserver 10.10.1.24
Looks like you normally use 10.10.1.23; if it doesn't respond, the other one.

You will have to add an MX record to the zone file of demo.com. See https://en.wikipedia.org/wiki/Zone_file for what that looks like; where that zone file is depends on your configuration and the Linux distro you are using.
 
Old 06-22-2015, 01:19 AM   #7
medicherlas89
LQ Newbie
 
Registered: Mar 2015
Posts: 19

Original Poster
Rep: Reputation: Disabled
hi,

Is there any other way to by-pass the DNS server?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
dsn=4.0.0, stat=Deferred: 421 Temporary failure, please try again later. john.wythe@activant.com Linux - Networking 1 06-26-2014 02:47 PM
sendmail error: user unknown dsn=5.1.1 raphael75 Linux - Newbie 5 01-16-2014 12:47 PM
dsn=5.7.1, stat=User unknown raphael75 Linux - Newbie 2 03-08-2013 09:15 AM
Sendmail dsn=4.0.0, stat=Deferred: Invalid argument error stephen_davies Linux - Software 1 07-03-2009 04:22 AM
Sendmail : relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refuse macadam Linux - Software 0 09-23-2007 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:56 AM.

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