Forum: Ruby Error send e-mail

928ef6517c2b2e7e994c7057c5e2953d?d=identicon&s=25 Thiago Oliveira (thiagollo)
on 2016-12-20 20:47
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: "<user>@bsservices.com.br"
    password: "<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?
0fa73332c8e4a3b06ea439fd3f034322?d=identicon&s=25 Ronald Fischer (rovf)
on 2016-12-22 14:05
Looks to me more like SMTP authentification problem; SMTP Username and
Password are correct? The host is authorized to send mail?
928ef6517c2b2e7e994c7057c5e2953d?d=identicon&s=25 Thiago Oliveira (thiagollo)
on 2016-12-22 18:43
Ronald Fischer 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.
0fa73332c8e4a3b06ea439fd3f034322?d=identicon&s=25 Ronald Fischer (rovf)
on 2016-12-23 07:54
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
http://www.redmine.org/projects/redmine/boards, because it doesn't look
like a (pure) Ruby issue to me.
928ef6517c2b2e7e994c7057c5e2953d?d=identicon&s=25 Thiago Oliveira (thiagollo)
on 2016-12-23 12:36
Ronald Fischer 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
> http://www.redmine.org/projects/redmine/boards, 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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.