LoginSignup
1
0

More than 5 years have passed since last update.

[CentOS 6] postfix で pgsql 対応メモ

Posted at

概要

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
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0