Use SMTP Email Service From Google
If you are in need of email services and don't have your own mail server, one of the options you can use as a G Suite customer is Google's SMTP mail service. The following instructions use Postfix to be the localhost mail delivery daemon: 1. Install Postfix sudo apt install postfix 2. Configure Gmail Authentication The best option is to enable Two-Factor Authentication (2FA) on your G Suite account so that you can create App Passwords. These passwords are used in place of your regular G Suite password when configuring Postfix as a relay mail server. Once you have enabled 2FA for your G Suite account, find the latest instructions from Google's help section on creating App Passwords on your account. 3. Add G Suite User and Password to Postfix Usernames and passwords are stored in the /etc/postfix/sasl/sasl_passwd file: Open or create /etc/postfix/sasl/sasl_passwd and add the SMTP host, username, and password accordingly for G Suite: [smtp.gmail.com]:587 user...