summaryrefslogtreecommitdiff
path: root/templates/master.cf.debian-8.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/master.cf.debian-8.erb')
-rw-r--r--templates/master.cf.debian-8.erb9
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/master.cf.debian-8.erb b/templates/master.cf.debian-8.erb
index 0c5c30c..c555675 100644
--- a/templates/master.cf.debian-8.erb
+++ b/templates/master.cf.debian-8.erb
@@ -7,9 +7,12 @@
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
-# ==========================================================================
-<% if @smtp_listen == 'all' %>smtp inet n - - - - smtpd
-<% else %><%= @smtp_listen %>:smtp inet n - - - - smtpd<% end %>
+ # ==========================================================================
+<% if @use_postscreen == 'yes' and @smtp_listen == 'all' %>smtpd pass - - n - - smtpd
+smtp inet n - n - 1 postscreen
+tlsproxy unix - - n - 0 tlsproxy
+<% elsif @use_postscreen == 'no' and @smtp_listen == 'all' %>smtp inet n - - - - smtpd
+<% else %><%= @smtp_listen %>:smtp inet n - - - - smtpd<% end %>
#smtp inet n - - - 1 postscreen
#smtpd pass - - - - - smtpd
#dnsblog unix - - - - 0 dnsblog