# SMTP an IMAP email settings

**URL:** https://forums.rocket.chat/t/smtp-an-imap-email-settings/14909
**Category:** Community Support
**Tags:** projectideas, design
**Created:** [September 14, 2022, 8:01am UTC](https://forums.rocket.chat/t/smtp-an-imap-email-settings/14909 "2022-09-14T08:01:16Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![GentleRV](https://avatars.discourse-cdn.com/v4/letter/g/5e9695/32.png) [@GentleRV](https://forums.rocket.chat/u/GentleRV)
#### Post date: [September 14, 2022, 8:01am UTC](https://forums.rocket.chat/t/smtp-an-imap-email-settings/14909/1 "2022-09-14T08:01:17Z")

</div>

### Description

Rocket Chat installed on September 13, 2022.  
Used SNAP installation and online install documents

### Server Setup Information

- Version of Rocket.Chat Server:
- Operating System: Ubuntu 20.04.5 LTS
- Deployment Method: SNAP
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: V18.9.0
- MongoDB Version:
- Proxy: nginx reverse proxy
- Firewalls involved:

### Any additional Information
 not needed

In the admin setup from Rocket.Chat email sending parameters can be entered.  
What is tested:  
SMTP port 25 with user name and passwd \> working  
SMTPS port 438 with user name and passwd \> receive garbage email

EHLO send IP address 127.0.0.1  
Host send public IP address from the server

Request to send with EHLO the server name or self created name  
Request to send HOST information same name as EHLO

As extra remark, in the send test email I see a placeholder for a picture or logo.  
Please make this to upload a logo or place the rocket.chat logo there

Thanks

GentleRV

---

<div class="post-metadata">

### Author: ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)
#### Post date: [September 23, 2022, 5:44pm UTC](https://forums.rocket.chat/t/smtp-an-imap-email-settings/14909/2 "2022-09-23T17:44:11Z")

</div>

Hi! Please, state what version you are at.

Also, increase the log verbosity (Admin \> Logs) and then try sending an email test so you can try to catch some logs.

Thanks!

---

<div class="post-metadata">

### Author: ![GentleRV](https://avatars.discourse-cdn.com/v4/letter/g/5e9695/32.png) [@GentleRV](https://forums.rocket.chat/u/GentleRV)
#### Post date: [September 27, 2022, 2:32pm UTC](https://forums.rocket.chat/t/smtp-an-imap-email-settings/14909/3 "2022-09-27T14:32:41Z")

</div>

Hi dudanogueira,

Rocket.Chat Version: 5.0.6  
NodeJS Version: 14.19.3 - x64  
MongoDB Version: 4.4.15  
MongoDB Engine: wiredTiger

The extendend log file option does not show what is send to the mailserver  
RocketChat send the public IP address to the mailserver instead of the domain name  
As EHLO name is send the local ip address 127.0.0.1 instead of a name like Rocketchat

Please change those things as IP addresses are blocked by many mailservers

---

<div class="post-metadata">

### Author: ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)
#### Post date: [September 27, 2022, 4:51pm UTC](https://forums.rocket.chat/t/smtp-an-imap-email-settings/14909/4 "2022-09-27T16:51:53Z")

</div>

Hi!

Under the hood, we use nodemailer:

> **[SMTP transport :: Nodemailer](https://nodemailer.com/smtp/)**
>
> Nodemailer is a module for Node.js to send emails

You can overrride all nodemailer configurations by changin the MAIL\_URL environment, that is built with the settings you define in Rocket.Chat.

Can you provide a MAIL\_URL to nodemailer that will work?

---

<div class="post-metadata">

### Author: ![GentleRV](https://avatars.discourse-cdn.com/v4/letter/g/5e9695/32.png) [@GentleRV](https://forums.rocket.chat/u/GentleRV)
#### Post date: [September 28, 2022, 6:00am UTC](https://forums.rocket.chat/t/smtp-an-imap-email-settings/14909/5 "2022-09-28T06:00:47Z")

</div>

Hi,

Rocketchat is brandnew for me,  
But I wonder why things are become needless complicated?  
Why need a other program, that can’t be find in the rocketchat cloudstore, to solve a issue that can be solved inside Rocketchat.  
It is nice you point me out to use this Nodemailer but then make it complete and tell me how to implement this in the snap configuration as I do understand that snap is a isolated runtime environment.  
In the mean time I work and configure Rocketchat I found several things who are not logical and will produce miss understandings.  
The most hot issue is the used Mongod database with many errors in the logfiles and need a lot of search to solve it. Even from this database there is documentation how to list database and collections but no information about how to see what is stored in the collections.  
I spend hours to find out how to list contents, but failed as all commands return empty information within the mongsh shell.  
The second issue is the connection with rocketcloud, which are not clear how it works and which credentials are used to make the verified connection.  
Deleting the community instance still leaves information excisting which don’t allow a second new installation, with the same credentials, to make connection.  
It is frustrating for me to jump from one problem into a other without proper information how to solve issues.  
I hope you understand my feelings

With friendly regards,

Ronald

---

<div class="post-metadata">

### Author: ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)
#### Post date: [September 28, 2022, 12:22pm UTC](https://forums.rocket.chat/t/smtp-an-imap-email-settings/14909/6 "2022-09-28T12:22:11Z")

</div>

Hi Ronald!

Thanks for your input.

You are using snap for deployment. While this works great and is a quick way to get it up and running, we suggest all users to move to a docker or k8s deployment, as you will have a more similar environment as other users.

With that you may not have some of the mongo errors you mentioned.

We have improved the cloud registration process a lot, and making it going from the initial setup wizard. If you have chosen the standalone, you can still register it from the ADMIN \> Connectivity Services.

For the **[nodemailer](https://nodemailer.com/smtp/)**, what I mean is that, Rocket.Chat uses the [nodemailer](https://nodemailer.com/smtp/). You don’t need to install it.

**While the config interface is enough for the vast majority of users** , some SMTP server will require specific configurations. Rocket.Chat is flexible enough to allow you to pass those specific configurations directly into MAIL\_URL, following nodemailer specifications.

Please, let me know if this helps!

Thanks!

---

<div class="post-metadata">

### Author: ![GentleRV](https://avatars.discourse-cdn.com/v4/letter/g/5e9695/32.png) [@GentleRV](https://forums.rocket.chat/u/GentleRV)
#### Post date: [November 6, 2022, 1:33am UTC](https://forums.rocket.chat/t/smtp-an-imap-email-settings/14909/7 "2022-11-06T01:33:46Z")

</div>

> [@dudanogueira](#):
>
> **While the config interface is enough for the vast majority of users** , some SMTP server will require specific configurations. Rocket.Chat is flexible enough to allow you to pass those specific configurations directly into MAIL\_URL, following nodemailer specifications.

This exactly my point, there are not enough fields to change the required information.  
I use Mercury Email, and like that the requirements are meet by Rocket chat  
That means not sending any IP addresses but names

It is nice you advice nodemailer but I don’t like to use it

Thanks

---

<div class="post-metadata">

### Author: ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)
#### Post date: [November 7, 2022, 5:43pm UTC](https://forums.rocket.chat/t/smtp-an-imap-email-settings/14909/8 "2022-11-07T17:43:17Z")

</div>

Hi, not sure you understand.

Rocket.Chat uses nodemailer.

The basic setup can be done using the GUI.

For more advanced configurations, you will need to craft your own MAIL\_URL, and pass it as an environment variable.

With that said, nodemailer allows a lot of options on it’s config URL:

> **[SMTP transport :: Nodemailer](https://nodemailer.com/smtp/)**
>
> Nodemailer is a module for Node.js to send emails
