# Make Rocketchat use certificate for secured SMTP server

**URL:** https://forums.rocket.chat/t/make-rocketchat-use-certificate-for-secured-smtp-server/12253
**Category:** Community Support
**Created:** [September 22, 2021, 7:41am UTC](https://forums.rocket.chat/t/make-rocketchat-use-certificate-for-secured-smtp-server/12253 "2021-09-22T07:41:04Z")
**Posts on this page:** 1
**Showing post:** 2

<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 22, 2021, 10:34am UTC](https://forums.rocket.chat/t/make-rocketchat-use-certificate-for-secured-smtp-server/12253/2 "2021-09-22T10:34:26Z")

</div>

Hi!

I was checking the source code for your question, and searching for MAIL\_URL I found this:

> <https://github.com/RocketChat/Rocket.Chat/blob/9ae05463852458b08fe68033561ee42209d8172f/app/lib/server/startup/settingsOnLoadSMTP.js>

I think the best you can get right now is a mix and match of the following options:

```auto
rocketchat:
  ...
  environment:
    - MAIL_URL=smtps://user:password@smtp_server:25&secure=false&ignoreTLS=true

```

One could work around this requirement by setting up an smtp relay that will use the provided certificate and provide a smtp server that will work with Rocket.Chat.

---

_[View the full topic](https://forums.rocket.chat/t/make-rocketchat-use-certificate-for-secured-smtp-server/12253)._
