---
title: "«Permission denied» while trying to send an email"
id: "52493"
type: "post"
slug: "permission-denied-while-trying-to-send-an-email"
published_at: "2019-11-25T09:47:04+00:00"
modified_at: "2026-03-11T08:23:36+00:00"
url: "https://postmansmtp.com/es/permission-denied-while-trying-to-send-an-email/"
markdown_url: "https://postmansmtp.com/es/permission-denied-while-trying-to-send-an-email.md"
excerpt: "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..."
taxonomy_category:
  - "Troubleshooting"
---

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.

### Deja un comentario

Lo siento, debes estar [conectado](https://postmansmtp.com/es/exp_obj_wp/?redirect_to=https%3A%2F%2Fpostmansmtp.com%2Fes%2Fpermission-denied-while-trying-to-send-an-email%2F)
 para publicar un comentario.
