Postfix Permission Denied

Postfix-permission-deniedI have just installed the postfix mail server and creating some mail id for send and received the mail. but when I am trying to send mail I am not able to send mail when I check the logs I found the error : sendmail: fatal: chdir /var/spool/postfix: Permission denied

If you are getting postfix permission denied error then follow the below steps to resolve this issue.

Verify postfix running:

# service postfix status

2. Check httpd sendmail permission

# getsebool httpd_can_sendmail

Returned:

httpd_can_sendmail --> off

3. Turn permission on

# setsebool httpd_can_sendmail 1

4. Turn permission on permanently, even reboot

# setsebool -P httpd_can_sendmail 1

5. confirm it’s on or not

httpd_can_sendmail --> on

Tagged . Bookmark the permalink.

Comments are closed.