Add catchAll mailbox for other domains

This commit is contained in:
Jordan Holt 2024-04-02 00:09:35 +01:00
parent 6df254ed93
commit 29b32d3d85
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -1,6 +1,18 @@
{ config, lib, pkgs, ... }:
let cfg = config.modules.services.mail;
let
cfg = config.modules.services.mail;
domains = [
"h0lt.com"
"jdholt.com"
"jordanholt.xyz"
"vimium.co"
"vimium.co.uk"
"vimium.info"
"vimium.net"
"vimium.org"
"vimium.xyz"
];
in {
options.modules.services.mail = {
enable = lib.mkOption {
@ -13,7 +25,7 @@ in {
mailserver = {
enable = true;
fqdn = "mail.vimium.com";
domains = [ "vimium.com" ];
domains = domains;
indexDir = "/var/lib/dovecot/indices";
certificateDomains = [
@ -27,6 +39,7 @@ in {
loginAccounts = {
"jordan@vimium.com" = {
hashedPasswordFile = config.users.users.jordan.hashedPasswordFile;
catchAll = domains;
};
};