- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail 8.7.6 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
Forums
Discussions
Discussions
Discussions
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
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
12-07-2001 10:33 AM
12-07-2001 10:33 AM
Sendmail 8.7.6 hostname lookup failure
I am a little confused with
my sendmail configuration.
my host is host1.domain1.com
my client PC is on .domain2.com
I have set up relaying through
host-relay.domain1.com via
DS parameter in sendmail.cf
sendmail -v user1.domain2.com
yields:
user1@domain2.com... Deferred: Name server: host-relay.domain1.com: host name lookup failure.
I have checked DNS . I can resolve host-relay both ways.
I can also send mail from user1@domain2.com( my EXCHANGE account ) to user2@host1.domain1.com ( UNIX account ) no problem.
Where do I fail?
In DNS I have
2 MX records one for domain1.com, the other for domain2.com both relaying through host-relay.domain1.com. For other HP-UX boxes the configuration is the same and they work fine. This one is a new RP7400
.
I am not familiar with NT side of relaying. Does the admin need to specify my new host1 in their NT relay list or something , or this is my config. problem.
I would really appreciate your help.
Thanks, Dimitry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 10:43 AM
12-07-2001 10:43 AM
Re: Sendmail 8.7.6 hostname lookup failure
By default, sendmail by default doesn't use the MX if the address is considered "local".
From host one (the relay) send us the output of nslookup host2. When you get the IP of host2, send us the output of nslookup IP.of.host.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 10:51 AM
12-07-2001 10:51 AM
Re: Sendmail 8.7.6 hostname lookup failure
It appears that your HPUX server is not able to do name lookups for MX records... because it cannot find a suitable resolver?
good luck.
your /etc/nsswitch.conf should read something like:
hosts: files [NOTFOUND=continue] dns
as a precaution also check your /etc/mail/sendmail.cw - it should contain only localhost
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 10:55 AM
12-07-2001 10:55 AM
Re: Sendmail 8.7.6 hostname lookup failure
UNIX( host1.domain1.com )
|
|
NT( host-relay.domain1.com : Also responsible for domain2.com)
|
|
Exchange Mailbox
if I get rid of DS , I get:
user@domain2.com... Connecting to mail.domain2.com. via smtp...
and Times out .
mail.domain.com is different than Exchange Server ( host-relay.domain1.com )
I think , it figures out mail.domain2.com from MX records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 11:00 AM
12-07-2001 11:00 AM
Re: Sendmail 8.7.6 hostname lookup failure
hosts: files [NOTFOUND=continue] dns in nsswitch.conf and localhost is insendmail.cw there as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 11:30 AM
12-07-2001 11:30 AM
Re: Sendmail 8.7.6 hostname lookup failure
What is your resolv.conf in /etc/directory shows?? Is it pointing to proper name server and domain??
Secondly what you get when running nslookup with domain1.server and domain2.server?
command :nslookup hostname
-USA...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 11:34 AM
12-07-2001 11:34 AM
Re: Sendmail 8.7.6 hostname lookup failure
it does sound like a name lookup issue -if this works then it means that your DNS servers may actually be to blame.
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 11:34 AM
12-07-2001 11:34 AM
Re: Sendmail 8.7.6 hostname lookup failure
# nslookup
>set type=MX
>domain2.com
domain2.com preference = 10, mail exchanger = nt.host.com
BLAH
BLAH
nt.host.com A.B.C.D
>exit
#telnet A.B.C.D 25
If you don't get A.B.C.D you've got a name resolution problem.
If you can't telnet A.B.C.D 25, an SMTP server isn't running on the NT host.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 11:40 AM
12-07-2001 11:40 AM
Re: Sendmail 8.7.6 hostname lookup failure
When DShost-relay in an unqualified server name , I can send mail!!! If host-relay.domain1.com, I cannot!!!
I have done nslookup on host-relay.domain1.com --> it's fine, so is nslookup on relay,
It seemed to fix the problem. I am confused. I understand that /etc/resolv.conf has search directive for domain1.com. Whay would it behave differently w/FQDN ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 11:55 AM
12-07-2001 11:55 AM
Re: Sendmail 8.7.6 hostname lookup failure
This best thing to do on these is to make sure you look up everything both ways -- frontwards by name and reverse by IP - (qualified [a.com], fully qualified [a.com.], and unqualified [a]). Pay careful attention to where DNS gets the name (server vs. files).
Don't forget to check the MX.
When you do that, you'll usually find that something is misconfigured.