Bug 75167
| Summary: | Sendmail attempts to connect to localhost.com, does not send mail | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Jeremy Linden <jeremy> |
| Component: | sendmail | Assignee: | Florian La Roche <laroche> |
| Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2002-11-03 19:45:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jeremy Linden
2002-10-04 23:43:03 UTC
I have found out some new information about this bug that almost certainly connects it to bug 71906. Contrary to my earlier report, sendmail does not attempt to connect to "localhost.com"; it attempts to connect to "localhost.com.". (Notice the extra dot on the end.) An extremely dirty hack is to add the text "127.0.0.1 localhost.com." to /etc/hosts. Interestingly, adding "127.0.0.1 localhost.com" to /etc/hosts does not do anything. I get exactly the same problem. For me, it says "localhost.cantara.com.", because I set Cwcantara.com in sendmail.mc. The /etc/hosts trick worked for me. I'll be very curious to see why this happens... I had a similar problem. It turns out that I had in my resolv.conf file the following line: search gc (gc was some old domain). When I removed it suddenly all my queued mail was sent. The same configuration used to work under RedHat 7.3; I have no idea why it stopped functioning with 8.0. I believe I am having the same problem. I did a fresh install of RH 8 and didn't make any changes to sendmail. I am thinking I should be able to send mail locally but no, I get the same errors as above. I tried adding 'localhost.localdomain.' in my /etc/hosts file but it didn't fix it. Any tips would be appreciated. One thing you can do is add "localhost.com." to your /etc/hosts file. Another
thing that I just discovered that works is changing a line directly in your
/etc/mail/submit.cf file. The line for me is #112 on my system; it originally
says "D{MTAHost}[localhost]". I changed it to "D{MTAHost}[127.0.0.1]". That
will act as a substitute for modifying your /etc/hosts file. It's still a hack,
but in my opinion it's a less dirty one.
I have changed MTAHost in the newest rpm. Please try out http://people.redhat.com/laroche/sendmail-8.12.3 and open up a new bugzilla report if that version is still having problems for you. greetings, Florian La Roche |