Error send e-mail

Hi Guys.
My app (redmine) works fine. But, the e-mail notification is not
working.

Im using:
Environment:
Redmine version 3.0.3.stable
Ruby version 2.2.2-p95 (2015-04-13) [x86_64-linux]
Rails version 4.2.1
Environment production
Database adapter Mysql2
SCM:
Filesystem
Redmine plugins:
no plugin installed

configuration.yml:
default configuration options for all environments
default: # Outgoing emails configuration (see examples above)
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.bsservices.com.br
port: 587
domain: bsservices.com.br
authentication: :login
user_name: “@bsservices.com.br
password: “”

Error:
(Permission denied - connect(2) for “bsservices.com.br” port 587)

All permissions are set to 777 but the error continue. Maybe it’s an
SElinux problem.
Any Help please?

Looks to me more like SMTP authentification problem; SMTP Username and
Password are correct? The host is authorized to send mail?

Ronald F. wrote in post #1185379:

Looks to me more like SMTP authentification problem; SMTP Username and
Password are correct? The host is authorized to send mail?

Ronald.

I Have a class that works fine and sent e-mail from this server. The
same SMTP address.

And the program using this class runs under the same Linux user as the
Redmine app? In this case I would crosspost your problem at
Forums - Redmine, because it doesn’t look
like a (pure) Ruby issue to me.

Ronald F. wrote in post #1185396:

And the program using this class runs under the same Linux user as the
Redmine app? In this case I would crosspost your problem at
Forums - Redmine, because it doesn’t look
like a (pure) Ruby issue to me.

Ronaldo… first of all, thank you.
Yes. Is the same user. I made this class just to check user permission.