diff --git a/main.go b/main.go index 86fd9d5..e5f702a 100644 --- a/main.go +++ b/main.go @@ -177,6 +177,7 @@ func modifyPasswordFile(email, password string) bool { out.WriteString("\n") } out.Close() + os.Rename("/root/docker/mail/config/postfix-accounts.cf", "/root/docker/mail/config/postfix-accounts.cf.old") os.Rename("/root/docker/mail/config/postfix-accounts.cf.tmp", "/root/docker/mail/config/postfix-accounts.cf") return true }