blob: f51e54b80ad6abc565255c97b8932f82a0dd082f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{ config, pkgs, ... }:
{
imports = [
(builtins.fetchTarball {
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/v2.2.1/nixos-mailserver-v2.2.1.tar.gz";
sha256 = "03d49v8qnid9g9rha0wg2z6vic06mhp0b049s3whccn1axvs2zzx";
}
)
];
mailserver = {
enable = true;
fqdn = "euer.eloop.org";
domains = [ "euer.eloop.org" ];
loginAccounts = {
"makefu@euer.eloop.org" = {
hashedPassword = "$6$5gFFAPnI/c/EHIx$3aHj64p5SX./C.MPb.eBmyLDRdWS1yaoV0s9r3Yexw4UO9URdUkBDgqT7F0Mjgt6.gyYaJ5E50h0Yg7iHtLWI/";
aliases = [ "root@euer.eloop.org" ];
catchAll = [ "euer.eloop.org" ];
};
};
certificateScheme = 3;
# Enable IMAP and POP3
enableImap = true;
enablePop3 = false;
enableImapSsl = true;
enablePop3Ssl = false;
# Enable the ManageSieve protocol
enableManageSieve = true;
virusScanning = false;
};
services.dovecot2.extraConfig = ''
ssl_dh = </var/lib/dhparams/dovecot2.pem
'';
state = [ # https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/wikis/A-Complete-Backup-Guide
config.mailserver.mailDirectory
config.mailserver.dkimKeyDirectory
];
# workaround for DH creation
# security.dhparams = {
# enable = true;
# params = {
# dovecot = 2048;
# };
# };
# systemd.services.dovecot2.requires = [ "dhparams-gen-dovecot.service" ];
# systemd.services.dovecot2.after = [ "dhparams-gen-dovecot.service" ];
}
|