Commit a4dc1017 authored by Marc Fournier's avatar Marc Fournier
Browse files

postfix: fixed erb template to avoid breakage when postfix_use_* variables aren't defined.

parent faae1c71
......@@ -7,8 +7,11 @@
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
<% if postfix_smtp_listen == 'all' %>smtp inet n - - - - smtpd
<% else %><%= postfix_smtp_listen %>:smtp inet n - - - - smtpd<% end %>
<% 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
......@@ -75,7 +78,7 @@ scalemail-backend unix - n n - 2 pipe
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
<% if postfix_use_amavisd == 'yes' %>
<% if has_variable?("postfix_use_amavisd") and postfix_use_amavisd == 'yes' %>
amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
......@@ -93,18 +96,18 @@ amavis unix - - - - 2 smtp
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1
<% end %>
<% if postfix_use_dovecot_lda == 'yes' %>
<% end -%>
<% if has_variable?("postfix_use_dovecot_lda") and postfix_use_dovecot_lda == 'yes' %>
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
<% end %>
<% if postfix_use_schleuder == 'yes' %>
<% end -%>
<% if has_variable?("postfix_use_schleuder") and postfix_use_schleuder == 'yes' %>
schleuder unix - n n - - pipe
flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
<% end %>
<% if postfix_use_sympa == 'yes' %>
<% end -%>
<% if has_variable?("postfix_use_sympa") and postfix_use_sympa == 'yes' %>
sympa unix - n n - - pipe
flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
sympabounce unix - n n - - pipe
flags=R user=sympa argv=/usr/lib/sympa/bin/bouncequeue ${user}
<% end %>
<% end -%>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment