Nagios not sending email alerts to gmail.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kiran
Posts: 1
Joined: Sat Aug 15, 2015 1:54 am
Location: BENGALURU - INDIA
Contact:

Nagios not sending email alerts to gmail.

Post by kiran »

I have enabled message sending in Nagios which is working fine.
Mailing is happening to our company domain but not to gmal accounts.
I am using mailx command in commands.cfg file for sending mails.
Postfix is not needed right? When sending test mail, I am getting the following logs which read 'Service unavailable'.
Kindly help on this.

Sep 2 17:02:03 bbnlnagios sendmail[13107]: t82BW39o013107: to=[email protected], ctladdr=kiran (1032/1036), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30249, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t82BW3F8013108 Message accepted for delivery)
Sep 2 17:02:05 bbnlnagios sm-mta[13110]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-RC4-SHA, bits=128/128
Sep 2 17:02:06 bbnlnagios sm-mta[13110]: t82BW3F8013108: to=<[email protected]>, ctladdr=<[email protected]> (1032/1036), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120495, relay=gmail-smtp-in.l.google.com. [74.125.200.26], dsn=5.0.0, stat=Service unavailable
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios not sending email alerts to gmail.

Post by hsmith »

kiran wrote:I have enabled message sending in Nagios which is working fine.
Mailing is happening to our company domain but not to gmal accounts.
I am using mailx command in commands.cfg file for sending mails.
Postfix is not needed right? When sending test mail, I am getting the following logs which read 'Service unavailable'.
Kindly help on this.

Sep 2 17:02:03 bbnlnagios sendmail[13107]: t82BW39o013107: to=[email protected], ctladdr=kiran (1032/1036), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30249, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t82BW3F8013108 Message accepted for delivery)
Sep 2 17:02:05 bbnlnagios sm-mta[13110]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-RC4-SHA, bits=128/128
Sep 2 17:02:06 bbnlnagios sm-mta[13110]: t82BW3F8013108: to=<[email protected]>, ctladdr=<[email protected]> (1032/1036), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120495, relay=gmail-smtp-in.l.google.com. [74.125.200.26], dsn=5.0.0, stat=Service unavailable

Hi Kiran,

A lot of email providers filter out sendmail email by default, as it is a really easy method to use for spam. My recommendation is that you take a look at the following links and decide what would work best for you:

This is a possibly outdated article, but the concepts still apply.

We also have a thread here where some suggestions were given by one of our very smart former employees.

I hope this helps.
Former Nagios Employee.
me.
Locked