Add support for regex (PCRE) aliases.

This commit is contained in:
Jean-Baptiste Giraudeau 2023-07-13 18:49:31 +02:00
parent c63f6e7b05
commit 93221e4b25
No known key found for this signature in database
GPG key ID: 7CEF8C9CC2D9933B
2 changed files with 28 additions and 1 deletions

View file

@ -111,6 +111,15 @@ in
'';
};
aliasesRegexp = mkOption {
type = with types; listOf types.str;
example = [''/^tom\..*@domain\.com$/''];
default = [];
description = ''
Same as {option}`mailserver.aliases` but using PCRE (Perl compatible regex).
'';
};
catchAll = mkOption {
type = with types; listOf (enum cfg.domains);
example = ["example.com" "example2.com"];