Dovecot: Difference between revisions
Whitequark (talk | contribs) m fix closing tag |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
authenticated IMAP. | authenticated IMAP. | ||
This article describes a basic Dovecot setup with Postfix and virtual | This article describes a basic Dovecot setup with [[Postfix]] and virtual | ||
users, i.e., e-mail users are configured separately in Dovecot passdb, | users, i.e., e-mail users are configured separately in Dovecot passdb, | ||
and are independent from system users. | and are independent from system users. | ||
Line 9: | Line 9: | ||
= SSL Certificate with ACME = | = SSL Certificate with ACME = | ||
This article assumes a working ACME configuration for certificate | This article assumes a working [[ACME]] configuration for certificate | ||
renewal. | renewal. | ||
Line 79: | Line 79: | ||
args = ${config.age.secrets.dovecot.path} | args = ${config.age.secrets.dovecot.path} | ||
} | } | ||
'' | |||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 115: | Line 116: | ||
= Connect to postfix via lmtp = | = Connect to postfix via lmtp = | ||
See [[Postfix]] for further setup on postfix side. | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
services.dovecot2 = { | services.dovecot2 = { | ||
Line 171: | Line 174: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== mail_crypt plugin (encryption at rest) | You also need to set proper file permissions on the cert directory and key files. | ||
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) = | |||
The following seems to make mail_crypt work in its per-user/per-folder mode (note that this mode is still described as 'not production quality' in the dovecot docs): | The following seems to make mail_crypt work in its per-user/per-folder mode (note that this mode is still described as 'not production quality' in the dovecot docs): | ||
Line 199: | Line 215: | ||
''; | ''; | ||
}; | }; | ||
</pre> | |||
= Troubleshooting = | = Troubleshooting = | ||
== sievec fails to compile basic sieve scripts == | == sievec fails to compile basic sieve scripts == |