Alert mailing is configured from a gmail id to avoid spam catchup. Nagios alert mailing is working fine while trying manually using 'mail' command. Which clearly means, nagios is capable of sending mails to company mail as well as outer domains now. But it is not sending any mails at all. At the same time, I can see it is trying to initiate mail alerts while any alerts are detected also...!
Which is clear from 'nagios.log'
 SERVICE NOTIFICATION: nagiosadmin;bbnlbwmon;HTTPS Response Time;CRITICAL;notify-service-by-email;Connection refused SERVICE NOTIFICATION: nagiosadmin;arkr-dc-sw1;Port 6 connected to transmedia with access vlan 103;CRITICAL;notify-service-by-email;SNMP CRITICAL - down(2)
But still, an error is thrown by mail logs which is preventing Nagios from sending alert mails. Which reads ' procmail -a "$EXTENSION"'
Please check 'mail.log'
Sep 3 15:46:01 nagios postfix/local: 66D69360533:to=, relay=local, delay=71029, delays=71029/0 /0/0.04, dsn=2.0.0, status=sent (delivered to command: procmail -a $EXTENSION")
Sep 3 15:46:03 nagios postfix/local: 6924A360548:to=, relay=local, delay=77269, delays=77261/0/0/8.1, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
What could possibly be "status=sent (delivered to command: procmail -a "$EXTENSION")" error..?
Another unusual thing is, while sending E-Mails manually, it is not getting written in the /var/log/mail.log.