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

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

od Сергей Николайчук -
Število odgovorov: 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.
Povprečje ocenitev: -
V odgovor na Сергей Николайчук

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

od Luis de Vasconcelos -
Slika Particularly helpful Moodlers

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

V odgovor na Luis de Vasconcelos

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

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

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!

V odgovor na Сергей Николайчук

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

od Luis de Vasconcelos -
Slika 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?

V odgovor na Luis de Vasconcelos

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

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

Problem solved!!!

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

Thanks for your help.

V odgovor na Сергей Николайчук

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

od Christopher Murad -

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

 

V odgovor na Сергей Николайчук

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

od Doris Johnson -

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