Results 1 to 5 of 5

Thread: Mail sent to root@FQDN doesn't get forwarded

  1. #1
    Join Date
    Sep 2013
    Beans
    7

    Mail sent to root@FQDN doesn't get forwarded

    Hi, I have a Ubuntu 12.04 LTS system, running Exim 4.76-3ubuntu3.1. The system has mail configured as a smarthost, so it sends via my ISP's SMTP server. Exim listens on localhost only (and the firewall is on). I have a gmail address set up as a alias for root in /etc/aliases. If I send mail to root or root@localhost, then it's forwarded to my external email account correctly, via the smarthost. However if I send to root@FQDN, the exim logs show that it's not forwarded to my gmail account - it shows that it's sending it to root@FQDN. Then the email just vanishes - I assume it's sent via the smarthost, which tries to deliver it back to this machine, which fails because Exim is only listening on localhost.

    The problem is that anything run via cron (cron-apt etc) mails the output to root@FQDN, so the emails from all my cron jobs are vanishing. Why is the forwarding email address ignored if mail is sent to root@FQDN, but applied correctly if it's sent to root@localhost? I've checked my hosts file & the FQDN resolves to 127.0.1.1. I tried changing this to 127.0.0.1, but it didn't make any difference.....

    Rich

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mail sent to root@FQDN doesn't get forwarded

    I use this method:
    https://portal.slac.stanford.edu/pub...lfromUnix.aspx

    Lazy, but it works.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Sep 2013
    Beans
    7

    Re: Mail sent to root@FQDN doesn't get forwarded

    Quote Originally Posted by CharlesA View Post
    I use this method:
    https://portal.slac.stanford.edu/pub...lfromUnix.aspx

    Lazy, but it works.
    I've tried that - same result. Mail to the FQDN doesn't get forwarded....

  4. #4
    Join Date
    Sep 2013
    Beans
    7

    Re: Mail sent to root@FQDN doesn't get forwarded

    All fixed - for some reason the FQDN wasn't set in update-exim4.conf.conf, despite being listed correctly when running dpkg-reconfigure exim4-config. Added the FQDN to DC_other_hostnames fixed it all.

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Mail sent to root@FQDN doesn't get forwarded

    Quote Originally Posted by Rich_Stanton View Post
    All fixed - for some reason the FQDN wasn't set in update-exim4.conf.conf, despite being listed correctly when running dpkg-reconfigure exim4-config. Added the FQDN to DC_other_hostnames fixed it all.
    Glad you got it sorted out.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

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
  •