Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP settings - status timeout #1195

Closed
buchacho opened this issue Apr 4, 2020 · 6 comments
Closed

SMTP settings - status timeout #1195

buchacho opened this issue Apr 4, 2020 · 6 comments

Comments

@buchacho
Copy link

buchacho commented Apr 4, 2020

Hello. I get an SMTP timeout error. The data is entered correctly, I do not understand what the problem is. Thanks

Checking environment: Passed
Checking Connection: Passed
Checking Secret: Passed
Checking SMTP connection: Failed
Error connecting to SMTP - Net::ReadTimeout

my conf

SMTP_SERVER=smtp.mail.ru
SMTP_PORT=465
SMTP_DOMAIN=c1.ru
SMTP_USERNAME=i
**@c1.ru
SMTP_PASSWORD=

SMTP_AUTH=plain
SMTP_STARTTLS_AUTO=true

@runout-at
Copy link

try port 587
port 465 is not meant for STARTTLS

@buchacho
Copy link
Author

buchacho commented Apr 5, 2020

try port 587
port 465 is not meant for STARTTLS

Hi. Thanks for ansfer. Port 587 send error no local user domain.

@runout-at
Copy link

then the SMTP connection was successful.
your login/domain/user does not exist on that mail server.

@buchacho
Copy link
Author

buchacho commented Apr 5, 2020

then the SMTP connection was successful.
your login/domain/user does not exist on that mail server.

YES, IT CONNECTS TO A SIMPLE ACCOUNT. We have CORPORATE MAIL AND the MAILING ADDRESS is DIFFERENT from the DOMAIN MAIL.RU It looks like xxx@xxx.ru although the server smtp.mail.ru
With other mail collection programs, everything works fine,in greenlight I get an error timeout
2020-04-05_21-09-10

SMTP_SERVER=smpt.mail.ru
SMTP_PORT=465
SMTP_DOMAIN=mail.ru
SMTP_USERNAME=mail@chgb1.ru
SMTP_PASSWORD=pass
SMTP_AUTH=plain
SMTP_STARTTLS_AUTO=true
SMTP_SENDER=mail@chgb1.ru

@yanosz
Copy link
Contributor

yanosz commented Apr 5, 2020

I guess, that this issue is not caused by greenlight itself. Greenlight uses Rails Action Mailers https://guides.rubyonrails.org/action_mailer_basics.html to deliver mail.

This could be a problem in your network / docker setup or in ActionMailer itself.
Can you reproduce the issue with ActionMailer?

@farhatahmad
Copy link
Collaborator

@buchacho Normally this timeouts refer to the request being blocked by a firewall or configuration setting. I would check that the mail server accepts incoming requests from the IP of the machine running the docker containers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants