smtp, aws, amazon linux 2,

Install Postfix on Amazon Linux 2

May 03, 2022 · 1 min read · Post a comment

Besides Exim, Postfix is another useful and free mail transfer agent that is under IBM public license. The installation is easy and simple so let’s see how to install Postfix on Amazon Linux 2.


  • Amazon Linux 2
  • sudo privileges

Install Postfix on Amazon Linux 2

Step 1. Update the Amazon Linux 2 yum packages.

sudo yum update

Step 2. Enable the EPEL repo.

amazon-linux-extras install epel

Step 3. Install Postfix.

sudo yum install postfix

Step 4. Verify installation.

postconf -d | grep mail_version


mail_version = 2.10.1
milter_macro_v = $mail_name $mail_version


Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.