概要
CentOS 6 で postfixadmin の DB に postgresql を使用した際の対応メモ。
手順
デフォルトの状態は pgsql に対応していないらしい
# postconf -c /etc/postfix -m | grep sql
mysql
pgsql 対応手順
yum-priorities インストール
# yum install -y yum-priorities
レポジトリ設定
# vi /etc/yum.repos.d/CentOS-Base.repo
[base]
exclude=postfix-*
priority=1
[updates]
exclude=postfix-*
priority=1
[centosplus]
priority=2
enabled=1
centosplus から postfix インストール
# yum install sendmail
# yum erase postfix
# yum install postfix
確認
# postconf -c /etc/postfix -m | grep sql
mysql
pgsql
掃除
# yum erase sendmail