- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- sendmail: getmxrr() returns -1 value(s):
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
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
тАО10-07-2005 01:08 AM
тАО10-07-2005 01:08 AM
I can reproduce the problem using the following sendmail test instructions.
root@good-host$ echo "/mx my-relay.my-domain.com" | sendmail -bt -d8.20
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter
> getmxrr(my-relay.my-domain.com, droplocalhost=0)
getmxrr(my-relay.my-domain.com) returns 0 value(s):
root@bad-host$ echo "/mx my-relay.my-domain.com" | sendmail -bt -d8.20
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter
> getmxrr(netaexcd.bmreports.co.uk, droplocalhost=0)
getmxrr: res_search(netaexcd.bmreports.co.uk) failed (errno=0, h_errno=0)
getmxrr: res_search (netaexcd.bmreports.co.uk) failed with impossible h_errno (0)
getmxrr(netaexcd.bmreports.co.uk) returns -1 value(s):
On the good server, it finds zero MX records for the mail relay (this is OK). On the bad server, it finds -1 MX records, which causes sendmail to fail.
The configuration on both machines (sendmail.cf, network settings, etc.) appears to be identical.
Any suggestions what to look at next?
I'm using sendmail v8.11 on Tru64v5.1b(2650)
Greg Roach
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 01:50 AM
тАО10-07-2005 01:50 AM
Re: sendmail: getmxrr() returns -1 value(s):
Neither machine uses DNS (they just use /etc/hosts).
By setting the "bad" machine to use our local DNS server, it now works.
This doesn't explain why the "good" machine works without it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 01:55 AM
тАО10-07-2005 01:55 AM
Re: sendmail: getmxrr() returns -1 value(s):
Can we assume that one system can relay and the other cannot ?
Did you run mailsetup as root on both systems and answer the questions with similar answers in particular those for the mail relay ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 01:56 AM
тАО10-07-2005 01:56 AM
Re: sendmail: getmxrr() returns -1 value(s):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 01:57 AM
тАО10-07-2005 01:57 AM
Re: sendmail: getmxrr() returns -1 value(s):
Verify your host table, svc.conf, nsswitch.conf, resolv.conf, and use nslookup to test the DNS server configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 01:58 AM
тАО10-07-2005 01:58 AM
SolutionIf you have dns servers available, you'd be far better off using them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2005 02:53 AM
тАО10-07-2005 02:53 AM
Re: sendmail: getmxrr() returns -1 value(s):
Yes, I ran mailsetup on both machines.
Yes, one machine can forward mail to the relay and one cannot.
The purpose of the test was to reproduce the error I get while trying to relay, but with some debug enabled.
/etc/svc.conf is the same on both machines.
Ivan,
I was trying to hide the real host names and replace them with "my-host.my-domain". I missed one. Oops :-(
/etc/hosts, and /etc/*.conf are all identical.
There is (was) no DNS on these machines. They sit on a small network and only need to speak to one external machine. Hence we just use a hosts file.
Interestingly, I have now disabled dns on the "non working" machine (using sysman dns) and it continues to work.
The fix appears to have been "enable dns, disable dns".
The old (working) machine previously ran dns.
The new (non working) machine had never used dns.
Thank-you both for your time.