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 nagios@sendemail@gmail.com instead of the sendmail@gmail.com account I have set up. Any help is greatly appreciated.
Asked
Active
Viewed 469 times
1 Answers
0
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 sendmail@gmail.com:
my_hdr From: "Name Here" <sendmail@gmail.com>
Again this holds if I understand what you're asking.

adamo
- 6,925
- 3
- 30
- 58