{"id":5995,"date":"2020-06-01T17:42:02","date_gmt":"2020-06-01T14:42:02","guid":{"rendered":"https:\/\/kifarunix.com\/?p=5995"},"modified":"2024-03-14T22:00:53","modified_gmt":"2024-03-14T19:00:53","slug":"configure-postfix-to-use-gmail-smtp-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/configure-postfix-to-use-gmail-smtp-on-ubuntu-20-04\/","title":{"rendered":"Configure Postfix to Use Gmail SMTP on Ubuntu 20.04"},"content":{"rendered":"\n

Welcome to our tutorial on how to configure Postfix to use Gmail SMTP on Ubuntu 20.04 to relay mails. Postfix<\/a> is a free and open-source mail transfer agent that routes and delivers electronic mail. Postfix MTA can be configured to relay mails through an external SMTP servers such as Gmail SMTP server for a reliable mail delivery.<\/p>\n\n\n\n

Configuring Postfix to Use Gmail SMTP Relay<\/a><\/h2>\n\n\n\n

Install Postfix on Ubuntu 20.04<\/a><\/h3>\n\n\n\n

You can install Postfix by installing the postfix<\/code> package itself or via the mailutils<\/code> package which installs along with it.<\/p>\n\n\n\n

apt install postfix<\/code><\/pre>\n\n\n\n

Or<\/p>\n\n\n\n

apt install mailutils<\/code><\/pre>\n\n\n\n

During installation, you will be prompted to provide some information required to configure Postfix.<\/p>\n\n\n\n

Select the Mail Server Type<\/h4>\n\n\n\n

Select the mail server type configuration that best suits your environment needs. You are provided with multiple options;<\/p>\n\n\n\n