I'm trying to set up an Email Delivery check (using the built in wizard) to check mail flow from a local SMTP server to an Office 365 mailbox.
The email is delivered ok, but I get an error when the check tries to connect to the Office 365 mailbox.
The command that runs and the error I get are :
Code: Select all
/usr/local/nagios/libexec/check_email_delivery --mailto [email protected] --mailfrom [email protected] -H 172.16.12.22 --smtp-server 172.16.12.22 --smtp-username '' --smtp-password '' --smtp-port 25 --imap-server outlook.office365.com --username 'xxxxxx' --password 'xxxxxxx' --imap-port 143 EMAIL DELIVERY CRITICAL - imap failed: IMAP RECEIVE CRITICAL - Could not connect to outlook.office365.com port 143: 1 BAD Command received in Invalid state. at /usr/local/nagios/libexec/check_imap_receive line 145. I'm running Nagios XI 5.4.10.
Any suggestions will be appreciated.
Peter.