启动postfix服务时遇到如下错误:
[root@www postfix-2.10.8]# postfix start
postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/.
postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/./master.lock
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/private
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/public
postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/public
postfix/postfix-script: starting the Postfix mail system
postfix/postfix-script: fatal: mail system startup failed
解决办法:满足上面对某些目录的组和用户的要求即可
[root@www postfix]# chown -R postfix.postfix /var/lib/postfix/. /var/lib/postfix/./master.lock
[root@www postfix]# chown -R postfix.postfix /var/lib/postfix/./master.lock
[root@www postfix]# chown -R postfix.postfix /var/spool/postfix/private
[root@www postfix]# chown -R postfix.postdrop /var/spool/postfix/public
重新启动:
[root@www postfix]# postfix start
postfix/postfix-script: starting the Postfix mail system
[root@www postfix]# netstat -ntlp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 9959/master
阅读(3769) | 评论(0) | 转发(0) |