Postfix: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== References == |
== References == |
||
* [http://www.postfix.org/postconf.5.html Postfix Configuration Parameters]. |
* [http://www.postfix.org/postconf.5.html Postfix Configuration Parameters]. |
||
* [http://www.postfix.org/ADDRESS_REWRITING_README.html Postfix Address Rewriting |
* [http://www.postfix.org/ADDRESS_REWRITING_README.html ADDRESS_REWRITING_README — Postfix Address Rewriting] |
||
* [http://www.postfix.org/LOCAL_RECIPIENT_README.html LOCAL_RECIPIENT_README — Rejecting Unknown Local Recipients with Postfix] |
|||
== Aliases == |
== Aliases == |
Revision as of 05:47, 13 July 2016
References
- Postfix Configuration Parameters.
- ADDRESS_REWRITING_README — Postfix Address Rewriting
- LOCAL_RECIPIENT_README — Rejecting Unknown Local Recipients with Postfix
Aliases
Add static aliases in default configuration
- Edit /etc/aliases
- Then run newaliases:
newaliases
Uses regexp (dynamic) aliases
Edit file /etc/postfix/main.cf as follows [1]:
alias_maps = regexp:/etc/postfix/aliases-regexp
Then create /etc/postfix/aliases-regexp as follows:
/^tom\..*@domain.com$/ tom@other.com /^phil\..*@domain.com$/ phil@other.com
Troubleshooting
Debugging aliases
Use postmap:
postmap -q mip@prime.immie.org hash:/etc/aliases regexp:/etc/aliases-regexp
postmap -q mip hash:/etc/aliases regexp:/etc/aliases-regexp