Dovecot: Difference between revisions
→Setup auth via passwd-file: add missing double quotes |
add standard mailboxes |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 102: | Line 102: | ||
# /var/spool/mail/vmail/<DOMAIN>/<USER>/Maildir/ | # /var/spool/mail/vmail/<DOMAIN>/<USER>/Maildir/ | ||
mailLocation = "maildir:~/Maildir"; | mailLocation = "maildir:~/Maildir"; | ||
mailboxes = { | |||
# use rfc standard https://apple.stackexchange.com/a/201346 | |||
All = { auto = "create"; autoexpunge = null; specialUse = "All"; }; | |||
Archive = { auto = "create"; autoexpunge = null; specialUse = "Archive"; }; | |||
Drafts = { auto = "create"; autoexpunge = null; specialUse = "Drafts"; }; | |||
Flagged = { auto = "create"; autoexpunge = null; specialUse = "Flagged"; }; | |||
Junk = { auto = "create"; autoexpunge = "60d"; specialUse = "Junk"; }; | |||
Sent = { auto = "create"; autoexpunge = null; specialUse = "Sent"; }; | |||
Trash = { auto = "create"; autoexpunge = "60d"; specialUse = "Trash"; }; | |||
}; | |||
extraConfig = '' | extraConfig = '' | ||
| Line 176: | Line 187: | ||
You also need to set proper file permissions on the cert directory and key files. | You also need to set proper file permissions on the cert directory and key files. | ||
See [[ACME#Integration_with_service_modules]]. | See [[ACME#Integration_with_service_modules]]. | ||
= Using sieve plugins = | |||
The following is required to use Sieve plugins (<code>imap_sieve</code>, ManageSieve, etc): | |||
<syntaxhighlight lang="nix"> | |||
environment.systemPackages = with pkgs; [ | |||
dovecot_pigeonhole | |||
]; | |||
</syntaxhighlight> | |||
= mail_crypt plugin (encryption at rest) = | = mail_crypt plugin (encryption at rest) = | ||