- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail hostname lookup failure
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 05:25 PM
тАО03-09-2005 05:25 PM
Sendmail hostname lookup failure
My requirement is just to send mails from unix server (sendmail) to exchange server as a relay host. I don't want to allow sending mails to internet.
I don't want DNS lookup also. I am just giving relay server's ip address in DS entry in sendmail.cf and I have disabled DNS lookup entry through ResolverOptions=-DNSRCH.
But when I send mail, I get an error (Deferred: Name server: x.x.x.x: host name lookup failur)
Can you please guide me. This send mail is on Solaris.
Regards,
Kusuma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 05:42 PM
тАО03-09-2005 05:42 PM
Re: Sendmail hostname lookup failure
u may try putting the hostname and ip address of the exchange server in /etc/hosts. change the relay host to DS
also, u may like to check /etc/nsswitch.conf if the lookup for the hostname includes "files".
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 05:58 PM
тАО03-09-2005 05:58 PM
Re: Sendmail hostname lookup failure
Thanks for replying.
I have tried all that u said.
My DS entry has the FQDN of exchange server
and my nsswitch.conf has hosts: files dns
But still the same problem.
Kusuma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 06:03 PM
тАО03-09-2005 06:03 PM
Re: Sendmail hostname lookup failure
have u check if the hostname is resolve via nslookup
also, what is the response from:
# telnet
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 06:18 PM
тАО03-09-2005 06:18 PM
Re: Sendmail hostname lookup failure
telnet exchangeserver 25 responds with
220 exchangeserver Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at Thu, 10 Mar 2005 02:15:46 -0500
but nslookup exchangeserver says can't find hostname.
Rgds,
kusuma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 06:24 PM
тАО03-09-2005 06:24 PM
Re: Sendmail hostname lookup failure
it looks like nsswitch.conf need some amendment. would u be using DNS to resolve any of the hostname, if not, remove dns, i.e.
hosts: files
and try nslookup
also, ensure that this is found in your /etc/hosts file.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 06:32 PM
тАО03-09-2005 06:32 PM
Re: Sendmail hostname lookup failure
/etc/nsswitch.conf contains files dns for some other purpose. I don't want sendmail to lookup through DNS. that is the reason I have an exchange server entry in /etc/hosts file. And i have also disable dns lookup in sendmail.cf as I mentioned in my first query.
Do u know why it checks in DNS yet? How to disable that for sendmail alone?
Kusuma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 06:49 PM
тАО03-09-2005 06:49 PM
Re: Sendmail hostname lookup failure
how about posting /etc/resolv.conf? do u have something like this example:
domain abc.com
nameserver 123.123.123.123
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 07:07 PM
тАО03-09-2005 07:07 PM
Re: Sendmail hostname lookup failure
just remember something:
did u also remember uncommenting Dj$w.Foo.COM to:
Dj$w.abc.org
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 07:58 PM
тАО03-09-2005 07:58 PM
Re: Sendmail hostname lookup failure
I have uncommented Dj
One more thing is, i see in one of ITRC- links that someone says put IP address followed by DS in square brackets. I just tried that. but then it says it has delivered the message in to queue and I can't see anything in the queue and I don't receive mails also..
Kusuma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 09:09 PM
тАО03-09-2005 09:09 PM
Re: Sendmail hostname lookup failure
resolving the hostname of the exchange server providing the smtp service have to work before you get sendmail to work. nslookup will determine if you have done so.
i am not too sure about putting IP address to the DS macro but if you will saying this works? also, like to confirm if you have place the hostname and correct IP address in /etc/hosts.
if the mail is queuing, use command, mailq to check.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 09:47 PM
тАО03-09-2005 09:47 PM
Re: Sendmail hostname lookup failure
(Deferred: Name server: exchangeserver.com: host name lookup failure)
Kusuma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2005 10:59 PM
тАО03-09-2005 10:59 PM
Re: Sendmail hostname lookup failure
A little brief:
1.- Define in your /etc/hosts file an alias for your smtp relay server:
xx.xx.xx.xx my_smtp_relay
Test it the alias resolution (i.e: ping my_smtp_relay)
2.- Configure in your /etc/mail/sendmail.cf file the previuos relay into the "Smart relay host" section:
DSmy_smtp_relay
3.- Restart the sendmail service:
#/sbin/init.d/sendmail stop
#/sbin/init.d/sendmail start
4.- Try sending a test message:
#echo "Test One"|/usr/sbin/sendmail -v mailbox@domain
5.- A trick to define a unreachable external domain is add it into /etc/hosts file aim to the relay's IP, i.e:
xx.xx.xx.xx pepsi.com
Where xx.xx.xx.xx is the same relay_server and external domain IP.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2005 06:33 PM
тАО03-13-2005 06:33 PM
Re: Sendmail hostname lookup failure
Have tried the sameway.
It still has hostname lookup error. The same configuration works on linux but not on solaris.
Rgds,
Kusuma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2005 09:18 PM
тАО03-13-2005 09:18 PM
Re: Sendmail hostname lookup failure
Sendmail worked with new set of probs. Thanks for all the help.
I shall open a new thread for new problems.
Regards,
Kusuma