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

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

- Сергей Николайчук の投稿
返信数: 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.
Сергей Николайчук への返信

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

- Luis de Vasconcelos の投稿

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

Luis de Vasconcelos への返信

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

- Сергей Николайчук の投稿

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!

Сергей Николайчук への返信

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

- Luis de Vasconcelos の投稿

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?

Luis de Vasconcelos への返信

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

- Сергей Николайчук の投稿

Problem solved!!!

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

Thanks for your help.