# Can't send test emails

**URL:** <https://forums.rocket.chat/t/cant-send-test-emails/17166>\
**Category:** Community Support\
**Created:** [June 28, 2023, 2:55pm UTC](https://forums.rocket.chat/t/cant-send-test-emails/17166 "2023-06-28T14:55:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NightMayor](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@NightMayor](https://forums.rocket.chat/u/NightMayor)\
**Post date:** [June 28, 2023, 2:55pm UTC](https://forums.rocket.chat/t/cant-send-test-emails/17166/1 "2023-06-28T14:55:32Z")

</div>

### Description

Hello everyone,

i have some trouble in setting up SMTP in Rocket Chat. My Mailserver is working and everything is tpyed in correctly. Everytime i send a test e-mail i got this error:

Exception in defer callback: Error: 139846341916544:error:1408F10B:SSL routines:ssl3\_get\_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3\_record.c:332: =\> awaited here: at Function.Promise.await (/snap/rocketchat-server/1562/programs/server/npm/node\_modules/meteor/promise/node\_modules/meteor-promise/promise\_server.js:56:12) at Object.Email.send (packages/email/email.js:250:18) at AccountsServer.Accounts.sendEnrollmentEmail (packages/accounts-password/password\_server.js:570:9) at app/lib/server/functions/setUsername.ts:46:14 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1329:12) at packages/meteor.js:587:25 at runWithEnvironment (packages/meteor.js:1417:24) { library: ‘SSL routines’, function: ‘ssl3\_get\_record’, reason: ‘wrong version number’, code: ‘ESOCKET’, command: ‘CONN’ }

any ideas how to this fix? Thanks in advance!

### Server Setup Information

- Version of Rocket.Chat Server: 6.2.8
- Operating System: Linux (Ubuntu 20.04)
- Deployment Method: snap
- Number of Running Instances: 1
- DB Replicaset Oplog: enabled
- NodeJS Version: 14.21.2 - x64
- MongoDB Version: 5.0.15
- Proxy: caddy
- Firewalls involved: UFW
