Permission Denied When Sending Email - Post SMTP Fix

Start Using Post SMTP for Free

Email

The form has been submitted successfully!

Post SMTP Blog

Tutorials and tips to help you grow your business with WordPress

“Permission denied” while trying to send an email

By Editorial Team

November 25, 2019

Table Of Contents

Add a header to begin generating the table of contents

 The SELinux is the culprit! You need to enable the sending of emails from one of its Boolean values ​​to allow you to send these emails.
It works at the Kernel level and is a MAC (Mandatory access control).


If you execute the command:

getsebool -a

You will have a list of values. There is a value called:

httpd_can_sendmail

I was off! In order to make certain changes in the permissions of some applications the SELinux “turned off” that possibility. When we discovered it, we found a way to solve it:

setsebool -P httpd_can_sendmail on

Thanks to “hedicode” for the fix.

👋 Having issues sending email
in WordPress? Lets Chat 👇
Scroll to Top