Skip to content

Instantly share code, notes, and snippets.

@tedkulp
Created November 5, 2013 01:55
Show Gist options
  • Save tedkulp/7312570 to your computer and use it in GitHub Desktop.
Save tedkulp/7312570 to your computer and use it in GitHub Desktop.
Postfix Config for forwarding email
# 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
# /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