Dovecot: Difference between revisions

Tie-ling (talk | contribs)
fix formatting
m fix closing tag
 
(5 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.
See [[Postfix]] for further setup on postfix side.


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 171: Line 172:
     sslCACert = "${sslCertDir}/chain.pem";
     sslCACert = "${sslCertDir}/chain.pem";
   };
   };
</syntaxhighlight>
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>
</syntaxhighlight>