-2

在 CentOS 6.2 机器上,我有两个 Postfix 实例,称为 postfix 和 postfix-bounce,通过Postfix 网站上的多实例设置文档进行设置。当我通过 init.d 脚本(服务后缀启动)手动启动它们时,它们工作正常。

但是当我重新启动服务器时,无论我做什么,或者设置服务启动,或者在 /etc/rc.local 中放置“postfix start”,它都不会成功启动第二个实例:

Apr  6 22:09:19 server postfix/postfix-script[1246]: starting the Postfix mail system
Apr  6 22:09:19 server postfix/master[1247]: daemon started -- version 2.6.6, configuration /etc/postfix
Apr  6 22:09:20 server postfix-bounce/postfix-script[1256]: fatal: the Postfix mail system is already running

/etc/postfix/main.cf 中的多实例配置:

multi_instance_wrapper = ${command_directory}/postmulti -p --
multi_instance_enable = yes
multi_instance_directories = /etc/postfix-bounce
multi_instance_group = mta

/etc/postfix-bounce/main.cf 中的多实例配置:

multi_instance_group = mta
multi_instance_name = postfix-bounce
multi_instance_enable = yes
multi_instance_wrapper = ${command_directory}/postmulti -p --

我究竟做错了什么?

4

1 回答 1

3

您可以通过禁用 SELinux 来实现此功能:

setenforce 0

Note that disabling SELinux removes important security protection from your system. You are better off using the tracing tools to amend your policy, or seeing if there are any SELinux booleans you can set to loosen things without turning it off completely.

于 2012-07-20T20:55:02.593 回答