- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How does mailx determine where to deliver mail...
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
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
тАО06-29-2009 10:10 AM
тАО06-29-2009 10:10 AM
How does mailx determine where to deliver mail to?
How is it possible for my server to send email when ping and nslookup for mx.domain.com does not return a result?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 10:21 AM
тАО06-29-2009 10:21 AM
Re: How does mailx determine where to deliver mail to?
mailx does not dtermine mail delivery.
mailx passes its mail to the MTA, The Mail Transfer Agent.
That is by default sendmail.
The log is /var/adm/syslog/mail.log
nslookup mx.domain.com
If that fails and thats where your mail is supposed to go then you have part of your answer.
You can get around this quickly as follows:
Modify sendmail.cf
DS
[IP address of mail exchanger]
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
This takes DNS out of the mix.
If BIND is installed.
dig mx domain.com
Should return the mail exchanger.
Try ping by IP address.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 10:27 AM
тАО06-29-2009 10:27 AM
Re: How does mailx determine where to deliver mail to?
You can send mail directly to your internal Exchange mail. I'm taking this that you relay mail to your Exchange mail server, so at that point mail should be going out via the Exchange server.
Your second statement that you can not ping or nslookup the mx.domain.com because your DNS doesn't have that entry. The issue here is resolution....
You could put the entry in your hostfile.
I'm going to guess that Windows (Exchange server) has some kind of DNS running....so why not set up your HPUX boxes so they know the DNS servers & will look at them.
Edit /etc/resolv.conf to include:
nameserver
Edit /etc/nsswitch.conf
hosts: files [NOTFOUND=continue] dns
Now it will check your hostfile first, then if not there it will check 'dns' and point to the IP of the DNS server you put in /etc/resolv.conf.
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 10:41 AM
тАО06-29-2009 10:41 AM
Re: How does mailx determine where to deliver mail to?
search domain.com
nameserver
nameserver
ping mx.domain.com
returns "ping: unknown host mx.domain.com"
nslookup mx.domain.com
returns "p-dns.domain.com can't find mx.domain.com: Non-existent domain"
Yet if I do "mailx my.name@domain.com" the mail is delivered to my Outlook mailbox after a few seconds. Why does this work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 11:17 AM
тАО06-29-2009 11:17 AM
Re: How does mailx determine where to deliver mail to?
It is not the HP-UX server that is doing the sending. The HP-UX server most likely relays the mail to another server, probably your exchange server. You can verify it by checking in two places.
1. Look in your /etc/mail/sendmail.cf file and look for a line that starts with DS it is the relay server that HP-UX is using to deliver the mail
2. Look in the /var/adm/syslog/mail.log file and find a log entry for a message that was sent outside your domain. Its "to=" should have an outside email address and its "relay=" should have the server that your HP-UX server relays to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 11:42 AM
тАО06-29-2009 11:42 AM
Re: How does mailx determine where to deliver mail to?
When I scan the log file for today's date and the word relay and my domain, I find email sent to addresses on my Exchange server do say relay=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 11:48 AM
тАО06-29-2009 11:48 AM
Re: How does mailx determine where to deliver mail to?
You definitely have a DNS problem.
Lookups are not working.
However as my original post points out you don't need DNS to get mail off the server.
If you have:
DS
[ip address]
In sendmail.cf your mail will get off the server.
Solving the DNS problem is a good idea for normal server operation.
/etc/nsswitch.conf
Make sure it makes sense, as per Rita's post.
/etc/resolv.conf
Make sure you can ping these hosts and there are no configuration errors.
use nslookup,host,dig if available to test your changes.
Perhaps copy /etc/nsswitch.conf and /etc/resolv.conf from another working HP-UX server. That always works for me.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 11:50 AM
тАО06-29-2009 11:50 AM
Re: How does mailx determine where to deliver mail to?
Specifically see if there is a name or IP address on the SENDMAIL_SERVER_NAME line. If so, that is where your mail will be sent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 11:52 AM
тАО06-29-2009 11:52 AM
Re: How does mailx determine where to deliver mail to?
I do not have a DNS problem. DNS is working fine. I am able to send mail. The DS line is blank, there is no IP address entered in the config file.
What I need to find out is WHY sending mail is wokring when everything I read tells me it will not work if there is no MX record in DNS and the DS line is blank?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 11:52 AM
тАО06-29-2009 11:52 AM
Re: How does mailx determine where to deliver mail to?
> email sent to addresses on my Exchange server do say relay=
The above two statements contradict each other.
If you are positive there is no DS entry in the /etc/mail/sendmail.cf file, then do you have any other user translation defined in /etc/mail? Look in the aliases files and also for existence of maps such as mailertable, domaintable, genericstable and virtusertable, relay-domains.
One last longshot thought. Is the sendmail daemon not using the default config file /etc/mail/sendmail.cf?