CentOS7/AmazonLinux2にPostfix3系をインストールするときの手順です。
どちらのOSも同じ手順です。
デフォルトでは2系がインストールされています。
[root@amzn2 ~]# yum info postfix
Loaded plugins: dkms-build-requires, langpacks, priorities, update-motd
Installed Packages
Name : postfix
Arch : x86_64
Epoch : 2
Version : 2.10.1
Release : 6.amzn2.0.3
Size : 12 M
Repo : installed
Summary : Postfix Mail Transport Agent
URL : http://www.postfix.org
License : IBM and GPLv2+
Description : Postfix is a Mail Transport Agent (MTA), supporting LDAP, SMTP AUTH
: (SASL), TLS
既存のpostfixをアンインストール
[root@amzn2 ~]# systemctl stop postfix.service
[root@amzn2 ~]# yum remove postfix
GhettoForgeリポジトリの追加
[root@amzn2 ~]# yum install http://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm
GhettoForgeリポジトリの無効化
/etc/yum.repos.d/gf.repo
enabled=1
↓
enabled=0
インストールされるバージョンを確認
[root@amzn2 ~]# yum --enablerepo=gf-plus info postfix3
Loaded plugins: dkms-build-requires, langpacks, priorities, update-motd
gf-plus | 2.9 kB 00:00:00
gf-plus/x86_64/primary_db | 104 kB 00:00:01
65 packages excluded due to repository priority protections
Available Packages
Name : postfix3
Arch : x86_64
Epoch : 2
Version : 3.5.8
Release : 1.gf.el7
Size : 3.1 M
Repo : gf-plus/x86_64
Summary : Postfix Mail Transport Agent
URL : http://www.postfix.org
License : IBM
Description : Postfix is a Mail Transport Agent (MTA), supporting LDAP, SMTP AUTH
: (SASL), TLS
インストール
[root@amzn2 ~]# yum --enablerepo=gf-plus install postfix3
[root@amzn2 ~]# postconf | grep mail_version
mail_version = 3.5.8