Merge pull request #13 from clkao-cookbooks/COOK-1662

configurable inet_interfaces. COOK-1662
This commit is contained in:
Joshua Timberman
2012-10-31 16:22:24 -07:00
2 changed files with 7 additions and 2 deletions

View File

@@ -31,11 +31,11 @@ mydestination = <%= node['postfix']['myhostname'] %>, <%= node['hostname'] %>, l
<% if node['postfix']['mail_type'] == "master" -%>
relayhost =
mynetworks = <%= node['postfix']['mail_relay_networks'] %>
inet_interfaces = all
inet_interfaces = <%= node[:postfix][:inet_interfaces] || 'all' %>
<% else -%>
relayhost = <%= node['postfix']['relayhost'] %>
mynetworks = <%= node['postfix']['mail_relay_networks'] %>
inet_interfaces = loopback-only
inet_interfaces = <%= node[:postfix][:inet_interfaces] || 'loopback-only' %>
<% end -%>
<% if node['postfix']['use_procmail'] -%>
mailbox_command = /usr/bin/procmail -a "$EXTENSION"