git.iko.soy/typeable/nixpkgs
on master help sign in
postfix: fix recipient_delimiter option

This reverts commit 88f4b75a00855c878624e465e1a83930aaa92858 and fixes the recipientDelimiter config option. Till then the camel case variant was used while recipient_delimiter would have been right.

commit6839ad653a1be04546f4d1bd7e2c1fa7f2b25eed authorChristoph Hrdinka <c.github@hrdinka.at> dateFri 26 Jun 2015, 14:03 (11 years ago) parentd405d03
2 files changed+11
nixos/modules/services/mail/mlmmj.nix+1 nixos/modules/services/mail/postfix.nix+10
nixos/modules/services/mail/mlmmj.nix+1
@@ -88,6 +88,7 @@ in
8888
8989 services.postfix = {
9090 enable = true;
91+ recipientDelimiter= "+";
9192 extraMasterConf = ''
9293 mlmmj unix - n n - - pipe flags=ORhu user=mlmmj argv=${pkgs.mlmmj}/bin/mlmmj-receive -F -L ${spoolDir}/$nextHop
9394 '';
nixos/modules/services/mail/postfix.nix+10
@@ -77,6 +77,8 @@ let
7777 smtpd_tls_key_file = ${cfg.sslKey}
7878
7979 smtpd_use_tls = yes
80+
81+ recipient_delimiter = ${cfg.recipientDelimiter}
8082 ''
8183 + optionalString (cfg.virtual != "") ''
8284 virtual_alias_maps = hash:/etc/postfix/virtual
@@ -289,6 +291,14 @@ in
289291 description = "SSL key to use.";
290292 };
291293
294+ recipientDelimiter = mkOption {
295+ default = "";
296+ example = "+";
297+ description = "
298+ Delimiter for address extension: so mail to user+test can be handled by ~user/.forward+test
299+ ";
300+ };
301+
292302 virtual = mkOption {
293303 default = "";
294304 description = "