Page 3 of 3

Re: how to configure nagios sendmail after installing nagios

Posted: Tue Dec 08, 2015 3:52 pm
by sinkak
i did reboot
still have the same error with old hostname

Code: Select all

ubuntu@nagios:/var/mail$ hostname
nagios.website.com

Code: Select all

echo "test nagios email" | /usr/bin/mail -a "From:[email protected]" -s "Test" [email protected]
Reporting-MTA: dns; nagios-2015
X-Postfix-Queue-ID: DCF014485B
X-Postfix-Sender: rfc822; ubuntu@nagios-2015
Arrival-Date: Tue,  8 Dec 2015 20:43:06 +0000 (UTC)

Final-Recipient: rfc822; [email protected]
Action: failed
Status: 5.5.2
Remote-MTA: dns; smtp17.msoutlookonline.net
Diagnostic-Code: smtp; 504 5.5.2 <ubuntu@nagios-2015>: Sender address rejected:
    need fully-qualified address

--DCF014485B.1449607387/nagios-2015
Content-Description: Undelivered Message
Content-Type: message/rfc822

Re: how to configure nagios sendmail after installing nagios

Posted: Tue Dec 08, 2015 4:53 pm
by hsmith

Re: how to configure nagios sendmail after installing nagios

Posted: Wed Dec 09, 2015 12:18 pm
by sinkak
this post on postfix helped
i changed the hostname in /etc/postfix/main.cf
its working i am getting email to both my critical and warning email.
Thank You for your help.

Please close this thread

Re: how to configure nagios sendmail after installing nagios

Posted: Wed Dec 09, 2015 12:31 pm
by rkennedy
I will now close this thread out!

Feel free to open a new one if you need assistance in the future.