Ubuntu mail

sudo apt-get update
sudo apt-get install postfix

sudo nano /etc/postfix/main.cf

remove the alias_maps parameter and replace it with virtual_alias_maps!!

virtual_alias_maps = hash:/etc/postfix/virtual

sudo nano /etc/postfix/virtual

@example.com yourusername

sudo service postfix restart

sudo apt-get install mailutils

How To Install and Setup Postfix on Ubuntu 14.04 : https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-postfix-on-ubuntu-14-04

How To Install and Configure Postfix on Ubuntu 16.04 : https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-16-04

Setup mail server on ubuntu 14.04 ( Postfix – dovecot ) : http://www.krizna.com/ubuntu/setup-mail-server-ubuntu-14-04/

PostfixBasicSetupHowto : https://help.ubuntu.com/community/PostfixBasicSetupHowto

GNU Mailutils : http://mailutils.org/manual/html_node/Reading-Mail.html

firewall!!! sudo ufw allow Postfix

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-16-04

Mail forward:

virtual_alias_maps = hash:/etc/postfix/virtual

To catch and forward emails to any address for a given domain, use the following notation

@mydomain.com myself@gmail.com mystaff@gmail.com
http://www.binarytides.com/postfix-mail-forwarding-debian/

Configure a Postfix Relay through Gmail on Ubuntu : https://devops.profitbricks.com/tutorials/configure-a-postfix-relay-through-gmail-on-ubuntu/

Configure Postfix to use Gmail as a Mail Relay 2016: https://www.howtoforge.com/tutorial/configure-postfix-to-use-gmail-as-a-mail-relay/

Blogbook : PHP | Javascript | Laravel | Corcel | CodeIgniter | VueJs | ReactJs | WordPress