- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sendmail and name resolution
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
06-12-2003 01:44 PM
06-12-2003 01:44 PM
If I telnet directly to the smtp relay, I can send an e-mail to an external address. This at least tells me that the smtp relay is working correctly. When I try to send from my HP-UX system, this is what I get in the mail.log file when trying to send an e-mail to boomshnka@yahoo.com from my address (christopher.little@gx.novartis.com):
Jun 12 15:31:00 usbrsapl sendmail[20180]: PAA20180: from=littlch1, size=141, class=0, pri=30141, nrcpts=1, msgid=<200306
122131.PAA20180@mail.novartis.com>, relay=littlch1@localhost
Jun 12 15:31:00 usbrsapl sendmail[20182]: PAA20180: to=boomshnka@yahoo.com, ctladdr=littlch1 (204/20), delay=00:00:00, x
delay=00:00:00, mailer=esmtp, relay=yahoo.com, stat=Host unknown (Name server: yahoo.com: host not found)
Jun 12 15:31:00 usbrsapl sendmail[20182]: PAA20180: PAA20182: DSN: Host unknown (Name server: yahoo.com: host not found)
Jun 12 15:31:01 usbrsapl sendmail[20182]: PAA20182: to=christopher.little@gx.novartis.com, delay=00:00:01, xdelay=00:00:
01, mailer=esmtp, relay=nvchbs-mailgw1.is.chbs. [192.37.33.74], stat=Sent (XAA11961 Message accepted for delivery)
One promissing solution that I found involved commenting the section "pass to name server to make hostname canonical" and then changing all occurences of "F=mDFMuX" to "F=0mDFMuX" under "SMTP Mailer speccification". The following is what I get in the mail.log file when trying to send the same previous e-mail:
Jun 12 15:41:32 usbrsapl sendmail[20457]: PAA20457: from=littlch1, size=138, class=0, pri=30138, nrcpts=1, msgid=<200306
122141.PAA20457@mail.novartis.com>, relay=littlch1@localhost
Jun 12 15:41:33 usbrsapl sendmail[20460]: PAA20457: to=boomshnka@yahoo.com, ctladdr=littlch1 (204/20), delay=00:00:01, x
delay=00:00:01, mailer=esmtp, relay=yahoo.com, stat=Host unknown (Name server: yahoo.com: host not found)
Jun 12 15:41:33 usbrsapl sendmail[20460]: PAA20457: PAA20460: DSN: Host unknown (Name server: yahoo.com: host not found)
Jun 12 15:41:33 usbrsapl sendmail[20460]: PAA20460: to=christopher.little@gx.novartis.com, delay=00:00:00, xdelay=00:00:
00, mailer=esmtp, relay=gx.novartis.com, stat=Host unknown (Name server: gx.novartis.com: no data known)
Jun 12 15:41:33 usbrsapl sendmail[20460]: PAA20460: PAB20460: return to sender: Host unknown (Name server: gx.novartis.c
om: no data known)
Jun 12 15:41:33 usbrsapl sendmail[20460]: PAB20460: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
This actually turns out to make me worse off than before as I can't even send to local address anymore. I get the same errors as stated above. Any ideas? I'd be glad to send an entire copy of my sendmail.cf file and any other info to anybody that's willing to take a crack at it. Thanks.
Chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 01:57 PM
06-12-2003 01:57 PM
Re: sendmail and name resolution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 02:02 PM
06-12-2003 02:02 PM
Re: sendmail and name resolution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 02:05 PM
06-12-2003 02:05 PM
Re: sendmail and name resolution
Jerome - I have no control over our DNS environment and would likely have no luck in getting it changed.
Thanks for the replies guys. I'm really just hoping that there is some bit of magic out there for forcing the name resolution to take place at the smtp relay.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 02:08 PM
06-12-2003 02:08 PM
Re: sendmail and name resolution
/etc/resolve.conf should have
domain YourDomain
nameserver IP_of_your_nameserver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 02:10 PM
06-12-2003 02:10 PM
Re: sendmail and name resolution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 02:12 PM
06-12-2003 02:12 PM
Re: sendmail and name resolution
# nslookup msn.com
Using /etc/hosts on: moron
looking up FILES
Trying DNS
Non-authoritative answer:
Name: msn.com
Address: 207.68.172.246
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 02:16 PM
06-12-2003 02:16 PM
Re: sendmail and name resolution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 04:51 PM
06-12-2003 04:51 PM
Re: sendmail and name resolution
Before you start, the server you intend to relay off of must accept relay mail from your HP box. This can be a pain with exchange, but it can be done. Its a lot easier to set up on a firewall/smtp server like Symmantec.
in the sendmail.cf file
DS
[IP_address_of_relay_server]
save it
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
You are ready to run a test mail.
sendmail -v -d8.99 -d38.99 someone@yahoo.com
Type a line of text
type a dot(period)
You will get good diagnostics.
One note: Yahoo aol and others will not accept mail unless the sending server resolves via public internet dns.
In mail relay, the relay server needs to have an address that can be resolved publically. If that happens to be your HP-UX server down the line in problem resolution, you sending mail server is going to need a publically resolvable name EVEN if its behind a firewall and that name resolves to an external mail server or isp.
Few ways to do that.
the Dj parameter in sendmail.cf
uncomment it and make it
Djmail.yourdomain.net
Or make your hostname in /etc/rc.config.d/netconf publically resolveable. That's not always an option on the business side of the firewall.
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-12-2003 05:21 PM
06-12-2003 05:21 PM
SolutionThis means you should have the DS macro defined in your sendmail.cf file like so:
DSfw-mail1.novartis.com
I'm taking this from your domain's MX records. Your relay's internal hostname may be different.
You also need to be sure that either /etc/hosts or your internal DNS can resolve the hostname of your mail relay. From there, all e-mail should flow correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 05:30 PM
06-12-2003 05:30 PM
Re: sendmail and name resolution
I'd say Steven is correct in that you need to set the DS paramater in the /etc/mail/sendmail.cf file as follows
DS
If you can resolve internal DNS names (ie your smtp relay) then you can use name in place of IP address.
Its a while since I've done this but from memory that works fine.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 10:33 PM
06-12-2003 10:33 PM
Re: sendmail and name resolution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2003 08:29 AM
06-13-2003 08:29 AM
Re: sendmail and name resolution
Chris