- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: weird behaviour when sendmail solves the hostn...
Operating System - Linux
1754207
Members
4531
Online
108811
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО11-18-2010 12:12 AM
тАО11-18-2010 12:12 AM
weird behaviour when sendmail solves the hostname of the relay server
Hi
The sendmail of my node 'node5' is configured to use a relay server (suppose 'relay').
There are 2 domain names due to a company name change. Suppose 'YYY.com' is the older domain name and 'ZZZ.com' is newer one.
They both are equivalent, i.e., node5.YYY.com and node5.ZZZ.com solves to the same IP address BUT
DNS solve the relay host name differently acording to the domain name:
relay.YYY.com --> 1.1.1.7
relay.ZZZ.com --> 1.2.2.7
'node5' cannot access to 1.1.1.7 due to firewall rules, therefore, 'node5' must use relay.ZZZ.com.
NOW pay attention on the following.
The host name of 'node5' is found without domain name in /etc/sysconfig/network:
HOSTNAME=node5
it also appears in the /etc/hosts:
1.2.2.14 node5 node5.YYY.com
but in the file /etc/resolv.conf the domain name is ZZZ.com:
domain ZZZ.com
In the file /etc/mail/sendmail.cf appears
DSrelay.YYY.com
BUT the sendmail log shows the e-mail is delivered to relay.ZZZ.com (1.2.2.7) (resolved wrongly) !!!
How can it be?
The commands nslookup and ping always resolve the name relay.YYY.com to 1.1.1.7.
If I change any of the following:
1. add a domain name in /etc/sysconfig/network (for example node5.ZZZ.com)
2. change the domain name in /etc/resolv.conf (search YYY.com)
3. in the /etc/hosts file, add a domain name (node5.ZZZ.com) OR remove the alias of other domain name (removing node5.YYY.com)
the sendmail tries to deliver e-mail to relay.YYY.com (1.1.1.7) --> resolving right
I think the mixture of domain names might be the root of the sendmail problem but my skills of sendmail configuration are low.
P.D: the DNS server contains MX register pointing to relay.YYY.com
ZZZ.com mail exchanger = 10 relay.YYY.com.
The sendmail of my node 'node5' is configured to use a relay server (suppose 'relay').
There are 2 domain names due to a company name change. Suppose 'YYY.com' is the older domain name and 'ZZZ.com' is newer one.
They both are equivalent, i.e., node5.YYY.com and node5.ZZZ.com solves to the same IP address BUT
DNS solve the relay host name differently acording to the domain name:
relay.YYY.com --> 1.1.1.7
relay.ZZZ.com --> 1.2.2.7
'node5' cannot access to 1.1.1.7 due to firewall rules, therefore, 'node5' must use relay.ZZZ.com.
NOW pay attention on the following.
The host name of 'node5' is found without domain name in /etc/sysconfig/network:
HOSTNAME=node5
it also appears in the /etc/hosts:
1.2.2.14 node5 node5.YYY.com
but in the file /etc/resolv.conf the domain name is ZZZ.com:
domain ZZZ.com
In the file /etc/mail/sendmail.cf appears
DSrelay.YYY.com
BUT the sendmail log shows the e-mail is delivered to relay.ZZZ.com (1.2.2.7) (resolved wrongly) !!!
How can it be?
The commands nslookup and ping always resolve the name relay.YYY.com to 1.1.1.7.
If I change any of the following:
1. add a domain name in /etc/sysconfig/network (for example node5.ZZZ.com)
2. change the domain name in /etc/resolv.conf (search YYY.com)
3. in the /etc/hosts file, add a domain name (node5.ZZZ.com) OR remove the alias of other domain name (removing node5.YYY.com)
the sendmail tries to deliver e-mail to relay.YYY.com (1.1.1.7) --> resolving right
I think the mixture of domain names might be the root of the sendmail problem but my skills of sendmail configuration are low.
P.D: the DNS server contains MX register pointing to relay.YYY.com
ZZZ.com mail exchanger = 10 relay.YYY.com.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 08:51 AM
тАО11-18-2010 08:51 AM
Re: weird behaviour when sendmail solves the hostname of the relay server
Shalom,
I would change the DS directive to not use /etc/hosts or DNS to look up the relay name.
I'd hard code the IP address of node5, the relay server into the sendmail configuration.
/etc/nsswitch.conf might be doing something funky about resolve order. If you must use host name, insure that files happens in nsswitch.conf before dns and that the /etc/hosts line resolves any possible combination to the acceptable mail relay.
SEP
I would change the DS directive to not use /etc/hosts or DNS to look up the relay name.
I'd hard code the IP address of node5, the relay server into the sendmail configuration.
/etc/nsswitch.conf might be doing something funky about resolve order. If you must use host name, insure that files happens in nsswitch.conf before dns and that the /etc/hosts line resolves any possible combination to the acceptable mail relay.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
тАО11-22-2010 03:10 PM
тАО11-22-2010 03:10 PM
Re: weird behaviour when sendmail solves the hostname of the relay server
You give a nice scenario, but you've not told us what's exactly wrong. That is, something like "the sendmail tries to deliver to..." but I want it to deliver to...
Of course, in there, you say it's "resolving right" so I'm just totally missing the error here.
I've got the background to the problem, but what's the problem? sendmail is doing... what?
sending to the wrong server? sending with an error? not sending anything?
Of course, in there, you say it's "resolving right" so I'm just totally missing the error here.
I've got the background to the problem, but what's the problem? sendmail is doing... what?
sending to the wrong server? sending with an error? not sending anything?
We are the people our parents warned us about --Jimmy Buffett
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 03:33 AM
тАО11-23-2010 03:33 AM
Re: weird behaviour when sendmail solves the hostname of the relay server
In the file /etc/mail/sendmail.cf appears
DSrelay.YYY.com
BUT the sendmail log shows the e-mail is delivered to relay.ZZZ.com (1.2.2.7) (resolved wrongly) !!!
How can it be?
DSrelay.YYY.com
BUT the sendmail log shows the e-mail is delivered to relay.ZZZ.com (1.2.2.7) (resolved wrongly) !!!
How can it be?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP