Skip to content

Commit

Permalink
feat(config): allow to specify dc_mailname_in_oh
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Bértoli committed Apr 27, 2023
1 parent 7d9b77d commit be4aee6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exim/files/default/update-exim4.conf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ dc_minimaldns='{{ exim.minimaldns | lower }}'
dc_readhost='{{ exim.readhost }}'
dc_smarthost='{{ join_if_list(exim.smarthost) }}'
CFILEMODE='{{ exim.cfilemode }}'
{%- if exim.dc_mailname_in_oh %}
dc_mailname_in_oh='{{ exim.dc_mailname_in_oh | lower }}'
{% endif %}
1 change: 1 addition & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exim:
relay_domains: ''
relay_nets: ''
smarthost: ''
dc_mailname_in_oh: 'true'
mailname: foo.bar.baz
aliases:
root: [email protected]
Expand Down
1 change: 1 addition & 0 deletions test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
its('content') { should include "dc_local_interfaces='127.0.0.1'" }
its('content') { should include "dc_hide_mailname='false'" }
its('content') { should include "dc_use_split_config='false'" }
its('content') { should include "dc_mailname_in_oh='true'" }
end

describe file('/etc/mailname') do
Expand Down
1 change: 1 addition & 0 deletions test/salt/pillar/exim.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exim:
configtype: satellite
hide_mailname: 'false'
use_split_config: false
dc_mailname_in_oh: 'true'
other_hostnames:
- foo.bar.baz
- bar.baz.foo
Expand Down

0 comments on commit be4aee6

Please sign in to comment.