Operating System - HP-UX
1825775 Members
2303 Online
109687 Solutions
New Discussion

Re: Problem with outgoing mail ... sendmail log show host not found

 
Marcin_9
Frequent Advisor

Problem with outgoing mail ... sendmail log show host not found

Hello.
I have following problem:
server name is myhost
and I try to send mail from lets say generally myaddress@domain.com
to
recipient@domain.com
I receive following example error.

Sep 9 07:22:39 myhost sendmail[14278]: [ID 801593 mail.info] i895MYl14278: from=, size=746, class=0, nrcpts=1, msgid=<7067>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Sep 9 07:22:39 myhost sendmail[14286]: [ID 801593 mail.info] i895MYl14278: to=, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120746, relay=mailer1.com., dsn=5.1.2, stat=Host unknown (Name server: mailer1.com.: host not found)
Sep 9 07:22:39 myhost sendmail[14286]: [ID 801593 mail.info] i895MYl14278: i895Mdl14286: DSN: Host unknown (Name server: mailer1.com.: host not found)

part of /etc/nsswitch.conf
passwd: files
group: files
hosts: files [NOTFOUND=continue] dns
ipnodes: files
networks: files
protocols: files

Thanks for any advice

Marcin
9 REPLIES 9
Sanjay_6
Honored Contributor

Re: Problem with outgoing mail ... sendmail log show host not found

Hi Marcin,

Check your sendmail configuration file and make sure the DS macro for your relay host (if set) is set correctly. are you able to resolve the relay host from the command line using nslookup.

Hope this helps.

Regds
Mark Greene_1
Honored Contributor

Re: Problem with outgoing mail ... sendmail log show host not found

In addition to the DS entry, you may need to put your domain name in the DM macro as well.

mark
the future will be a lot like now, only later
David Child_1
Honored Contributor

Re: Problem with outgoing mail ... sendmail log show host not found

Take a look at /etc/mail/sendmail.cf

Go to the line starting with:
DS

It may look something like:
DSmailer1.com

If that is correct then on myhost run:
nslookup mailer1.com and see that it resolves correctly.

If mailer1.com is not your mail relay host then update the "DS" line with the correct information.

David
Muthukumar_5
Honored Contributor

Re: Problem with outgoing mail ... sendmail log show host not found

You are getting problem because not relaying using relay host,

Problem informations are as,
For mail delivery failures, users get a Delivery Status Notification
(DSN).

Note: DSNs resulting from attempts to relay a message to one or
more recipients will contain a "Diagnostic-Code" message citing
the reasons for failure. This message will not contain the
user's address.

----

To solve put the DSdomainame.com in /etc/mail/sendmail.cf and restart the sendmail there.

You can use /etc/nsswitch.conf file as,
hosts: files dns
or
hosts: dns files


Try do resolvation check as,

nslookup domain.com

or
nsquery hosts domain.com "dns"

It has to get results there.
Easy to suggest when don't know about the problem!
Steven E. Protter
Exalted Contributor

Re: Problem with outgoing mail ... sendmail log show host not found

tools:


#shows the mail queue
mailq

#force verbose processing of the mail queue
sendmail -v -q

I think that you have two choices presented. Either get nslookup to resovle, allowing sendmail to resolve or pass the mail with the sendmail DS directive and make sure that machine allows relay and IT can resolve the name of the target host.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Marcin_9
Frequent Advisor

Re: Problem with outgoing mail ... sendmail log show host not found

Shortly... what DS setting does?
I.Delic
Super Advisor

Re: Problem with outgoing mail ... sendmail log show host not found

Hi Marcin,

You have to set your semdmail.cf file.

Look for DS en set it.

If your relay host is let say machine.domein.com than you should set your DS
DSmachine.domein.com

stop en start sendmail
execute

Sendmail -v name@domein.com
Type your text en finish wiht . + enter


DS is an macro in je semdmail.cf file. For more information about it you kan read ofcourse man page.

I hoop this help


Idriz


Marcin_9
Frequent Advisor

Re: Problem with outgoing mail ... sendmail log show host not found

Ok. Let me check it ...
I will inform you and give feedback
Marcin_9
Frequent Advisor

Re: Problem with outgoing mail ... sendmail log show host not found

Newest. But we don't use relay server... just local sendmail should be able to send it anywhere...