| 1 |
--- a/check_email_delivery/src/check_email_delivery |
| 2 |
+++ b/check_email_delivery/src/check_email_delivery |
| 3 |
@@ -38,6 +38,7 @@ |
| 4 |
my $password = ""; |
| 5 |
my $ssl = ""; |
| 6 |
my $imap_ssl = ""; |
| 7 |
+my $imap_tls = ""; |
| 8 |
my $mailto = ""; |
| 9 |
my $mailfrom = ""; |
| 10 |
my @header = (); |
| 11 |
@@ -93,6 +94,7 @@ |
| 12 |
"imap-mailbox=s"=>\$imap_mailbox, |
| 13 |
"imap-check-interval=i"=>\$imap_interval,"imap-retries=i"=>\$imap_retries, |
| 14 |
"imapssl!"=>\$imap_ssl, |
| 15 |
+ "imaptls!"=>\$imap_tls, |
| 16 |
# Time |
| 17 |
"hires"=>\$time_hires, |
| 18 |
); |
| 19 |
@@ -130,6 +132,7 @@ |
| 20 |
|
| 21 |
if( $ssl ) { |
| 22 |
$imap_ssl = $ssl if $imap_ssl eq ""; |
| 23 |
+ $imap_tls = $ssl if $imap_tls eq ""; |
| 24 |
$smtp_tls = $ssl if $smtp_tls eq ""; |
| 25 |
} |
| 26 |
|
| 27 |
@@ -201,6 +204,7 @@ |
| 28 |
$imap_options .= "-P ".shellquote($imap_password)." " if defined $imap_password and $imap_password ne ""; |
| 29 |
$imap_options .= "--mailbox ".shellquote($imap_mailbox)." " if defined $imap_mailbox and $imap_mailbox ne ""; |
| 30 |
$imap_options .= "--ssl " if defined $imap_ssl and $imap_ssl; |
| 31 |
+$imap_options .= "--tls " if defined $imap_tls and $imap_tls; |
| 32 |
|
| 33 |
|
| 34 |
# create the report object |
| 35 |
@@ -693,6 +697,11 @@ |
| 36 |
|
| 37 |
This argument is shell-escaped; special characters or angle brackets around the address are ok. |
| 38 |
|
| 39 |
+=item --imaptls |
| 40 |
+=item --noimaptls |
| 41 |
+ |
| 42 |
+Use this to enable or disable TLS/AUTH for the IMAP plugin. |
| 43 |
+ |
| 44 |
=item --smtptls |
| 45 |
=item --nosmtptls |
| 46 |
|
| 47 |
--- a/check_email_delivery/src/check_email_delivery_epn |
| 48 |
+++ b/check_email_delivery/src/check_email_delivery_epn |
| 49 |
@@ -36,6 +36,7 @@ |
| 50 |
my $password = ""; |
| 51 |
my $ssl = ""; |
| 52 |
my $imap_ssl = ""; |
| 53 |
+my $imap_tls = ""; |
| 54 |
my $mailto = ""; |
| 55 |
my $mailfrom = ""; |
| 56 |
my @header = (); |
| 57 |
@@ -91,6 +92,7 @@ |
| 58 |
"imap-mailbox=s"=>\$imap_mailbox, |
| 59 |
"imap-check-interval=i"=>\$imap_interval,"imap-retries=i"=>\$imap_retries, |
| 60 |
"imapssl!"=>\$imap_ssl, |
| 61 |
+ "imaptls!"=>\$imap_tls, |
| 62 |
# Time |
| 63 |
"hires"=>\$time_hires, |
| 64 |
); |
| 65 |
@@ -128,6 +130,7 @@ |
| 66 |
|
| 67 |
if( $ssl ) { |
| 68 |
$imap_ssl = $ssl if $imap_ssl eq ""; |
| 69 |
+ $imap_tls = $ssl if $imap_tls eq ""; |
| 70 |
$smtp_tls = $ssl if $smtp_tls eq ""; |
| 71 |
} |
| 72 |
|
| 73 |
@@ -199,6 +202,7 @@ |
| 74 |
$imap_options .= "-P ".shellquote($imap_password)." " if defined $imap_password and $imap_password ne ""; |
| 75 |
$imap_options .= "--mailbox ".shellquote($imap_mailbox)." " if defined $imap_mailbox and $imap_mailbox ne ""; |
| 76 |
$imap_options .= "--ssl " if defined $imap_ssl and $imap_ssl; |
| 77 |
+$imap_options .= "--tls " if defined $imap_tls and $imap_tls; |
| 78 |
|
| 79 |
|
| 80 |
# create the report object |