Hi,
OS Version: Windows server 2008 R2 Enterprise SP1
I have tested the command which you have provided is giving same error, also i have tested the same thing with the required oppitions its working and i have received the email as well for the same. PFB info and attachement
But imap receive part is not working am getting below error message
Output:
[root@xxxxxxx libexec]# ./check_smtp_send --hostname xx.xxx.xxx.xxx --tls --username xxxxxxx --password xxxxxxx --port 25 --mailto xxxxxxx --mailfrom xxxxxxx -vvv
SMTP SEND CRITICAL - Server did not return AUTH in capabilities at ./check_smtp_send line 153
[root@xxxxxxx libexec]# ./check_smtp_send
Usage: ./check_smtp_send [-H host [-p port]] --mailto
[email protected] [--mailto
[email protected] ...] --mailfrom
[email protected] --body 'some text' [-w <seconds>] [-c <seconds>]
[root@xxxxxxx libexec]# ./check_smtp_send -H xx.xxx.xxx.xxx -p 25 --mailto xxxxxxx --mailfrom xxxxxxx --body 'Test Mail'
SMTP SEND OK - 1 seconds | elapsed=1s;15;30
You have mail in /var/spool/mail/root
[root@xxxxxxx libexec]# ./check_imap
check_imap: No arguments found
Usage:
check_imap -H host -p port [-w <warning time>] [-c <critical time>] [-s <send string>]
[-e <expect string>] [-q <quit string>][-m <maximum bytes>] [-d <delay>]
[-t <timeout seconds>] [-r <refuse state>] [-M <mismatch state>] [-v] [-4|-6] [-j]
[-D <warn days cert expire>[,<crit days cert expire>]] [-S <use SSL>] [-E]
[-N <server name indication>]
[root@xxxxxxx libexec]# ./check_imap_receive -H xx.xxx.xxx.xxx -U xxxxxxx -P xxxxxxx --download --download-max 50 -s SUBJECT -s 'test message'
Missing perl modules: Email::Simple
You do not have the required permissions to view the files attached to this post.