支持 Pgsql 的 Postfix

Cal*_*lum 0 postgresql postfix centos

我正在尝试找到一个带有后缀的替代存储库,该存储库在 Cenots 6 上支持 pgsql。

我以前使用过 CentAlt,但由于它现在似乎已经死了,我正在尝试寻找替代方案。

如果可能的话,我宁愿不从源代码编译后缀。

我已经在线查看并查看了此处的其他帖子,但找不到有效的答案。

有谁知道 postfix/w pgsql 支持附带的任何存储库或包含 postfix-pgsql 的存储库?

小智 5

Centos7 在基本存储库的 postfix 中不包含 PgSQl 支持,您必须使用 centosplus 存储库

postconf -c /etc/postfix -m | grep sql
mysql
Run Code Online (Sandbox Code Playgroud)

作为根

yum install yum-priorities
vim /etc/yum.repos.d/CentOS-Base.repo
  Add the following to sections base and update
    exclude=postfix-*
    priority=1 
  Modify the following in section centosplus
    priority=2
    enabled=1
  Save and exit

yum erase postfix
yum install postfix
postconf -c /etc/postfix -m | grep sql
  mysql
  pgsql
Run Code Online (Sandbox Code Playgroud)