updated rspamd config
This commit is contained in:
@@ -103,8 +103,18 @@ class Postfix(base.Installer):
|
||||
utils.exec_cmd("postalias {}".format(aliases_file))
|
||||
|
||||
# Postwhite
|
||||
install("postwhite", self.config, self.upgrade, self.archive_path)
|
||||
condition = (
|
||||
not self.config.getboolean("rspamd", "enabled") and
|
||||
self.config.getboolean("postwhite", "enabled")
|
||||
)
|
||||
if condition:
|
||||
install("postwhite", self.config, self.upgrade, self.archive_path)
|
||||
|
||||
def backup(self, path):
|
||||
"""Launch postwhite backup."""
|
||||
backup("postwhite", self.config, path)
|
||||
condition = (
|
||||
not self.config.getboolean("rspamd", "enabled") and
|
||||
self.config.getboolean("postwhite", "enabled")
|
||||
)
|
||||
if condition:
|
||||
backup("postwhite", self.config, path)
|
||||
|
||||
Reference in New Issue
Block a user