Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 99080 - Default installation of sendmail can't send mail: no route to host
Default installation of sendmail can't send mail: no route to host
Product: Red Hat Linux
Classification: Retired
Component: sendmail (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Florian La Roche
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2003-07-14 05:46 EDT by Jim
Modified: 2007-04-18 12:55 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-07-30 17:37:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jim 2003-07-14 05:46:55 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529

Description of problem:
After installing redhat 9, I am unable to send mail. Using eg.
  mail -s "test mail" bob@redhat.com
will result in the mail sitting in the queue with the message "no route to
host". This would initially seem like a DNS issue, however dig can get all the
information on any domain, including MX information. Any website is browsable. 

I have tried this on three separate, successive installations of RedHat 9. The
security settings are medium, and SMTP is allowed. 

I have tried uninstalling sendmail and re-installing

I have tried altering the following sendmail settings
  - Masquerade
by editing sendmail.mc and running m4 to generate a new configuration.

I have tried sending mail from pine, first altering the configuration so that it
sends via my ISP's SMTP server. This also fails.

Other computers on the same network segment can send mail, so the ISP is not
blocking port 25.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install redhat 
2. Try to send mail


Actual Results:  mail is not sent

Additional info:

I can't imagine this is a widespread bug, or else everyone would have complained
about it. I think it must therefore be something specific to my configuration,
although I can't think what.
Comment 1 Jim 2003-07-15 01:09:24 EDT
OK, I think I've figured it out. Its to do with the way sendmail treats hostnames.

When you install RH9, it asks you for a hostname which the installer writes into 

The entry into /etc/hosts seems to confuse sendmail. Removing the entry
containing the hostname allows sendmail to work. 
If you called your machine rh9box on install, you'll have the following in your
/etc/hosts file         rh9box localhost.localdomain localhost

This should read         localhost

for sendmail to work. Now the question is does anything else break when you
change it?

Comment 2 Florian La Roche 2003-07-30 17:37:51 EDT
Looks like a config problem, closing bug.

Florian La Roche
Comment 3 Jim 2003-07-30 17:44:32 EDT
Of course its a config problem. My point was that it was a config problem
introduced by the Redhat Installer. i.e. the installer disables sendmail's
ability to send mail. Which kind of negates its purpose. Anyway, I've done my
duty reporting it. 

Note You need to log in before you can comment on or make changes to this bug.