]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
Setting postfix_use_submission
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 21 Dec 2012 20:01:20 +0000 (18:01 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 21 Dec 2012 20:01:20 +0000 (18:01 -0200)
templates/master.cf.debian-etch.erb
templates/master.cf.debian-lenny.erb
templates/master.cf.debian-sid.erb
templates/master.cf.debian-squeeze.erb
templates/master.cf.debian-wheezy.erb

index 9e1a4d383d064536437b8dbe3e503d304c00eeb9..aaea777ab7001d1d418c116c6f87442554dcf4d8 100644 (file)
@@ -9,10 +9,11 @@
 # ==========================================================================
 <% if postfix_smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
 <% else %><%= postfix_smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
-#submission inet n       -       -       -       -       smtpd
-#  -o smtpd_enforce_tls=yes
-#  -o smtpd_sasl_auth_enable=yes
-#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
+<% if postfix_use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
+  -o smtpd_enforce_tls=yes
+  -o smtpd_sasl_auth_enable=yes
+  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
+<% end %>
 <% if postfix_use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
index 4f6984705b6a802d827b3f96b916e5f736537019..ab71f97b8fb00a8487ea87c0b7f0fd90101a40d1 100644 (file)
 # ==========================================================================
 <% if postfix_smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
 <% else %><%= postfix_smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
-#submission inet n       -       -       -       -       smtpd
-#  -o smtpd_tls_security_level=encrypt
-#  -o smtpd_sasl_auth_enable=yes
-#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
-#  -o milter_macro_daemon_name=ORIGINATING
+<% if postfix_use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
+  -o smtpd_tls_security_level=encrypt
+  -o smtpd_sasl_auth_enable=yes
+  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
+  -o milter_macro_daemon_name=ORIGINATING
+<% end %>
 <% if postfix_use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
index c361a21686b5a284d83b478178dfc7a5daa13ce9..3450369bc3155ff76b4eff610d792cf6571443f9 100644 (file)
 #smtpd     pass  -       -       -       -       -       smtpd
 #dnsblog   unix  -       -       -       -       0       dnsblog
 #tlsproxy  unix  -       -       -       -       0       tlsproxy
-#submission inet n       -       -       -       -       smtpd
-#  -o smtpd_tls_security_level=encrypt
-#  -o smtpd_sasl_auth_enable=yes
-#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
-#  -o milter_macro_daemon_name=ORIGINATING
+<% if postfix_use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
+  -o smtpd_tls_security_level=encrypt
+  -o smtpd_sasl_auth_enable=yes
+  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
+  -o milter_macro_daemon_name=ORIGINATING
+<% end %>
 <% if postfix_use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
index 992bc506fd7979315ed863b33c3136acfa3b3f80..8e417c766065d5a3a256e33f67e099ca10f8efbf 100644 (file)
 # ==========================================================================
 <% if postfix_smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
 <% else %><%= postfix_smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
-#submission inet n       -       -       -       -       smtpd
+<% if postfix_use_smtps == 'yes' %>submission inet n       -       -       -       -       smtpd
+  -o smtpd_enforce_tls=yes
+  -o smtpd_sasl_auth_enable=yes
+  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
+<% end %>
 #smtp      inet  n       -       -       -       1       postscreen
 #smtpd     pass  -       -       -       -       -       smtpd
 #dnsblog   unix  -       -       -       -       0       dnsblog
index 4e081a065f6cf5ac4dbf20f5cc2e091444a14efc..6a90f2d3648a9ca7ee8f2fa9bc993f60257f9f5f 100644 (file)
 #smtpd     pass  -       -       -       -       -       smtpd
 #dnsblog   unix  -       -       -       -       0       dnsblog
 #tlsproxy  unix  -       -       -       -       0       tlsproxy
-#submission inet n       -       -       -       -       smtpd
-#  -o smtpd_tls_security_level=encrypt
-#  -o smtpd_sasl_auth_enable=yes
-#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
-#  -o milter_macro_daemon_name=ORIGINATING
+<% if postfix_use_smtps == 'yes' %>submission inet n       -       -       -       -       smtpd
+  -o smtpd_tls_security_level=encrypt
+  -o smtpd_sasl_auth_enable=yes
+  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
+  -o milter_macro_daemon_name=ORIGINATING
+<% end %>
 <% if postfix_use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes