Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    23

    Default mail to localhost is bouncing

    Hi,

    When the server sends mail to root@localhost (eg. rootkit hunter does this), the mail is bouncing back to the sender (which forwards to me), with "unrouteable mail domain 'localhost'".

    "localhost" is a valid entry in the etc/hosts file. Is there something I need to configure in Exim to get it to send to the localhost properly? Seems so basic I can't figure why it wouldn't work out of the box.


    Thanks,

    Shiraz

  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    48

    Default

    Hi Shiraz,

    Whats does exim error log say ?

    tail -f /var/log/exim_errorlog

  3. #3
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Quote Originally Posted by ShirazDindar View Post
    Hi,

    When the server sends mail to root@localhost (eg. rootkit hunter does this), the mail is bouncing back to the sender (which forwards to me), with "unrouteable mail domain 'localhost'".

    "localhost" is a valid entry in the etc/hosts file. Is there something I need to configure in Exim to get it to send to the localhost properly? Seems so basic I can't figure why it wouldn't work out of the box.


    Thanks,

    Shiraz
    Change your domainlist local_domains to


    domainlist local_domains = lsearch;/etc/localdomains : localhost



    in the advanced exim editor.

    better yet.. don't send root mail.

  4. #4
    Member
    Join Date
    Apr 2007
    Posts
    48

    Default

    ooooops sorry ... tail -f /var/log/exim_mainlog not exim_errorlog

  5. #5
    Member
    Join Date
    Jan 2006
    Posts
    23

    Default thanks guys

    Thanks to both of you...

    I followed cpanelnick's advice and edited the Exim conf file and now it works. Following your other suggestion, I *did* try to change the rkhunter email address to something other than root, but I couldn't find this configuration option in rkhunter... just wondering why it would be a bad idea for emails to go to root, though?


    On a related note, I find this whole scenario strange because this is on a new server with a default Cpanel install on a default Fedora 4 install. ie. rkhunter defaulted to root as the email address, and Exim defaulted to not handling such emails properly. I'm wondering how come others haven't experienced the problem... ie. couldn't find anything about it on these forums nor Google. Thoughts, anyone?


    Thanks again to both of you...

    Shiraz

Similar Threads & Tags
Similar threads

  1. backup mail server catching all mail & bouncing with no such user here
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-07-2010, 05:52 PM
  2. Mail bouncing
    By tooxic in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-22-2005, 08:58 PM
  3. Bouncing mail
    By Brandonr in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-28-2004, 05:01 AM
  4. Yahoo, Hotmail mail bouncing
    By sbrad in forum cPanel and WHM Discussions
    Replies: 27
    Last Post: 03-30-2004, 05:02 PM
  5. Bouncing for default mail account
    By MarkNorthEast in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-15-2001, 10:57 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube