AmazonLinuxにAtrpmsのEximをインストールする

yum install policycoreutils openldap-devel pam-devel pcre-devel sqlite-devel cyrus-sasl-devel tcp_wrappers-devel mysql-devel postgresql-devel libXaw-devel libXmu-devel libXext-devel libX11-devel libSM-devel libICE-devel libXpm-devel libXt-devel perl-ExtUtils-Embed
yum install --enablerepo=atrpms-stable libspf2-devel libsrs_alt-devel libdomainkeys-devel libgsasl-devel 

rpmbuild -ba /usr/src/rpm/SPECS/exim.spec --without libdb --without systemd

rpm -ivh /usr/src/rpm/RPMS/x86_64/exim-4.80.1-49.amzn1.x86_64.rpm
rpm -ivh /usr/src/rpm/RPMS/x86_64/exim-mysql-4.80.1-49.amzn1.x86_64.rpm
rpm -ivh /usr/src/rpm/RPMS/x86_64/exim-greylist-4.80.1-49.amzn1.x86_64.rpm 

※2014年11月 AmazonLinuxのPostgreSQLが9が標準になったため、少し改定

rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms
vim /etc/yum.repos.d/atrpms.repo
----
[atrpms-stable]
name=ATrpms RHEL6 stable
baseurl=http://dl.atrpms.net/el6-$basearch/atrpms/stable/
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
enabled=0
priority=1
----

yum install gcc-c++ rpm-build policycoreutils openldap-devel pam-devel pcre-devel sqlite-devel cyrus-sasl-devel tcp_wrappers-devel mysql-devel postgresql8-devel libXaw-devel libXmu-devel libXext-devel libX11-devel libSM-devel libICE-devel libXpm-devel libXt-devel perl-ExtUtils-Embed
yum install --enablerepo=atrpms-stable libspf2-devel libsrs_alt-devel libdomainkeys-devel libgsasl-devel 

cd /usr/src/srpm/
wget http://dl.atrpms.net/src/el6-x86_64/atrpms/stable/exim-4.80.1-49.src.rpm
rpmbuild --rebuild exim-4.80.1-49.src.rpm  --without libdb --without systemd

rpm -ivh ~/rpmbuild/RPMS/x86_64/exim-4.80.1-49.amzn1.x86_64.rpm
rpm -ivh ~/rpmbuild/RPMS/x86_64/exim-mysql-4.80.1-49.amzn1.x86_64.rpm
rpm -ivh ~/rpmbuild/RPMS/x86_64/exim-greylist-4.80.1-49.amzn1.x86_64.rpm