Created
July 6, 2018 15:51
-
-
Save alexishida/b09d550eb176e1d6e71af5065400a5eb to your computer and use it in GitHub Desktop.
Configure POSTFIX to foward email
This file contains hidden or 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
| 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