Page 1 of 1
Where to find local mail log for SMTP
Posted: Thu Jan 28, 2016 5:03 pm
by tigerpeng
Hello,
I config'ed my mail setting to SMTP. I'd like to know where to find log of mail/notification.
Tiger
Re: Where to find local mail log for SMTP
Posted: Thu Jan 28, 2016 5:58 pm
by bwallace
--This file logs email sent through sendmail. Only applicable to core contact "notify-*-by-email" notification handlers and sendmail tests.
You could also refer to "nagios.log" - here you will see checks, notifications, external commands, and events:
Is this what you're looking for?
Re: Where to find local mail log for SMTP
Posted: Fri Jan 29, 2016 12:27 pm
by tigerpeng
I just reset password for a test user with 'Email User New Password:' checked. The email has received, but I cannot find any record on both log files (monitored with tail -f command).
BTW, Is there way config the timestamp of records in nagios.log. The default one (Unix timestamp is not readable)
Re: Where to find local mail log for SMTP
Posted: Fri Jan 29, 2016 1:25 pm
by hsmith
tigerpeng wrote:I just reset password for a test user with 'Email User New Password:' checked. The email has received, but I cannot find any record on both log files (monitored with tail -f command).
Anything useful in
/usr/local/nagiosxi/tmp/phpmailer.log?
tigerpeng wrote:BTW, Is there way config the timestamp of records in nagios.log. The default one (Unix timestamp is not readable)
There is not, it will throw a lot of things that rely on those timestamps off if they are changed.
Re: Where to find local mail log for SMTP
Posted: Fri Jan 29, 2016 2:40 pm
by tigerpeng
No record of mail sending in /usr/local/nagiosxi/tmp/phpmailer.log. There is a SMTP failure error (I used wrong email address for sending email).
It seems the place to log the mailing information. Is there any configuration to set up the log level?
Re: Where to find local mail log for SMTP
Posted: Fri Jan 29, 2016 2:44 pm
by hsmith
Not without editing the php mailer, which I believe is not open source. Did fixing the sending email address resolve anything? I believe that file only logs when attempts to send are unsuccessful, and ignore successful sends.
Re: Where to find local mail log for SMTP
Posted: Fri Jan 29, 2016 3:30 pm
by tigerpeng
It seems I need sometime to familiar the Naigos XI.
BTW, Do you know what XI stand for? 11?
Re: Where to find local mail log for SMTP
Posted: Mon Feb 01, 2016 11:03 am
by hsmith
tigerpeng wrote:It seems I need sometime to familiar the Naigos XI.
That's what we're here for
tigerpeng wrote:BTW, Do you know what XI stand for? 11?
Extended Interface.