postfix: fix recipient_delimiter option
This reverts commit 88f4b75a00
and fixes the
recipientDelimiter config option. Till then the camel case variant was used
while recipient_delimiter would have been right.
This commit is contained in:
parent
d405d036c5
commit
6839ad653a
|
@ -88,6 +88,7 @@ in
|
||||||
|
|
||||||
services.postfix = {
|
services.postfix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
recipientDelimiter= "+";
|
||||||
extraMasterConf = ''
|
extraMasterConf = ''
|
||||||
mlmmj unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj}/bin/mlmmj-receive -F -L ${spoolDir}/$nextHop
|
mlmmj unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj}/bin/mlmmj-receive -F -L ${spoolDir}/$nextHop
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -77,6 +77,8 @@ let
|
||||||
smtpd_tls_key_file = ${cfg.sslKey}
|
smtpd_tls_key_file = ${cfg.sslKey}
|
||||||
|
|
||||||
smtpd_use_tls = yes
|
smtpd_use_tls = yes
|
||||||
|
|
||||||
|
recipient_delimiter = ${cfg.recipientDelimiter}
|
||||||
''
|
''
|
||||||
+ optionalString (cfg.virtual != "") ''
|
+ optionalString (cfg.virtual != "") ''
|
||||||
virtual_alias_maps = hash:/etc/postfix/virtual
|
virtual_alias_maps = hash:/etc/postfix/virtual
|
||||||
|
@ -289,6 +291,14 @@ in
|
||||||
description = "SSL key to use.";
|
description = "SSL key to use.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
recipientDelimiter = mkOption {
|
||||||
|
default = "";
|
||||||
|
example = "+";
|
||||||
|
description = "
|
||||||
|
Delimiter for address extension: so mail to user+test can be handled by ~user/.forward+test
|
||||||
|
";
|
||||||
|
};
|
||||||
|
|
||||||
virtual = mkOption {
|
virtual = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
description = "
|
description = "
|
||||||
|
|
Loading…
Reference in New Issue