mail migration: on-metal fixes

This commit is contained in:
quitte 2023-09-17 16:00:19 +02:00
parent e26b2c1ebe
commit a830d97bf9
2 changed files with 9 additions and 1 deletions

View file

@ -52,7 +52,7 @@
./modules/course-management.nix ./modules/course-management.nix
./modules/gitea.nix ./modules/gitea.nix
{ {
fsr.domain = "staging.ifsr.de"; fsr.domain = "ifsr.de";
sops.defaultSopsFile = ./secrets/quitte.yaml; sops.defaultSopsFile = ./secrets/quitte.yaml;
} }
]; ];

View file

@ -32,6 +32,7 @@ in
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
25 # insecure SMTP 25 # insecure SMTP
143
465 465
587 # SMTP 587 # SMTP
993 # IMAP 993 # IMAP
@ -129,6 +130,7 @@ in
mailbox_transport = "lmtp:unix:/run/dovecot2/dovecot-lmtp"; mailbox_transport = "lmtp:unix:/run/dovecot2/dovecot-lmtp";
transport_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" ]; transport_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" ];
virtual_alias_maps = [ "hash:/var/lib/mailman/data/postfix_vmap" ];
local_recipient_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" "ldap:${config.sops.secrets."postfix_ldap_aliases".path}" "$alias_maps" ]; local_recipient_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" "ldap:${config.sops.secrets."postfix_ldap_aliases".path}" "$alias_maps" ];
}; };
}; };
@ -197,6 +199,12 @@ in
} }
service_count = 1 service_count = 1
} }
namespace inbox {
separator = /
inbox = yes
}
service lmtp { service lmtp {
unix_listener dovecot-lmtp { unix_listener dovecot-lmtp {
group = postfix group = postfix