change home folder for dovecot

This commit is contained in:
Andreas Knuth 2026-02-11 17:47:44 -06:00
parent 94ec589a32
commit 67c2440f4a
1 changed files with 3 additions and 3 deletions

View File

@ -77,12 +77,12 @@ def sync():
user = email.split('@')[0]
# Path: /var/mail/domain.de/user/.dovecot.sieve
mailbox_dir = Path(VMAIL_BASE) / domain / user
mailbox_dir = Path(VMAIL_BASE) / domain / user / 'home'
# Skip if mailbox doesn't exist
if not mailbox_dir.exists():
print(f'⚠ Skipped {email} (mailbox not found)')
continue
mailbox_dir.mkdir(exist_ok=True)
os.system(f'chown docker:docker {mailbox_dir}')
sieve_path = mailbox_dir / '.dovecot.sieve'