Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add new attribute to readme, use strings

  • Loading branch information...
commit b6b927298ee1f6974b62312a16199875bc20c4b4 1 parent bc71fa1
@jtimberman jtimberman authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  README.md
  2. +2 −2 templates/default/main.cf.erb
View
1  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
=======
View
4 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"
Please sign in to comment.
Something went wrong with that request. Please try again.