When i try to send the text alert manually it works fine.
root@nagmonus1:(01-24 13:38): /root
# echo "test" | /bin/mail -s "testing 1 2 3" -r
[email protected] [email protected]
(Note : I have replaced my cell number to xxx for security reasons)
# ls -lh /var/mail/nagios
-rw-rw---- 1 nagios mail
49M Jan 24 13:44 /var/mail/nagios
==> /var/log/maillog <==
Jan 24 13:41:01 nagmonus1 postfix/pickup[13287]: 87ED8E3B: uid=59991 from=<root>
Jan 24 13:41:01 nagmonus1 postfix/cleanup[26980]: 87ED8E3B: message-id=<
[email protected]>
Jan 24 13:41:01 nagmonus1 postfix/qmgr[3701]: 87ED8E3B: from=<
[email protected]>, size=685, nrcpt=1 (queue active)
Jan 24 13:41:01 nagmonus1 postfix/local[7913]: 87ED8E3B: to=<
[email protected]>, orig_to=<nagios>, relay=local, delay=0.1, delays=0.06/0/0/0.03, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/nagios for user nagios. error writing message: File too large)
Jan 24 13:41:01 nagmonus1 postfix/cleanup[26980]: 99DF1E83: message-id=<
[email protected]>
Jan 24 13:41:01 nagmonus1 postfix/bounce[7914]: 87ED8E3B: sender non-delivery notification: 99DF1E83
Jan 24 13:41:01 nagmonus1 postfix/qmgr[3701]: 99DF1E83: from=<>, size=2612, nrcpt=1 (queue active)
Jan 24 13:41:01 nagmonus1 postfix/qmgr[3701]: 87ED8E3B: removed
Jan 24 13:41:01 nagmonus1 postfix/local[7913]: 99DF1E83: to=<
[email protected]>, relay=local, delay=0.11, delays=0.07/0/0/0.03, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Jan 24 13:41:01 nagmonus1 postfix/qmgr[3701]: 99DF1E83: removed
Jan 24 13:41:08 nagmonus1 postfix/pickup[13287]: 1FB94E3B: uid=0 from=<
[email protected]>
Jan 24 13:41:08 nagmonus1 postfix/cleanup[26980]: 1FB94E3B: message-id=<5a68d344.QAFKGrHVBdjZ9bcj%
[email protected]>
Jan 24 13:41:08 nagmonus1 postfix/qmgr[3701]: 1FB94E3B: from=<
[email protected]>, size=428, nrcpt=1 (queue active)
Jan 24 13:41:08 nagmonus1 postfix/smtp[31402]: 1FB94E3B: to=<
[email protected]>, relay=smtp.bose.com[10.101.21.126]:25, delay=0.24, delays=0.12/0/0/0.12, dsn=2.6.0, status=sent (250 2.6.0 <5a68d344.QAFKGrHVBdjZ9bcj%
[email protected]> [InternalId=84720158] Queued mail for delivery)
Jan 24 13:41:08 nagmonus1 postfix/qmgr[3701]: 1FB94E3B: removed
Jan 24 13:41:16 nagmonus1 postfix/pickup[13287]: 9ACB96F4: uid=0 from=<root>
Jan 24 13:41:16 nagmonus1 postfix/cleanup[26980]: 9ACB96F4: message-id=<
[email protected]>
Jan 24 13:41:16 nagmonus1 postfix/qmgr[3701]: 9ACB96F4: from=<
[email protected]>, size=233892, nrcpt=1 (queue active)
Jan 24 13:41:16 nagmonus1 postfix/local[7913]: 9ACB96F4: to=<
[email protected]>, orig_to=<root>, relay=local, delay=64, delays=64/0/0/0.04, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Jan 24 13:41:16 nagmonus1 postfix/cleanup[26980]: CA1F7E3B: message-id=<
[email protected]>
Jan 24 13:41:16 nagmonus1 postfix/bounce[7914]: 9ACB96F4: sender non-delivery notification: CA1F7E3B
Jan 24 13:41:16 nagmonus1 postfix/qmgr[3701]: CA1F7E3B: from=<>, size=2687, nrcpt=1 (queue active)
Jan 24 13:41:16 nagmonus1 postfix/qmgr[3701]: 9ACB96F4: removed
Jan 24 13:41:16 nagmonus1 postfix/local[7913]: CA1F7E3B: to=<
[email protected]>, relay=local, delay=0.03, delays=0.01/0/0/0.02, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Jan 24 13:41:16 nagmonus1 postfix/qmgr[3701]: CA1F7E3B: removed
Jan 24 13:41:39 nagmonus1 postfix/pickup[13287]: 2C2825DD: uid=0 from=<root>
Jan 24 13:41:39 nagmonus1 postfix/cleanup[26980]: 2C2825DD: message-id=<
[email protected]>
Jan 24 13:41:39 nagmonus1 postfix/qmgr[3701]: 2C2825DD: from=<
[email protected]>, size=21701, nrcpt=1 (queue active)
Jan 24 13:41:39 nagmonus1 postfix/local[7913]: 2C2825DD: to=<
[email protected]>, orig_to=<root>, relay=local, delay=79, delays=79/0/0/0.02, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Jan 24 13:41:39 nagmonus1 postfix/cleanup[26980]: 4FFFA6F4: message-id=<
[email protected]>
Jan 24 13:41:39 nagmonus1 postfix/bounce[7914]: 2C2825DD: sender non-delivery notification: 4FFFA6F4
Jan 24 13:41:39 nagmonus1 postfix/qmgr[3701]: 4FFFA6F4: from=<>, size=23616, nrcpt=1 (queue active)
Jan 24 13:41:39 nagmonus1 postfix/qmgr[3701]: 2C2825DD: removed
Jan 24 13:41:39 nagmonus1 postfix/local[7913]: 4FFFA6F4: to=<
[email protected]>, relay=local, delay=0.03, delays=0.01/0/0/0.02, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Jan 24 13:41:39 nagmonus1 postfix/qmgr[3701]: 4FFFA6F4: removed
Not sure if this is relevant.
# tail -f /usr/local/nagiosxi/tmp/phpmailer.log
[06-05-2017 06:51:17] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 07:01:22] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 07:23:53] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 07:57:16] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 07:57:16] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 08:05:01] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 08:09:53] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 08:09:53] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 12:22:14] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 12:22:33] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email