Jun 272016
 

SMTPUTF8 is one of extended/enhanced SMTP feature. The protocol format was defined in RFC 6531.Latest postfix-3.1, support for SMTPUTF8 feature (since version 2.12) and this is how to install/compile it on CentOS 7.

Install libicu-devel, if it’s not install yet.

# yum -y install libicu-devel

Download postfix-3.1 rpm source

# wget http://repos.oostergo.net/7/SRPMS/postfix-3.1.1-1.el7.centos.src.rpm

Rebuild the source

# rpmbuild --rebuild postfix-3.1.1-1.el7.centos.src.rpm

Upgrade existing postfix

# cd rpmbuild/RPMS/x86_64/
# rpm -Uvh postfix-3.1.1-1.el7.centos.x86_64.rpm postfix-perl-scripts-3.1.1-1.el7.centos.x86_64.rpm

Test it

# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 web-server.localdomain ESMTP Postfix
ehlo localhost
250-web-server.localdomain
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 SMTPUTF8
Jun 152016
 

Add some useful external repositories to install useful third party software packages.

  • install a plugin to add priorities to each installed repositories.
# yum -y install yum-plugin-priorities

set priority=1 to official repository

# sed -i -e "s/\]$/\]\npriority=1/g" /etc/yum.repos.d/CentOS-Base.repo
  • Add EPEL Repository which is provided from Fedora project.
# yum -y install epel-release

set priority=5

# sed -i -e "s/\]$/\]\npriority=5/g" /etc/yum.repos.d/epel.repo

change to enabled=0 and use it only when needed

# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo

if enabled=0, input a command to use the repository

# yum --enablerepo=epel install [Package]
  • Add RPMforge Repository which provides many useful packages.
# yum -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

Download and install DAG’s GPG key for your system.

# wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
# rpm --import RPM-GPG-KEY.dag.txt

set priority=10

# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/rpmforge.repo

change to enabled=0 and use it only when needed

# sed -i -e "s/enabled = 1/enabled = 0/g" /etc/yum.repos.d/rpmforge.repo

if enabled=0, input a command to use the repository

# yum --enablerepo=rpmforge install [Package]