Pages

Thursday, September 18, 2014

SMTP -> ERROR: Failed to connect to server: Permission denied (13)

SMTP -> ERROR: Failed to connect to server: Permission denied (13)

Myself and  Vasanth, were attempting to make a PHP application  work; where the application send email when ever a user registers.

While accessing the application, I got this error

SMTP -> ERROR: Failed to connect to server: Permission denied (13)

First Check whether httpd service is allowed to send email.

getsebool httpd_can_sendmail

If got output as 'false'

Now, execute to enable permission for httpd service to send email.

setsebool -P httpd_can_sendmail 1

OR

/usr/sbin/setsebool -P httpd_can_sendmail on

Reference:

http://blog.innovsystems.com/php/smtp-error-failed-connect-server-permission-denied-13

No comments:

Post a Comment