- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how does mailx look up the mail server
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-22-2006 09:09 AM
тАО06-22-2006 09:09 AM
how does mailx look up the mail server
Two questions,
1. how does mailx lookup the mail server? what is the steps?
2. I want to send mail using assigned mail server, how to accomplish that?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2006 09:33 AM
тАО06-22-2006 09:33 AM
Re: how does mailx look up the mail server
You can check the man pages for mailx, dtmail, mail and sendmail. You will be able to grab some information from there.
Luis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2006 09:36 AM
тАО06-22-2006 09:36 AM
Re: how does mailx look up the mail server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2006 09:50 AM
тАО06-22-2006 09:50 AM
Re: how does mailx look up the mail server
'sendmail' relys on having a viable DNS running, so first, do that.
You need to setup the smart relay macro in '/etc/mail/sendmail.cf'. You should have something like:
DSadmin.exchange.com
...for the DS macro which should be commented-out.
Also, add your server's hostname and FQDN to '/etc/mail/sendmail.cw' if its not already there.
You do *not* need to have the 'sendmail' daemon running to send out-going mails. Thus, if you wish, set SENDMAIL_SERVER=0 in ' /etc/rc.config.d/mailservs'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2006 09:58 AM
тАО06-22-2006 09:58 AM
Re: how does mailx look up the mail server
Just in case check this link also:
http://docs.hp.com/en/5991-4829/index.html
LN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2006 10:04 AM
тАО06-22-2006 10:04 AM
Re: how does mailx look up the mail server
--'sendmail' relys on having a viable DNS running, so first, do that.
>> yes, I have viable DNS running, but the situation is my host(FQDN) is in one domain(say host1.domain1.com) and the mail server (that I wish to use) is in another domain (mailhost1.domain2.com), both DNS server are correctly configured, from host host1.domain1.com I can nslookup and ping mailhost1.domain2.com, however, each time when I use mailx or sendmail it will use another mail server for delivering (mailhost2.domain2.com) so that's why I want to know the search path. I also tried to change the domain/nameserver in resolv.conf, it does not help either.
--You need to setup the smart relay macro in '/etc/mail/sendmail.cf'. You should have something like:
DSadmin.exchange.com
...for the DS macro which should be commented-out.
>> I did above but still mail won't be sent from this server
DSmailhost1.domain2.com
--Also, add your server's hostname and FQDN to '/etc/mail/sendmail.cw' if its not already there.
>> tried same as above.
--You do *not* need to have the 'sendmail' daemon running to send out-going mails. Thus, if you wish, set SENDMAIL_SERVER=0 in ' /etc/rc.config.d/mailservs'.
>> understand, thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2006 11:22 AM
тАО06-22-2006 11:22 AM
Re: how does mailx look up the mail server
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2006 12:05 PM
тАО06-22-2006 12:05 PM
Re: how does mailx look up the mail server
...
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2006 01:30 PM
тАО06-22-2006 01:30 PM
Re: how does mailx look up the mail server
Check the below link and /etc/rc.config.d/mailservs file.
http://devrsrc1.external.hp.com/STK/impacts/i216.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2006 02:07 AM
тАО06-23-2006 02:07 AM
Re: how does mailx look up the mail server
export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=