Jump to content
thirty bees forum
  • 0

SMTP permission denied #13


Coachonko

Question

On stable 1.3.0

I want to move away from using PHP's mail function, I want to connect to a SMTP server using port 465 with TLS.

I enter SMTP server, username, password, encryption and port according to the mail server requirements, but when I test the configuration I get the following

Connection could not be established with host mail.domain.com [Permission denied #13]

Note: mail.domain.com is a placeholder to ask for help here, the configuration I entered is correct but it does not seem to work.

The mail server is not blocking my thirty bees server, my thirty bees server does not have any ports blocked. I believe this problem is specific to thirty bees. Where can I find more information about this error? I don't see it in the logs in the logs directory and it does not even appear in the php-fpm logs.

What can the problem be?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
7 hours ago, datakick said:

it can be... a lot if things. I dont think this is application issue, looks like env misconfiguration problem. For example:

https://hpduy17.wordpress.com/2019/01/29/deal-with-swift-transportexception-when-sending-gmail-from-laravel-application/

O my god... I had completely forgotten about the selinux booleans. And that was the problem. `sudo setsebool -P httpd_can_network_connect on` fixed it.

This is not the first time it happened. They're always too far in the back of my mind. Thank you for reminding me

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...