Page 1 of 1

Notification not received on my mailing address

Posted: Mon Jun 15, 2020 5:39 am
by ankurtyagi333
Hi Community Members,
I Deploy/Install a Nagios Core in my virtual machine and configure the nagios with Host, Services and for contact. In Nagios console, in notification part i see lots of notifications with my mailing address but notification/alert are not coming on my mailing address that i mention in contact.cfg.

There is something additional part to configure notification for receiving notification on mailing address or it should word after configuration mailing address in contact.cfg ?

Please help on this to understand default scenario for notification.

Thanks in advance...

Ankur Tyagi

Re: Notification not received on my mailing address

Posted: Mon Jun 15, 2020 10:16 am
by ankurtyagi333
I read that postfix is required to send out the notification from server to mailing address. So for that i installed and configure the postfix but still issue is same. My mail notification are not going to my mailing address that i mention in contact.cfg file.

i check maillog file using command - # tail -f /var/log/maillog and got output like below -

Jun 15 08:13:21 UPTESTPROD postfix/qmgr[70663]: 105236190C: from=<nagios@UPTESTPROD.localdomain>, size=761, nrcpt=1 (queue active)
Jun 15 08:13:21 UPTESTPROD postfix/error[70699]: 06B5D64E49: to=<ankurankur999@gmail.com>, relay=none, delay=0.11, delays=0.08/0.03/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to smtp.gmail.com[142.250.4.109]:587: Connection timed out)
Jun 15 08:13:21 UPTESTPROD postfix/error[70699]: 0F30164E47: to=<ankurtyagi.infinite@gmail.com>, relay=none, delay=0.13, delays=0.09/0.03/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to smtp.gmail.com[142.250.4.109]:587: Connection timed out)
Jun 15 08:13:21 UPTESTPROD postfix/error[70699]: 105236190C: to=<youremail@domain.com>, relay=none, delay=0.13, delays=0.09/0.04/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to smtp.gmail.com[142.250.4.109]:587: Connection timed out)


Please help on this.
What's the issue exactly ?

Re: Notification not received on my mailing address

Posted: Mon Jul 06, 2020 3:49 pm
by scottwilkerson
This isn't a problem with Nagios, but a problem with your server configuration and/or postfix configuration

It appears that smtp.gmail.com is blocking/refusing the connection from your server or doesn't have proper routing and is timing out..

In one of the line I see this

Code: Select all

from=<nagios@UPTESTPROD.localdomain>
Beside other possible issues, you should really have a valid FROM address setup or it could cause rejections as well.