forked from daschatten/exim-formula
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): allow to manage config files under CONFDIR
* should fix #17 * restart exim service on config change Also: * feat(service): reload service instead of restarting it * fix(service): reorder watchers to match org defaults
- Loading branch information
1 parent
cde9512
commit fd6debd
Showing
6 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ exim: | |
smarthost: [] | ||
cfilemode: '644' | ||
sub_dirs: | ||
- base | ||
- main | ||
- acl | ||
- router | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,13 @@ exim: | |
aliases: | ||
root: [email protected] | ||
files: | ||
# 'base' dir files will be located under the main CONFDIR (/etc/exim4) | ||
# this allows you to write files like `/etc/exim4/exim4.conf.localmacros` | ||
# or `/etc/exim4/passwd.client` | ||
base: | ||
'passwd.client': | | ||
# <server>:<username>:<user password> | ||
*:[email protected]:abdc1243 | ||
main: | ||
'01_exim4-config_listmacrosdefs': | | ||
exim_path = /usr/sbin/exim4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,11 @@ | |
its('content') { should include 'foo.bar.baz' } | ||
end | ||
|
||
describe file('/etc/exim4/passwd.client') do | ||
# Custom config | ||
its('content') { should include '*:[email protected]:abdc1243' } | ||
end | ||
|
||
describe file('/etc/aliases') do | ||
# Custom config | ||
its('content') { should include 'root: [email protected]' } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,8 @@ exim: | |
mailname: foo.bar.baz | ||
aliases: | ||
root: [email protected] | ||
files: | ||
base: | ||
'passwd.client': | | ||
# <server>:<username>:<user password> | ||
*:[email protected]:abdc1243 |