# 日志显示邮件已发送！但实际未发送

**URL:** <https://meta.discourse.org/t/log-says-mail-is-sent-but-its-not/100512>\
**Category:** Self-hosting\
**Created:** [2018 年10 月 26 日 04:26 UTC](https://meta.discourse.org/t/log-says-mail-is-sent-but-its-not/100512 "2018-10-26T04:26:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![alizeyn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alizeyn/32/123350_2.png) [@alizeyn](https://meta.discourse.org/u/alizeyn)\
发布日期： [2018 年10 月 26 日 04:26 UTC](https://meta.discourse.org/t/log-says-mail-is-sent-but-its-not/100512/1 "2018-10-26T04:26:02Z")

</div>

first of all I read almost every related topic about mail troubleshooting including : [troubleshooting-email](https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326/2)

and still I’m not able to receive register mail.

when I run `discourse-doctor` it says :

```plaintext
Email address for mail test? ('n' to skip) [forum@nowbeboss.com]:
Sending mail to forum@nowbeboss.com. . .
Testing sending to forum@nowbeboss.com using discourse@forum.nowbeboss.com:ad23Ds2(8s*df@submail.nowbeboss.com:587.
SMTP server connection successful.
Sending to forum@nowbeboss.com. . .
Sending mail failed.
Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to

```

production logs says :  
`Sent mail to forum@nowbeboss.com (86.3ms)`

here is my app.yml setting :

[app.yml](https://paste.ubuntu.com/p/sFzqNsmGmZ/)

DKIM and SPF is all set.  
and I can’t find any useful logs for exim, mail, syslog or anything.

I can successfully send mails through via `swask` and telnet says port 587 is open

swaks output :

```plaintext
$ swaks --to forum@nowbeboss.com --from discourse@forum.nowbeboss.com --server submail.nowbeboss.com --auth LOGIN --auth-user discourse@forum.nowbeboss.com -tls

=== Trying submail.nowbeboss.com:25...
=== Connected to submail.nowbeboss.com.
<- 220 srvr.nowbeboss.com ESMTP Exim 4.91 Fri, 26 Oct 2018 07:38:57 +0200
 -> EHLO srvr.nowbeboss.com
<- 250-srvr.nowbeboss.com Hello 7.ip-164-132-101.eu [164.132.101.7]
<- 250-SIZE 52428800
<- 250-8BITMIME
<- 250-PIPELINING
<- 250-AUTH PLAIN LOGIN
<- 250-STARTTLS
<- 250 HELP
 -> STARTTLS
<- 220 TLS go ahead
=== TLS started with cipher TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256
=== TLS no local certificate set
=== TLS peer DN="/C=US/ST=Someprovince/L=Sometown/O=none/OU=none/CN=localhost/emailAddress=webaster@localhost"
 ~> EHLO srvr.nowbeboss.com
<~ 250-srvr.nowbeboss.com Hello 7.ip-164-132-101.eu [164.132.101.7]
<~ 250-SIZE 52428800
<~ 250-8BITMIME
<~ 250-PIPELINING
<~ 250-AUTH PLAIN LOGIN
<~ 250 HELP
 ~> AUTH LOGIN
<~ 334 VXNlcm5hbWU6
 ~> ZGlzY291cnNlQGZvcnVtLm5vd2JlYm9zcy5jb20=
<~ 334 UGFzc3dvcmQ6
 ~> YWQyM0RzMig4cypkZg==
<~ 235 Authentication succeeded
 ~> MAIL FROM:<discourse@forum.nowbeboss.com>
<~ 250 OK
 ~> RCPT TO:<forum@nowbeboss.com>
<~ 250 Accepted
 ~> DATA
<~ 354 Enter message, ending with "." on a line by itself
 ~> Date: Fri, 26 Oct 2018 07:38:54 +0200
 ~> To: forum@nowbeboss.com
 ~> From: discourse@forum.nowbeboss.com
 ~> Subject: test Fri, 26 Oct 2018 07:38:54 +0200
 ~> X-Mailer: swaks v20130209.0 jetmore.org/john/code/swaks/
 ~>
 ~> This is a test mailing
 ~>
 ~> .
<~ 250 OK id=1gFupl-0006TP-OW
 ~> QUIT

```

---

_[View the full topic](https://meta.discourse.org/t/log-says-mail-is-sent-but-its-not/100512)._
