about summary refs log tree commit diff
path: root/nixos/modules/services/mail
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/mail')
-rw-r--r--nixos/modules/services/mail/postfix.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/services/mail/postfix.nix b/nixos/modules/services/mail/postfix.nix
index c97aad774196..cdde41446224 100644
--- a/nixos/modules/services/mail/postfix.nix
+++ b/nixos/modules/services/mail/postfix.nix
@@ -210,10 +210,15 @@ in
 
       submissionOptions = mkOption {
         type = types.attrs;
-        default = {};
+        default = { "smtpd_tls_security_level" = "encrypt";
+                    "smtpd_sasl_auth_enable" = "yes";
+                    "smtpd_client_restrictions" = "permit_sasl_authenticated,reject";
+                    "milter_macro_daemon_name" = "ORIGINATING";
+                  };
         description = "Options for the submission config in master.cf";
         example = { "smtpd_tls_security_level" = "encrypt";
                     "smtpd_sasl_auth_enable" = "yes";
+                    "smtpd_sasl_type" = "dovecot";
                     "smtpd_client_restrictions" = "permit_sasl_authenticated,reject";
                     "milter_macro_daemon_name" = "ORIGINATING";
                   };