Maddy: Difference between revisions
imported>Onny Add note on how to change Maddy passwords |
imported>Onny Updated instruction to include ensureAccounts option |
||
Line 3: | Line 3: | ||
== Installation == | == Installation == | ||
{{Warning|Following example describes the usage of an experimental module which is still being reviewed as an open PR and might not be ready for production.}} | {{Warning|Following example describes the usage of an experimental module which is still being reviewed as an [https://github.com/NixOS/nixpkgs/pull/153372 open PR] and might not be ready for production.}} | ||
The following example enables the Maddy mail server listening on mail delivery SMTP/Submission ports (<code>25, 587</code>) and IMAP/IMAPS ports (<code>143 | The following example enables the Maddy mail server listening on mail delivery SMTP/Submission ports (<code>25, 587</code>) and IMAP/IMAPS ports (<code>143, 993</code>) for mail clients to connect to. The server is configured to send and receive TLS-encrypted mails for the primary domain <code>example.org</code>. Mailboxes for the accounts <code>postmaster@example.org</code> and <code>user1@example.org</code> get created if they don't exist yet. | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
Line 21: | Line 21: | ||
tlsPort = 993; | tlsPort = 993; | ||
}; | }; | ||
ensureAccounts = [ | |||
"user1@example.org" | |||
"postmaster@example.org" | |||
]; | |||
}; | }; | ||
</nowiki>}} | </nowiki>}} |