Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I can send emails as root and when I go into mutt as root it connects to gmail's smtp servers but if I am a normal user (in this case Nagios) it does not connect to gmail's smtp server and will try to send it as instead of the account I have set up. Any help is greatly appreciated.

share|improve this question
Tried running mutt as nagios with sudo and then it did It only puts the user in the front with user accounts not with root account and only when I use root outside of sudo. –  Brad Nov 11 '10 at 20:14

1 Answer 1

Your description of the problem is highly vague, so I can only estimate that it is something that can be solved by properly setting up ~nagios/.muttrc so that the sender's email address is

my_hdr From: "Name Here" <>

Again this holds if I understand what you're asking.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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