# 无法发送电子邮件，存在证书问题

**URL:** https://meta.discourse.org/t/cant-send-email-with-certificate-issue/113207
**Category:** Self-hosting
**Created:** [2019年四月2日 08:35 UTC](https://meta.discourse.org/t/cant-send-email-with-certificate-issue/113207 "2019-04-02T08:35:48Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [2019年四月2日 13:55 UTC](https://meta.discourse.org/t/cant-send-email-with-certificate-issue/113207/3 "2019-04-02T13:55:33Z")

</div>

> [@kyu](#):
>
> ```plaintext
> Job exception: 530 5.7.0 Must issue a STARTTLS command first
> 
> ```

This isn’t a certificate problem, this is the _other_ end telling you “I won’t accept credentials over a plaintext connection, you need to use STARTTLS to connect to me and authenticate so you can send mail.”

You should enable `STARTTLS` and either set up Let’s Encrypt for SMTP, or just disable certificate verification.

> [@kyu](#):
>
> Settings below works for my situation.
> 
> ```plaintext
> DISCOURSE_SMTP_PORT: 25
> 
> ```

That’s because now you’re sending to the SMTP port which is used for mail _delivery_ not _submission_. Unless that mailserver is configured to relay mail for your IP, it will _only_ accept mail for the email domains for which it is configured to accept mail.

---

_[View the full topic](https://meta.discourse.org/t/cant-send-email-with-certificate-issue/113207)._
