Merge pull request #134 from gnowxilef/master

support multiple sasl_passwd entries
This commit is contained in:
Tim Smith
2018-05-23 13:28:58 -05:00
committed by GitHub
6 changed files with 126 additions and 15 deletions

View File

@@ -1,4 +1,8 @@
# Auto-generated by Chef.
# Local modifications will be overwritten.
#
<%= node['postfix']['main']['relayhost'] %> <%= @settings['smtp_sasl_user_name'] %>:<%= @settings['smtp_sasl_passwd'] %>
<% if !@settings.nil? && !@settings.empty? -%>
<% @settings.sort.map do |relayhost,value| -%>
<%= relayhost %> <%= value['username'] %>:<%= value['password'] %>
<% end -%>
<% end -%>