Commit 00c70924 authored by Ted Trask's avatar Ted Trask

Fix bug when postmaster is not set

parent 17b82b3f
......@@ -460,7 +460,11 @@ function updateconfig(self, conf)
for line in string.gmatch(file, "([^\n]*\n?)") do
if not foundpostmaster and string.match(line, "^%s*set%s+postmaster%s") then
foundpostmaster = true
line = "set postmaster "..conf.value.postmaster.value.."\n"
if conf.value.postmaster.value ~= "" then
line = "set postmaster "..conf.value.postmaster.value.."\n"
line = nil
elseif not foundbounceerrors and string.match(line, "^%s*set%s+no%s+bouncemail%s") then
foundbounceerrors = true
if conf.value.bounceerrors.value then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment