Add support for regex (PCRE) aliases.
This commit is contained in:
parent
c63f6e7b05
commit
93221e4b25
2 changed files with 28 additions and 1 deletions
|
@ -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"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue