Bug 198511 - Exim unable to send mail to localhost or localhost.localdomain
Summary: Exim unable to send mail to localhost or localhost.localdomain
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: exim
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Woodhouse
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-11 15:33 UTC by John Horne
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 4.63-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-04 02:54:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Horne 2006-07-11 15:33:10 UTC
Description of problem:
Exim gives error when sending mail to '@localhost' or '@localhost.localdomain'
addresses.

Version-Release number of selected component (if applicable):
exim-4.62-2.fc5

How reproducible:
Always

Steps to Reproduce:
1. Run 'exim -bt root@localhost' or 'exim -bt root'
2.
3.
  
Actual results:
Error produced:

  exim -bt root@localhost
  root@localhost is undeliverable:
    Unrouteable address


Expected results:
Exim should deliver the mail to the local host.

Additional info:

Sendmail produces correct result and delivers mail to the local host. As such
both exim and sendmail should perhaps do the same (similar) thing?

Some software seems to use the '@localhost' address - e.g. Apache in
/etc/httpd/conf/httpd.conf (httpd-2.2.2-1.0). The admin address is given as
'ServerAdmin root@localhost'. This will obviously fail if used. Also
/etc/warnquota.conf (quota-3.13-1.2.1), which contains 'CC_TO = "root@localhost"'.

Possible solution:
The default exim.conf file contains:

  domainlist local_domains = @

This could be changed to:

  domainlist local_domains = @ : localhost : localhost.localdomain

Testing then gives:

  exim -bt root@localhost
  root@localhost
    router = localuser, transport = local_delivery



John.


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