I ran into the issue described in https://github.com/sous-chefs/postfix/issues/148 and couldn't figure out a way to work around it without forking it.
11 lines
358 B
Plaintext
11 lines
358 B
Plaintext
#
|
|
# Auto-generated by Chef.
|
|
# Local modifications will be overwritten.
|
|
#
|
|
# See man 5 aliases for format
|
|
postmaster: root
|
|
|
|
<% node['postfix']['aliases'].each do |name, value| %>
|
|
<%= name.match?(/[\s#:@]/) ? "\"#{name}\"" : name %>: <%= [value].flatten.map{|x| x.include?("|") ? "\"#{x}\"" : x}.join(',') %>
|
|
<% end unless node['postfix']['aliases'].nil? %>
|