add new attribute to readme, use strings

This commit is contained in:
jtimberman 2012-10-31 17:24:46 -06:00
parent bc71fa11db
commit b6b927298e
2 changed files with 3 additions and 2 deletions

View File

@ -69,6 +69,7 @@ See `attributes/default.rb` for default values.
`smtpd_milters` option in `/etc/postfix/main.cf`. `smtpd_milters` option in `/etc/postfix/main.cf`.
* `node['postfix']['non_smtpd_milters']` - corresponds to the * `node['postfix']['non_smtpd_milters']` - corresponds to the
`non_smtpd_milters` option in `/etc/postfix/main.cf`. `non_smtpd_milters` option in `/etc/postfix/main.cf`.
* `node['postfix']['inet_interfaces']` - interfaces to listen to, all or loopback-only
Recipes Recipes
======= =======

View File

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