# אימיילים הפסיקו להישלח - הגיע סוף הקובץ

**URL:** <https://meta.discourse.org/t/emails-have-stopped-sending-end-of-file-reached/176486>\
**Category:** Product Support\
**Created:** [18 בינואר,‏ 2021,‏ 9:29pm UTC](https://meta.discourse.org/t/emails-have-stopped-sending-end-of-file-reached/176486 "2021-01-18T21:29:02Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Syonyk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/syonyk/32/206551_2.png) [@Syonyk](https://meta.discourse.org/u/Syonyk)\
**Post date:** [20 בינואר,‏ 2021,‏ 10:19pm UTC](https://meta.discourse.org/t/emails-have-stopped-sending-end-of-file-reached/176486/14 "2021-01-20T22:19:54Z")

</div>

Hm…

I tossed a tcpdump on the server and ran discourse-doctor. And found this in the output…

```plaintext
...
0x0030: d10f f8e4 4548 4c4f 206c 6f63 616c 686f ....EHLO.localho
	0x0040: 7374 0d0a st..
...
	0x0030: de62 f0c3 3432 3120 342e 372e 3020 5472 .b..421.4.7.0.Tr
	0x0040: 7920 6167 6169 6e20 6c61 7465 722c 2063 y.again.later,.c
	0x0050: 6c6f 7369 6e67 2063 6f6e 6e65 6374 696f losing.connectio
	0x0060: 6e2e 2028 4548 4c4f 2920 6a31 3673 6d34 n..(EHLO).j16sm4
	0x0070: 3831 3932 3976 736d 2e31 202d 2067 736d 81929vsm.1.-.gsm
	0x0080: 7470 0d0a tp..

```

And, importantly, I _CAN_ reproduce this failure with telnet.

```plaintext
root@conversation:~# telnet smtp-relay.gmail.com 587
Trying 74.125.137.28...
Connected to smtp-relay.gmail.com.
Escape character is '^]'.
220 smtp-relay.gmail.com ESMTP ls8sm507258pjb.6 - gsmtp
ehlo localhost.localdomain
421 4.7.0 Try again later, closing connection. (EHLO) ls8sm507258pjb.6 - gsmtp
Connection closed by foreign host.

```

If I send an actual domain, I get the expected response.

```plaintext
root@conversation:~# telnet smtp-relay.gmail.com 587
Trying 74.125.137.28...
Connected to smtp-relay.gmail.com.
Escape character is '^]'.
220 smtp-relay.gmail.com ESMTP p10sm668563uaw.3 - gsmtp
ehlo conversation.sevarg.net
250-smtp-relay.gmail.com at your service, [64.227.96.27]
250-SIZE 157286400
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8

```

So, now the question is, how does one get Discourse to send a proper domain string in the ehlo?

I don’t know if it’s the only issue, but it sure looks promising to run down.

---

_[View the full topic](https://meta.discourse.org/t/emails-have-stopped-sending-end-of-file-reached/176486)._
