Skip to content
Browse files

postfix - allow smtp/smtps/submissions in template

  • Loading branch information...
1 parent 96bde40 commit a20d988c86db4143a580ff69827bb8e415bb48a5 @cjeanneret cjeanneret committed with Jan 14, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 templates/master.cf.debian.erb
View
10 templates/master.cf.debian.erb
@@ -7,11 +7,19 @@
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
-<% if postfix_smtp_listen == 'all' -%>
+<% if has_variable?('postfix_master_smtp') -%>
+<%= postfix_master_smtp %>
+<% elsif postfix_smtp_listen == 'all' -%>
smtp inet n - - - - smtpd
<% else -%>
<%= postfix_smtp_listen %>:smtp inet n - - - - smtpd
<% end -%>
+<% if has_variable?('postfix_master_submission') -%>
+<%= postfix_master_submission %>
+<% end -%>
+<% if has_variable?('postfix_master_smtps') -%>
+<%= postfix_master_smtps %>
+<% end -%>
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes

0 comments on commit a20d988

Please sign in to comment.
Something went wrong with that request. Please try again.