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

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

by Сергей Николайчук -
Number of replies: 6

Hi All!

Please, somebody help me!

Version Moodle 1.9.11+ (Build: 20110413)

SMTP working, ports not blocking

When I try to send a letter,get error:

SMTP -> ERROR: Failed to connect to server: Permission denied (13)
ERROR: SMTP Error: Could not connect to SMTP host.
SMTP -> ERROR: Failed to connect to server: Permission denied (13)
ERROR: SMTP Error: Could not connect to SMTP host.
Where to look for an error. In the Apache logs there is nothing in the logs of postfix too.
Average of ratings: -
In reply to Сергей Николайчук

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

by Luis de Vasconcelos -
Picture of Particularly helpful Moodlers

What have you specified as the SMTP host in Moodle under Site administration/Server/Email?

In reply to Luis de Vasconcelos

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

by Сергей Николайчук -

I specified "news.mydomain.com". SMTP login, SMTP password no need.

I have no problem with sending messages from the server.

Thanks for your help!

In reply to Сергей Николайчук

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

by Luis de Vasconcelos -
Picture of Particularly helpful Moodlers

Are you using a valid e-mail server name. The "news" part of "news.mydomain.com" implies that you're using a usenet server, not an e-mail server. If so, does that usenet server allow e-mail relaying?

I'd be very weary of setting up an e-mail server that isn't password protected! That's a spammers paradise... Are you sure that a password isn't required?

In reply to Luis de Vasconcelos

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

by Сергей Николайчук -

Problem solved!!!

The problem was in selinux : "httpd_can_sendmail --> on".

Thanks for your help.

Average of ratings:Useful (1)
In reply to Сергей Николайчук

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

by Christopher Murad -

Ran Into this issue today - Thanks so much for this post - Saved me even more time spent

 

In reply to Сергей Николайчук

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

by Doris Johnson -

I'm having the same problem. What file did you change this setting in?