RocketChat / RocketChat/Rocket.Chat

Issues storing SMTP Settings

Open
#8,732 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Not able to setup SMTP as expected

Rocket.Chat Server 0.57.3
Debian 8
Number of Running Instances: 2
DB Replicaset Oplog: yes
Node Version: 4.7.1

Steps to Reproduce:
  1. Login in as Admin
  2. Setting up SMTP using WebGUI (filling the form)
  3. Storing the Information
  4. Getting popUp "Stored Sucessfully"
  5. Sending Testmail to myself resulting an "internal error"
Expected behavior:

Able to send mails via SMTP

Actual behavior:

Just not working

Relevant logs:

[34mI20171031-16:40:26.789(0) Updating process.env.MAIL_URL
I20171031-16:41:44.982(0) Exception while invoking method 'sendSMTPTestEmail' TypeError: Cannot read property '0' of undefined at [object Object].Meteor.methods.sendSMTPTestEmail (/home/webmaster/Rocket.Chat/programs/server/packages/rocketchat_lib.js:14136:35) at [object Object].methodsMap.(anonymous function) (/home/webmaster/Rocket.Chat/programs/server/packages/rocketchat_lib.js:1028:26) at [object Object].methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30) at maybeAuditArgumentChecks (/home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:1823:12) at /home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:905:20 at [object Object]..extend.withValue (packages/meteor.js:1122:17) at /home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:904:41 at [object Object]..extend.withValue (packages/meteor.js:1122:17) at /home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:903:46 at [object Object]._.extend.protocol_handlers.method (/home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:876:21) at /home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:755:85

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the sendSMTPTestEmail method in programs/server/packages/rocketchat_lib.js around line 14136 and review the logged TypeError when sending the SMTP test email. Reproduce the configured SMTP flow described in the issue; done means the test email sends successfully without the internal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.