Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

fix: After creating the email account, set the correct directory permissions.

lotkbd817129e129
diff --git a/core/internal/service/mail_boxes/mail_boxes.go b/core/internal/service/mail_boxes/mail_boxes.go
index 6b1347e6..d09e4261 100644
--- a/core/internal/service/mail_boxes/mail_boxes.go
+++ b/core/internal/service/mail_boxes/mail_boxes.go
@@ -460,6 +460,11 @@ func ensureMaildirAndQuotaFile(ctx context.Context, m *v1.Mailbox) error {
return err
}
+ if err := public.ChownDovecot(root); err != nil {
+ g.Log().Warning(ctx, "chown userDir failed", root, err)
+
+ }
+
fp := filepath.Join(root, "maildirsize")
quotaVal := int64(0)