Permission Denied When Sending Email - Post SMTP Fix

Start Using Post SMTP for Free

Email

The form has been submitted successfully!
World Entrepreneurs' Day
Get Flat 26% OFF

Use code: ENTREPRENEUR26

get-postmansmto

Post SMTP Blog

Tutorials and expert advice to improve WordPress email deliverability.

“Permission denied” while trying to send an email

by Editorial Team

November 25, 2019
SUMMARIZE:

ChatGPT

Perplexity

View Markdown

In This Article

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.

Newsletters

Get productivity tips delivered straight to your inbox

Join 125,000+ WordPress users who get our weekly newsletter with insider WordPress tips!

Fix Your WordPress Email Delivery Issues with Post SMTP

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