diff --git a/jylibs/serverconfig.py b/jylibs/serverconfig.py index 1a2054f..332d8d7 100644 --- a/jylibs/serverconfig.py +++ b/jylibs/serverconfig.py @@ -137,12 +137,14 @@ def load(self, hostname): if (self["zimbraMilterServerEnabled"] == "TRUE"): milter = "inet:%s:%s" % (self["zimbraMilterBindAddress"],self["zimbraMilterBindPort"]) else: - self["zimbraMtaSmtpdMilters"] = "" + milter = None if self["zimbraMtaSmtpdMilters"] is not None and milter is not None: self["zimbraMtaSmtpdMilters"] = "%s, %s" % (self["zimbraMtaSmtpdMilters"], milter) elif self["zimbraMtaSmtpdMilters"] is None and milter is not None: self["zimbraMtaSmtpdMilters"] = milter + else: + self["zimbraMtaSmtpdMilters"] if self["zimbraMtaHeaderChecks"] is not None: v = self["zimbraMtaHeaderChecks"]