postfix Ubuntu

Install Postfix on Ubuntu 20.04

Postfix is one of the most commonly used mail servers that are capable of sending and receiving emails while running on Linux. The best thing about this server is that it is free and open-source, which makes it all the more popular among people. Therefore, in this article, we will explain to you the method of installing Postfix on Ubuntu 20.04.

Method of Installing Postfix on Ubuntu 20.04:


For installing Postfix on Ubuntu 20.04, you will need to perform the following steps:

1. Launch the terminal in Ubuntu 20.04 and update your system so that it gets all set to install all the new packages and updates. For doing that, you need to type the following command in your terminal and then press the Enter key:

sudo apt update

This command is shown in the image below:

2. After the successful execution of the command mentioned above, type the following command in your terminal and then press the Enter key:

sudo DEBIAN_PRIORITY=low apt install postfix

Here, DEBIAN_PRIORITY is an environment variable that enables us to configure additional options along with the regular installation of Postfix. These options will appear on the terminal in the form of prompts or dialogue boxes that will allow us to choose an option from a list of given options. This command is also shown in the following image:

3. As soon as you press the Enter key for the installation process of Postfix to begin, you will be displayed with all the different types of Mail Server Configurations. Once you have read through all these types and decided which one you want to keep for your Mail Server, press the Enter key to proceed as shown in the image below:

4. Now you will be prompted to choose the type of your Mail Server Configuration. Select the Internet Site option from that list and press the Enter key as highlighted in the following image:

5. After doing that, you will be asked to select your System Mail Name or Fully Qualified Domain Name (FQDN). In this example, I wanted my Mail Name to be kbuzdar.com. Therefore, I have typed it in the relevant textbox and then pressed the Enter key to continue, as shown in the image below:

6. Now you will be asked to select your Root and Postmaster Mail Recipient. You can keep it the same as your primary username on Ubuntu 20.04. In this example, I have kept it as kbuzdar@ and then pressed the Enter key to continue as shown in the following image:

7. After doing that, you will be asked to select all the possible domains for which your mail server is capable of accepting the emails. You can add any additional domain names according to your requirements. If not, then you can go with the default ones and press the Enter key to proceed, as shown in the image below:

8. Then you will be asked whether you want to force synchronous updates on mail queue or not. Select No, which is also the default option and then press the Enter key to continue, as shown in the following image:

9. After that, you will be asked to pick the Local Networks. You can modify them according to your requirements, or you can even go with the default ones by pressing the Enter key as shown in the image below:

10. Now you will be asked to set your Mailbox Size Limit in Bytes. This is used to specify the size of messages that your mailbox is capable of accepting. Its default value is zero, which means that there is no restriction on the size of the messages. Stick to the default option and press the Enter key, as shown in the following image:

11. Then you will be asked to select the Local Address Extension Character. Stay with the default character and press the Enter key to continue, as shown in the image below:

12. Finally, you will be asked to choose the Internet Protocol that you want to use. Select All from this list and then press the Enter key to proceed, as shown in the following image:

13. Now the installation process of Postfix will take some time to complete. As soon as it completes, your terminal will look something like this:

Conclusion:

By following the method described in this article, we can easily install Postfix on Ubuntu 20.04, and after its proper configuration, we can conveniently use it for delivering and receiving emails. Surprisingly, the installation time of Postfix is also very less, which allows you to set it up very quickly.

About the author

Karim Buzdar

Karim Buzdar

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn.