-
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.
Explain multiple entries in virtual_alias_maps via pillar.example
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 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' |