]> granicus.if.org Git - icinga2/commitdiff
Add (s)smtp_mail_from option to smtp and ssmtp commands.
authorGerd von Egidy <gerd@egidy.de>
Sun, 15 Jun 2014 19:55:06 +0000 (21:55 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 16 Jun 2014 06:49:52 +0000 (08:49 +0200)
Refs #6487

doc/6-configuring-icinga-2.md
itl/command-plugins.conf

index 5dfdb0dfd53322bc03e9e80d9e941e0eaf988cf8..bc7bf0d6fdadbf6ee1e2d39f13ccc07e234bfc2d 100644 (file)
@@ -1881,6 +1881,7 @@ Custom Attributes:
 Name                 | Description
 ---------------------|--------------
 smtp_address         | **Optional.** The host's address. Defaults to "$address$".
+smtp_mail_from       | **Optional.** Test a MAIL FROM command with the given email address.
 
 #### <a id="plugin-check-command-ssmtp"></a> ssmtp
 
@@ -1892,6 +1893,7 @@ Name            | Description
 ----------------|--------------
 ssmtp_address   | **Required.** The host's address. Defaults to "$address$".
 ssmtp_port      | **Optional.** The port that should be checked. Defaults to 465.
+ssmtp_mail_from | **Optional.** Test a MAIL FROM command with the given email address.
 
 #### <a id="plugin-check-command-imap"></a> imap
 
index 0aca02e24255005ed851ca1e3c331bf6695de334..777ab0b8552c9a963f7edcb940506f9657df533f 100644 (file)
@@ -152,6 +152,7 @@ object CheckCommand "smtp" {
 
        arguments = {
                "-H" = "$smtp_address$"
+               "-f" = "$smtp_mail_from$"
        }
 
        vars.smtp_address = "$address$"
@@ -165,6 +166,7 @@ object CheckCommand "ssmtp" {
        arguments = {
                "-H" = "$ssmtp_address$"
                "-p" = "$ssmtp_port$"
+               "-f" = "$ssmtp_mail_from$"
        }
 
        vars.ssmtp_address = "$address$"