Skip to content

Instantly share code, notes, and snippets.

@alexishida
Created July 6, 2018 15:51
Show Gist options
  • Select an option

  • Save alexishida/b09d550eb176e1d6e71af5065400a5eb to your computer and use it in GitHub Desktop.

Select an option

Save alexishida/b09d550eb176e1d6e71af5065400a5eb to your computer and use it in GitHub Desktop.
Configure POSTFIX to foward email
sudo apt-get install postfix
sudo pico /etc/postfix/main.cf
# Remove $myhostname
#mydestination = $myhostname
# Change inet_protocols = all to inet_protocols = ipv4
myhostname = yourdomain.com
# Virtual Domains
virtual_alias_domains = yourdomain.com
virtual_alias_maps = hash:/etc/postfix/virtual
compatibility_level = 2
sudo pico /etc/postfix/virtual
[email protected] [email protected]
[email protected] [email protected]
sudo postmap /etc/postfix/virtual
sudo service postfix reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment