Merge pull request #138 from palfrey/relay-restrictions-maps
Fix use_relay_restrictions_maps
This commit is contained in:
commit
65f6be0dea
@ -90,6 +90,9 @@ suites:
|
|||||||
- name: server
|
- name: server
|
||||||
run_list:
|
run_list:
|
||||||
- recipe[postfix::server]
|
- recipe[postfix::server]
|
||||||
|
attributes:
|
||||||
|
postfix:
|
||||||
|
use_relay_restrictions_maps: "yes"
|
||||||
|
|
||||||
- name: sasl_auth
|
- name: sasl_auth
|
||||||
run_list:
|
run_list:
|
||||||
|
@ -59,7 +59,7 @@ if node['postfix']['use_virtual_aliases_domains']
|
|||||||
end
|
end
|
||||||
|
|
||||||
if node['postfix']['use_relay_restrictions_maps']
|
if node['postfix']['use_relay_restrictions_maps']
|
||||||
default['postfix']['main']['smtpd_relay_restrictions'] = "hash:#{node['postfix']['relay_restrictions_db']}, reject"
|
node.default_unless['postfix']['main']['smtpd_relay_restrictions'] = "hash:#{node['postfix']['relay_restrictions_db']}, reject"
|
||||||
end
|
end
|
||||||
|
|
||||||
if node['postfix']['master']['maildrop']['active']
|
if node['postfix']['master']['maildrop']['active']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user