root can't send mail

Webcart

Verified User
Joined
Jan 14, 2004
Messages
367
Hello,

It's a new install of FreeBSD 4.10 and the latest DA.
I've set up /etc/aliases so that mails to root are forwarded to my e-mail address.

When I try to send mails as root, I get a bounce message.
If I "su" to admin and then send a mail, it works fine.

Please advise. Thank you.
 
What error message do you get?

What method are you using for sending the email?

Jeff
 
I tried to send it with "mail" program while being logged in:

Code:
[root@~ main]# mail root
Subject: testing e-mail address
test
.
EOT
[root@~ main]# su - admin
Need to quickly return to your home directory? Type "cd".
                -- Dru <[email protected]>
$ mail root
Subject: testing e-mail address - 2nd attempt
test 2
.
EOT
$

The first mail reaches my mailbox like this:
Code:
From: Mail Delivery System
To:     [email][email protected][/email]

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

  [b][email protected][/b]
    (generated from [email][email protected][/email])
    Unrouteable address

------ This is a copy of the message, including all the headers. ------

...

The second one (from "admin") works just fine.

I would like to get thix fixed because daily FreeBSD e-mail notifications also get bounced and when they (finally) reach me they are not catched by Outlook's rules and not moved to a correct folder.
 
Please also find below relevant lines from /var/log/exim/exim_mainlog:

Headers are edited to remove actual IP addresses/domain names.
DOMAIN.COM - is a domain set up on that box.
[email protected] - e-mail address elsewhere (not on that box).

Mail from admin to root:
Code:
2004-11-28 08:59:50 1CYSOs-000O93-Vf <= [email][email protected][/email] U=admin P=local S=349 T="testing e-mail address - 2nd attempt" from <[email protected]> for root
2004-11-28 08:59:52 1CYSOs-000O93-Vf => [email][email protected][/email] <[email protected]> F=<[email protected]> R=lookuphost T=remote_smtp S=362 H=MY.OTHERDOMAIN.COM [256.256.256.256] C="250 2.6.0  <[email protected]> Queued mail for delivery"
2004-11-28 08:59:52 1CYSOs-000O93-Vf Completed

Mail from root to root:
Code:
2004-11-28 09:30:07 1CYSsB-000OC0-TA <= [email][email protected][/email] U=root P=local S=333 T="testing e-mail address" from <[email protected]> for root
2004-11-28 09:30:07 1CYSsB-000OC0-TA ** [email][email protected][/email] <[email protected]> F=<[email protected]>: Unrouteable address
2004-11-28 09:30:07 1CYSsB-000OC2-TY <= <> R=1CYSsB-000OC0-TA U=mail P=local S=1185 T="Mail delivery failed: returning message to sender" from <> for [email][email protected][/email]
2004-11-28 09:30:07 1CYSsB-000OC0-TA Completed
2004-11-28 09:30:09 1CYSsB-000OC2-TY => [email][email protected][/email] <[email protected]> F=<> R=lookuphost T=remote_smtp S=1221 H=MY.OTHERDOMAIN.COM [256.256.256.256] C="250 2.6.0  <[email protected]> Queued mail for delivery"
2004-11-28 09:30:09 1CYSsB-000OC2-TY Completed
 
In the first instance root is being seen as "root"; in the second it's being seen as "root" at a given domain.

Figuring out why would require running exim in diagnostic mode, from the command line.

You can learn more about troubleshooting exim by reading the documentation; either by buying the exim[/b] book published by UITCambridge (which is what I did) or by reading it online at exim.org.

(I find the book a lot easier to use than the online documentaiton; ymmv.)

Jeff
 
Back
Top