# SMTP Verification Emails not working

**URL:** <https://forums.rocket.chat/t/smtp-verification-emails-not-working/14767>\
**Category:** Community Support\
**Created:** [August 25, 2022, 6:51am UTC](https://forums.rocket.chat/t/smtp-verification-emails-not-working/14767 "2022-08-25T06:51:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badremind](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@Badremind](https://forums.rocket.chat/u/Badremind)\
**Post date:** [August 25, 2022, 6:51am UTC](https://forums.rocket.chat/t/smtp-verification-emails-not-working/14767/1 "2022-08-25T06:51:27Z")

</div>

### Description

Hey, my SMTP server seems to be working, but Rocket.chat can’t send verification or test emails.

I have noticed that I have a delay of about 40 seconds when sending emails and about 2 Minutes for receiving emails (tested with thunderbird).

Log:

Exception in defer callback: Error: Greeting never received at SMTPConnection.\_formatError (/opt/Rocket.Chat/programs/server/npm/node\_modules/meteor/email/node\_modules/nodemailer/lib/smtp-connection/index.js:784:19) at SMTPConnection.\_onError (/opt/Rocket.Chat/programs/server/npm/node\_modules/meteor/email/node\_modules/nodemailer/lib/smtp-connection/index.js:770:20) at Timeout. (/opt/Rocket.Chat/programs/server/npm/node\_modules/meteor/email/node\_modules/nodemailer/lib/smtp-connection/index.js:704:22) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { code: ‘ETIMEDOUT’, command: ‘CONN’ }

### Server Setup Information

- Version of Rocket.Chat Server: 5.0.4
- Operating System: Debian 11
- Deployment Method: tar ( manual )
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: v14.20.0
- MongoDB Version: 4.4.16
- Proxy: reverse Proxy Nginx
- Firewalls involved: ufw

### Any additional Information

Protocol: smtps  
Port: 465

Also Missing description:

 ![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/d/df819bf19bea53a13d4f5dc3c02f357ece0c32c2.png)

---

<div class="post-metadata">

**Author:** ![Badremind](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@Badremind](https://forums.rocket.chat/u/Badremind)\
**Post date:** [August 25, 2022, 7:17pm UTC](https://forums.rocket.chat/t/smtp-verification-emails-not-working/14767/3 "2022-08-25T19:17:13Z")

</div>

Fixed:

IN  
/Rocket.Chat/programs/server/npm/node\_modules/meteor/email/node\_modules/nodemailer/lib/smtp-connection/index.js

changed to “const GREETING\_TIMEOUT = 35 \* 1000;” // how much to wait after connection is established but SMTP greeting is not receieved

My STMP Server reacts a bit slow but the changed worked!

---

<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:** [August 26, 2022, 7:13pm UTC](https://forums.rocket.chat/t/smtp-verification-emails-not-working/14767/4 "2022-08-26T19:13:01Z")

</div>

Hi, check this for a solution that do not change codebase:

> <https://github.com/RocketChat/Rocket.Chat/issues/26690>
>
> Server Setup Information
> 
> Version of Rocket.Chat Server: 5.0.4
> Operating Syst…em: Debian 11
> Deployment Method: tar ( manual )
> Number of Running Instances: 1
> NodeJS Version: v14.20.0
> MongoDB Version: 4.4.16
> Proxy: reverse Proxy Nginx
> Firewalls involved: ufw
> 
> I could not send E-Mails via SMTP caus the greeting\_timeout value was to low /DIR/Rocket.Chat/programs/server/npm/node\_modules/meteor/email/node\_modules/nodemailer/lib/smtp-connection/index.js
> changed " const GREETING\_TIMEOUT = 35 \* 1000; // how much to wait after connection is established but SMTP greeting is not receieved
> 
> My STMP Server reacts a bit slow but the changed worked!
> 
> Error Message before the change:
> Exception in defer callback: Error: Greeting never received at SMTPConnection.\_formatError (/DIR/Rocket.Chat/programs/server/npm/node\_modules/meteor/email/node\_modules/nodemailer/lib/smtp-connection/index.js:784:19) at SMTPConnection.\_onError (/DIR/Rocket.Chat/programs/server/npm/node\_modules/meteor/email/node\_modules/nodemailer/lib/smtp-connection/index.js:770:20) at Timeout. (/DIR/Rocket.Chat/programs/server/npm/node\_modules/meteor/email/node\_modules/nodemailer/lib/smtp-connection/index.js:704:22) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { code: ‘ETIMEDOUT’, command: ‘CONN’ }
