-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from alxwr/fix-89
Fix #89 by ignoring only keys which are actually used in Pillar 'postfix:mapping'
- Loading branch information
Showing
3 changed files
with
25 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -235,3 +235,24 @@ postfix: | |
- [email protected] | ||
- [email protected] | ||
- singlealiasexample: [email protected] | ||
|
||
|
||
### | ||
# | ||
# Multiple virtual_alias_maps entries: | ||
# | ||
# You are free to define alternative mapping names | ||
# and use them as 'variables' in your Postfix config: | ||
# (Credit for the idea and the example goes to @roskens.) | ||
|
||
postfix: | ||
config: | ||
virtual_alias_maps: $virtual_alias_1_maps $virtual_alias_2_maps | ||
virtual_alias_1_maps: hash:/etc/postfix/virtual | ||
virtual_alias_2_maps: pcre:/etc/postfix/virtual.pcre | ||
mapping: | ||
virtual_alias_1_maps: | ||
root: | ||
- me | ||
virtual_alias_2_maps: | ||
- '/(\S+)_(devel|preprod|prod)@sub.example.com$/': '$(1)@$(2).sub.example.com' |
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