Page 1 of 1

Return Address

Posted: Fri Feb 20, 2015 2:15 pm
by JohnFLi
I am trying to change the return address for Nagios.

When it sends alerts, it has a return address of [email protected]
In Admin/manage email settings, do have it set to be what I want.
If I click "sent a test email", it sends with the proper return address, but when it sents alerts, its wrong.

I need to fix this as I can acknowledge alerts via email

I saw the post http://support.nagios.com/forum/viewtop ... ss#p115017
but I don't have the file " vi /etc/mail/sendmail.mc"


I have tried using sendmail and smtp but no luck

Re: Return Address

Posted: Fri Feb 20, 2015 2:35 pm
by JohnFLi
hmmmmmm, I may have fix it....not sure if I did it the right way.

It appears the vmware image I downloaded was setup with postfix, not sendmail

what I did was opened /etc/postfix/main.cf

in the section named "SENDING MAIL"
I added a line that reads

Code: Select all

myorigin = myemaildomain.com
then I restarted postfix

Code: Select all

service postfix restart
Had it send a warning, and it appeared correct.

If I should have done it differently, please let me know.

Re: Return Address

Posted: Fri Feb 20, 2015 2:42 pm
by tgriep
Glad you figured it out.
Here is a link to postfix's site on how to rewrite postfix addresses.
http://www.postfix.org/ADDRESS_REWRITING_README.html

We'll close the ticket for you.