Created
November 5, 2013 01:55
-
-
Save tedkulp/7312570 to your computer and use it in GitHub Desktop.
Postfix Config for forwarding email
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
# Default file for /etc/postfix/main.cf | |
# Append this to the bottom for the domains we're virtualizing | |
virtual_alias_domains = domain.com anotherdomain.com | |
virtual_alias_maps = hash:/etc/postfix/virtual |
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
# /etc/postfix/virtual | |
# You have to run postmap virtual after changing this file | |
# It'll write out /etc/postfix/virtual.db | |
test@anotherdomain.com someone@gmail.com # Forward one address to one address | |
@domain.com another@me.com # Forward whole domain to one address |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment