Red Hat Bugzilla – Bug 151147
exim unable to send mail to localhost or localhost.localdomain
Last modified: 2007-11-30 17:11:01 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050302 Firefox/1.0.1 Fedora/1.0.1-1.3.2
Description of problem:
Not sure this is a bug as such, but...
Installed exim as MTA. Using local user account 'john', email to 'john@localhost' fails with:
exim -bt john@localhost
remote host address is the local host: localhost (while routing <john@localhost>)
john@localhost cannot be resolved at this time:
remote host address is the local host
and 'email@example.com' fails with:
exim -bt firstname.lastname@example.org
email@example.com is undeliverable:
This does not seem to be a problem with sendmail as it seems to re-address these addresses to the local hosts actual (FQDN) name.
Some software, eg smartd in /etc/smartd.conf, uses the local addresses (firstname.lastname@example.org) to report disk problems. As such exim should be able to handle these addresses.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install exim using 'up2date -i exim' or 'yum install exim'.
2. Test sending a message to a local account using the command 'exim -bt root@localhost'.
Actual Results: Output shows that sending a message to the local host addresses fails.
Expected Results: Email should be delivered to the local account.
I have a caching name server installed (caching-nameserver-7.3-3) so the local DNS knows about 'localhost' and 'localhost.localdomain'. Without this I suspect an 'unrouteable domain' error would be produced.
My /etc/hosts contains:
127.0.0.1 localhost.localdomain localhost
184.108.40.206 ltsp.csd.plymouth.ac.uk ltsp
as the server is configured with a static IP address. On a PC using DHCP hostname (FQDN name) are all on the 127.0.0.1 line. As such email to the local addresses still fails.
Sending mail to 'ltsp.csd.plymouth.ac.uk' works as exim sees this as the 'primary_hostname'.
I have modified /etc/exim/exim.conf to include 2 rewrite rules:
'exim -bP primary_hostname' shows this to be 'ltsp.csd.plymouth.ac.uk'. As such the above rewrites work and local mail can now be delivered. However, I'm not convinced that is the best solution :-)
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.
Exim has moved out of the Core packages and into Fedora Extras. I'll retest this
bug (I think it still exists with the FC5 extras), and open a new bug report
under Fedora Extras if necessary. I'll close this bug report - if I can,