小编MG5*_*114的帖子

POSTFIX main.cf 权限被拒绝

我正在尝试为 smtp 中继设置后缀服务器。Centos 5.5

我已经关注了http://mhawthorne.net/posts/postfix-configuring-gmail-as-relay.html,但是在尝试重新启动或重新加载 postfix 时出现 FAILED 错误。

当我做:

cat maillog
Run Code Online (Sandbox Code Playgroud)

我得到:

fatal: open /etc/postfix/main.cf: Permission denied
Run Code Online (Sandbox Code Playgroud)

这是我尝试过的:

chown postfix /etc/postfix/main.cf
chmod u+rwx /etc/postfix/main.cf
Run Code Online (Sandbox Code Playgroud)

在那之后,我这样做:

ls -l /etc/postfix/main.cf
Run Code Online (Sandbox Code Playgroud)

这给了我:

-rwx------. 1 postfix anotheruser 27531 Apf 29 12:19 /etc/postfix/main.cf
Run Code Online (Sandbox Code Playgroud)

没有骰子。同样的错误。我什至尝试暂时执行 chmod 777 但得到了同样的错误。

关于权限问题的任何想法?我假设它以 postfix 用户身份运行该服务。

谢谢

linux smtp postfix centos

8
推荐指数
2
解决办法
2万
查看次数

标签 统计

centos ×1

linux ×1

postfix ×1

smtp ×1