diff --git a/README.md b/README.md index 86e66e9..3e81f9b 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,7 @@ See `attributes/default.rb` for default values. `smtpd_milters` option in `/etc/postfix/main.cf`. * `node['postfix']['non_smtpd_milters']` - corresponds to the `non_smtpd_milters` option in `/etc/postfix/main.cf`. +* `node['postfix']['inet_interfaces']` - interfaces to listen to, all or loopback-only Recipes ======= diff --git a/templates/default/main.cf.erb b/templates/default/main.cf.erb index d1f89f5..c939f9d 100644 --- a/templates/default/main.cf.erb +++ b/templates/default/main.cf.erb @@ -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 = <%= node[:postfix][:inet_interfaces] || 'all' %> +inet_interfaces = <%= node['postfix']['inet_interfaces'] || 'all' %> <% else -%> relayhost = <%= node['postfix']['relayhost'] %> mynetworks = <%= node['postfix']['mail_relay_networks'] %> -inet_interfaces = <%= node[:postfix][: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"