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
Return Address
Return Address
Everybody is somebody else’s weirdo
Re: Return Address
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
then I restarted postfix
Had it send a warning, and it appeared correct.
If I should have done it differently, please let me know.
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.comCode: Select all
service postfix restartIf I should have done it differently, please let me know.
Everybody is somebody else’s weirdo
Re: Return Address
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!