Results 1 to 5 of 5

Thread: Unroutable address root@localhost

  1. #1
    Join Date
    Jul 2006
    Posts
    43

    Unroutable address root@localhost

    What is the nicest way to make exim 4.50 to route these messages into a maibox assigned for root in /etc/alias file?

    2005-03-06 22:49:14 1D82ga-00067Q-Qg <= root@localhost H=localhost (garfield.tee-en.net) [127.0.0.1] P=smtp S=810
    2005-03-06 22:49:14 1D82ga-00067Q-Qg ** root@localhost: Unrouteable address

    The messages are sent by some local service with tcp/ip to root@localhost, obviously with no from information.

    I guess my acl already accepts messages from 127.0.0.1, so the problem would be to handle "localhost" in a proper way?
    Be cool people, Enne has arrived.

  2. #2
    Join Date
    Apr 2008
    Posts
    3,424

    Re: Unroutable address root@localhost

    It is a bad idea to try delivering e-mail to root. alias root to a non-root mailbox. An exim compiled with the default compile-time settings will refuse to deliver e-mail to root by virtue of the FIXED_NEVER_USERS setting.

  3. #3
    Join Date
    Jul 2006
    Posts
    43

    Re: Unroutable address root@localhost

    Why is it a bad idea to _accept_ mail _addressed_ to root (for delivery to a non-root user), if some service in own computer needs to send it? (this is what I tried to ask, sorry if the question was written in a too careless way)

    What is a bad idea instead, is to run mail delivery as root, but I think there's no reason to do so since /etc/alias tells to whom this mail should actually be delivered. If alias file tells to deliver it to a regular user, what makes the difference to any other mail?

    So, to start my question over, without a need to unnecessarily get stuck with magic word "root": Some service in my own computer would send me mail to timo@localhost instead of using FQDN. How can I make exim 4.50 to accept this? Anyway, I don't want to open new doors for spammers sending me something with to-address set to xxx@localhost

    It propably can't be done by simply expanding localhost to default fully qualified name, since it would allow a lot of spam from foreign MTAs. Conditionally rewriting localhost to something else sounds a little bit complicated for this purpose. I guess there should be an easy way to do this...
    Be cool people, Enne has arrived.

  4. #4
    Join Date
    May 2008
    Posts
    3,516

    Re: Unroutable address root@localhost

    "exim -d -bt root@localhost" will give you the necessary information, otherwise exim -bh might be helpful.

  5. #5
    Join Date
    Feb 2008
    Posts
    2,635

    Re: Unroutable address root@localhost

    The issue isn't root or the alias file, it is that Exim does not now how to deliver mail to a domain called localhost. I would suggest that you determine why the process is sending to localhost and not to the FQD or FQ host name or for that matter just to root without the @anything. Do a uname -a and see what your host thinks it's name is. I'm going to guess that is is "localhost" but even if it comes back as the correct host name if it is not listed in the config as a domain or host that you accept mail for Exim will pass it to the DNS router and it will not resolve with a Route for that system ... therefore undeliverable!

Similar Threads

  1. Replies: 4
    Last Post: 20-03-2011, 03:37 AM
  2. Replies: 5
    Last Post: 07-06-2010, 10:47 PM
  3. How to get IP address of localhost in java?
    By MKAIF in forum Software Development
    Replies: 4
    Last Post: 05-02-2010, 10:01 PM
  4. Replies: 2
    Last Post: 05-03-2009, 05:12 AM
  5. Replies: 3
    Last Post: 13-10-2007, 06:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,965,428.31869 seconds with 17 queries