[solved]

I have a problem while sending email as root from Debian machine. In exim panic log appears message:

2009-10-23 10:56:24 1N1Fwd-0001v5-Kh User 0 set for my_local_delivery_transport transport is on the fixed_never_users list

I've added to /etc/aliases:

root: contact@external.domain

But problem still persist.

Have somebody faced with type of issue?

[solved]

a) It works with sudo:

sudo -u user mail -s test mail@addre.ss

b) It works with aliases (I forgot to issue newaliases command, thanks blank3)

link|improve this question

75% accept rate
1  
After editing /etc/aliases you have to run newaliases command. – blank3 Oct 23 '09 at 11:15
Just FYI: It's generally considered bad style to do "regular stuff" (read manpages, send mail) as root. You can use a regular account, and just su/sudo to root when needed. But of course sending mail as root should work anyway. – sleske Oct 23 '09 at 12:39
feedback

2 Answers

up vote 0 down vote accepted

Could you use su or sudo to send the mail as another user?

link|improve this answer
Thanks for pointing me in. It works with sudo: sudo -u user mail -s test mail@addre.ss – Deem3n Oct 23 '09 at 12:29
Great. It's safer that way also. – Josh Oct 23 '09 at 12:38
feedback

Due to security concerns Exim4 will not send mail as root by default Search your config for "fixed_never_users" and remove root from the list or su/sudo to a non-privileged user when sending mail.

link|improve this answer
Seems that list of users that it specifies is built into the binary, and cannot be changed – Deem3n Oct 23 '09 at 11:02
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.