CentOS 6에서 service postfix start 시 에러가 발생하여 tail -f /var/log/maillog 로 로그 확인

 

Apr 23 14:28:10 whale postfix/postfix-script[470]: fatal: the Postfix mail system is not running
Apr 23 14:28:10 whale postfix/postsuper[505]: fatal: scan_dir_push: open directory defer: Permission denied
Apr 23 14:28:11 whale postfix/postfix-script[506]: fatal: Postfix integrity check failed!
CODE

원인은 모르지만 queue 디렉터리의 권한이 잘못 되어 발생하였고 다음 명령어로 수정

postfix -c /etc/postfix set-permissions
CODE

 

postfix 재구동후 확인해 보니 다음과 같은 메시지가 추가로 발생했는데 해당 파일을 삭제하니 문제가 해결됨

warning: not owned by postfix: /var/lib/postfix/./master.lock
CODE

 

 

Ref