Page 1 of 1
nagios smtp gmail account
Posted: Wed Oct 14, 2015 6:11 am
by igsmigs
hi guys,
can somebody help me with notification mail so that nagios send notifications on gmail account ..i running centos7 nagios 4.1.1 core with postfix..i try some guids that i find but no luck for me...notification mail is working on my server(local), but i would like to have those notifications on gmail account to...please let me know if u need any additional info
regards
igsmigs
Re: nagios smtp gmail account
Posted: Wed Oct 14, 2015 10:38 am
by hsmith
Can I get some clarification here? Gmail should be able to receive email from sendmail just fine, but generally sends it to the spam folder in my experience.
Re: nagios smtp gmail account
Posted: Wed Oct 14, 2015 10:44 am
by rhassing
Could you please check your logfiles if it possible to mail to gmail?
Normally the infor should be in /var/log/maillog
Re: nagios smtp gmail account
Posted: Wed Oct 14, 2015 12:54 pm
by hsmith
Thanks Rob

Re: nagios smtp gmail account
Posted: Tue Oct 20, 2015 3:49 am
by igsmigs
hi,
i finaly setup nagios to send notification to gmail account ... i configure postfix main.cf
relayhost = smtp.gmail.com:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
and create sasl passwd in etc/postfix .. and put there - smtp.gmail.com:587 username:pass
after that just hit postmap /etc/postfix/sasl_passwd
and finish...in gmail account turn on allow apps options
bye
Re: nagios smtp gmail account
Posted: Tue Oct 20, 2015 9:22 am
by rkennedy
Thanks for letting us know how you accomplished it! Am I good to close this thread now or do you need more assistance?
Re: nagios smtp gmail account
Posted: Tue Oct 20, 2015 12:26 pm
by igsmigs
hi,
u can close this ticket
thnx