Problem: Want to send email via WordPress plugin. I confirmed that server’s port 465 587 is open and enabled. But there is an error saying permission denied issue.
The necessary port is enabled. So after some research the problem is SELinux is enabled.
You can check out https://www.itdailydocumentation.com/?p=357 to disable SELinux.