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 connection error message always shows port 25 #2727

Open
pkelbert opened this issue Nov 1, 2018 · 0 comments
Open

SMTP connection error message always shows port 25 #2727

pkelbert opened this issue Nov 1, 2018 · 0 comments

Comments

@pkelbert
Copy link

pkelbert commented Nov 1, 2018

Even after changing SMTP settings, when I try to register a new user Codenvy always shows error connection on port 25:

Could not connect to SMTP host: smtp.mailtrap.io, port: 25

screenshot from 2018-11-01 09-33-05

Expected behavior:

The port number should be the same set in CODENVY_MAIL_HOST_PORT, eg:

Could not connect to SMTP host: smtp.mailtrap.io, port: 465

Reproduction Steps:

  1. Start Codenvy with an empty data folder: docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v ~/codenvy1:/data codenvy/cli start
  2. Stop Codenvy: docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v ~/codenvy1:/data codenvy/cli stop --skip:graceful.
  3. Edit codenvy.env (these only two lines are enough for reproducing the error):
    • CODENVY_SMTP_HOST=smtp.mailtrap.io
    • CODENVY_SMTP_HOST_PORT=465
  4. Start Codenvy again poiting to same data folder: docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v ~/codenvy1:/data codenvy/cli start
  5. Access http://localhost on a browser.
  6. Click on Create a New Account.
  7. Fill the form with values sample@sample.com and sample
  8. Click on Sign Up

Codenvy version: 5.22.2

OS and version: Ubuntu Desktop 18.04 64 bit

Docker version:

Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:24:51 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:23:15 2018
  OS/Arch:          linux/amd64
  Experimental:     false

Codenvy cli.log output: https://pastebin.com/gwrp4qxS

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

1 participant