2 Commits
0.0.2 ... 0.0.3

Author SHA1 Message Date
56e03ffffe Change version to 0.0.3 2019-11-18 15:21:13 +01:00
32682cfb8c Add option to send notifications to another host 2019-11-18 15:11:09 +01:00
4 changed files with 22 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ The following configuration options are mandatory in each quarantine section:
* **whitelist_type**
One of the whitelist types described below.
* **smtp_host**
SMTP host to inject original e-mails. This is needed if not all recipients of an e-mail are whitelisted
SMTP host used to release original e-mails from the quarantine.
* **smtp_port**
SMTP port
@@ -97,6 +97,10 @@ The following configuration options are optional in each quarantine section:
Content of a named subgroup, 'subgroup_name' will be replaced by its name.
The following configuration options are mandatory for this notification type:
* **notification_email_smtp_host**
SMTP host used to send notification e-mails.
* **notification_email_smtp_port**
SMTP port.
* **notification_email_envelope_from**
Notification e-mail envelope from-address.
* **notification_email_from**

View File

@@ -88,6 +88,18 @@ reject_reason = Message rejected
#
notification_type = email
# Option: notification_email_smtp_host
# Notes: Set the SMTP host. It will be used to send notification e-mails.
# Values: [ HOSTNAME | IP_ADDRESS ]
#
notification_email_smtp_host = 127.0.0.1
# Option: notification_email_smtp_port
# Notes: Set the SMTP port.
# Values: [ PORT ]
#
notification_email_smtp_port = 25
# Option: notification_email_envelope_from
# Notes: Set the envelope-from address used when sending notification emails.
# This option is needed by notification type 'email'.

View File

@@ -115,8 +115,8 @@ class EMailNotification(BaseNotification):
# check if mandatory options are present in config
for option in [
"smtp_host",
"smtp_port",
"notification_email_smtp_host",
"notification_email_smtp_port",
"notification_email_envelope_from",
"notification_email_from",
"notification_email_subject",
@@ -142,8 +142,8 @@ class EMailNotification(BaseNotification):
if option not in config.keys():
config[option] = defaults[option]
self.smtp_host = self.config["smtp_host"]
self.smtp_port = self.config["smtp_port"]
self.smtp_host = self.config["notification_email_smtp_host"]
self.smtp_port = self.config["notification_email_smtp_port"]
self.mailfrom = self.config["notification_email_envelope_from"]
self.from_header = self.config["notification_email_from"]
self.subject = self.config["notification_email_subject"]

View File

@@ -1 +1 @@
__version__ = "0.0.2"
__version__ = "0.0.3"