# RE: Can send out but cannot receive emails

**URL:** <https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523>\
**Category:** Mail\
**Created:** [May 21, 2021, 5:13am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523 "2021-05-21T05:13:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlifOpenSrc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@AlifOpenSrc](https://forum.hestiacp.com/u/AlifOpenSrc)\
**Post date:** [May 21, 2021, 5:13am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/1 "2021-05-21T05:13:57Z")

</div>

Hey Guys,

1. Vanilla server again with no special config j using cloudflare DNS. IntoDNS flagged the following  
 ![image](https://forum.hestiacp.com/uploads/default/original/2X/6/6c355621e899b01a01af6185e31e868b48f4778a.png)
2. I used this [Transferring Mail Accounts - Vesta Control Panel - Forum](https://forum.vestacp.com/viewtopic.php?t=8493#p28012) to do manual transfer of the old mailserver to the new mailserver. I also did remember to run “chown -R user:user-grp /home/domain/mail/”

Any ideas why can send out mails but cannot receive replies? Google is not flagging if mail did not reach. Which logs can i check to look for clues?

-AOS.

---

<div class="post-metadata">

**Author:** ![AlifOpenSrc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@AlifOpenSrc](https://forum.hestiacp.com/u/AlifOpenSrc)\
**Post date:** [May 21, 2021, 5:23am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/2 "2021-05-21T05:23:56Z")

</div>

I saw this in [https://server-IP:8083/list/server/?mail](https://server-IP:8083/list/server/?mail)

> ## Relayed messages
> 
> ```
> 1 localhost[127.0.0.1] user@domain.com
> => gmail-smtp-in.l.google.com[172.253.118.26] someuser@gmail.com
> 1 localhost[127.0.0.1] other-users@domain.com
> => gmail-smtp-in.l.google.com[74.125.130.27] someuser@gmail.com
> 
> ```
> 
> Total: 2 (plus 0 unshown)

But I am not seeing it in the roundcube at all. Did my importing of the old server email files broke this vanilla vps mailserver?

Thank you for all help Guys!

-AOS/

---

<div class="post-metadata">

**Author:** ![Raphael](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/raphael/32/5217_2.png) [@Raphael](https://forum.hestiacp.com/u/Raphael)\
**Post date:** [May 21, 2021, 6:00am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/3 "2021-05-21T06:00:05Z")

</div>

Check your mail log under /var/log/exim/mainlog.

---

<div class="post-metadata">

**Author:** ![AlifOpenSrc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@AlifOpenSrc](https://forum.hestiacp.com/u/AlifOpenSrc)\
**Post date:** [May 21, 2021, 6:19am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/4 "2021-05-21T06:19:26Z")

</div>

> [@Raphael](#):
>
> /var/log/exim/mainlog

Hi @Raphael  
This is what it shows

 ![image](https://forum.hestiacp.com/uploads/default/original/2X/0/0e1ca6d6c1ca7ca8510e452da1674c60307c8366.png)

-AOS.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [May 21, 2021, 6:21am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/5 "2021-05-21T06:21:42Z")

</div>

Try /var/log/exim4/mainlog

---

<div class="post-metadata">

**Author:** ![AlifOpenSrc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@AlifOpenSrc](https://forum.hestiacp.com/u/AlifOpenSrc)\
**Post date:** [May 21, 2021, 6:25am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/6 "2021-05-21T06:25:29Z")

</div>

Got it,

Somehow, this keeps on showing

> TLS error on connection from [mail-lf1-f48.google.com](http://mail-lf1-f48.google.com)  
> Any idea why? I use cloudflare origin server CA.

-AOS.

---

<div class="post-metadata">

**Author:** ![Raphael](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/raphael/32/5217_2.png) [@Raphael](https://forum.hestiacp.com/u/Raphael)\
**Post date:** [May 21, 2021, 6:27am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/7 "2021-05-21T06:27:15Z")

</div>

Probaly invalid host cert? No idea, you need to do a little bit debug on your own - for example first hit on google: [exim - exim4 is showing a TLS error on connection... (gnutls\_handshake) - Server Fault](https://serverfault.com/questions/521425/exim4-is-showing-a-tls-error-on-connection-gnutls-handshake)

Also the log doesnt seem to be complete, there should be more after the hostname.

---

<div class="post-metadata">

**Author:** ![AlifOpenSrc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@AlifOpenSrc](https://forum.hestiacp.com/u/AlifOpenSrc)\
**Post date:** [May 21, 2021, 6:44am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/8 "2021-05-21T06:44:47Z")

</div>

This is the log

> **[Exim5Err - Pastebin.com](https://pastebin.com/PjTXLufN)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

-AOS.

---

<div class="post-metadata">

**Author:** ![Raphael](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/raphael/32/5217_2.png) [@Raphael](https://forum.hestiacp.com/u/Raphael)\
**Post date:** [May 21, 2021, 6:49am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/9 "2021-05-21T06:49:46Z")

</div>

[A disallowed SNI server name has been received - Google Suche](https://www.google.com/search?q=A%20disallowed%20SNI%20server%20name%20has%20been%20received).

Any special chars in your domain name?

---

<div class="post-metadata">

**Author:** ![AlifOpenSrc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@AlifOpenSrc](https://forum.hestiacp.com/u/AlifOpenSrc)\
**Post date:** [May 21, 2021, 8:46am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/10 "2021-05-21T08:46:56Z")

</div>

Nope, its all standard English alphabets only. That is why i am scratching my head.

-AOS.

---

<div class="post-metadata">

**Author:** ![AlifOpenSrc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@AlifOpenSrc](https://forum.hestiacp.com/u/AlifOpenSrc)\
**Post date:** [May 22, 2021, 9:51am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/11 "2021-05-22T09:51:49Z")

</div>

Hey guys,

I cannot seem to receive email from gmail. This is what exim logs:  
2021-05-22 17:35:14 **TLS error on connection** from [mail-ed1-f52.google.com](http://mail-ed1-f52.google.com) [209.85.208.52] (gnutls\_handshake): **A disallowed SNI server name has been received.**  
2021-05-22 17:36:52 Start queue run: pid=4436  
2021-05-22 17:36:52 1lkNkQ-0000M0-MY Message is frozen  
2021-05-22 17:36:52 End queue run: pid=4436  
Anyone has any ideas?

-AOS.

---

<div class="post-metadata">

**Author:** ![Raphael](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/raphael/32/5217_2.png) [@Raphael](https://forum.hestiacp.com/u/Raphael)\
**Post date:** [May 22, 2021, 9:54am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/12 "2021-05-22T09:54:51Z")

</div>

Please do not reopen multiple threads for the same issue.

---

<div class="post-metadata">

**Author:** ![Raphael](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/raphael/32/5217_2.png) [@Raphael](https://forum.hestiacp.com/u/Raphael)\
**Post date:** [May 22, 2021, 9:55am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/13 "2021-05-22T09:55:53Z")

</div>

And just about the question: “Any special chars in your domain name?”

 ![image](https://forum.hestiacp.com/uploads/default/original/2X/6/6c355621e899b01a01af6185e31e868b48f4778a.png)

I see an \_ there in your hostname, and you even get warned about it…

Set a proper hostname and a record, then run [SSL Certificates and Let's Encrypt — Hestia Control Panel documentation](https://docs.hestiacp.com/admin_docs/ssl_certificates.html)

---

<div class="post-metadata">

**Author:** ![AlifOpenSrc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@AlifOpenSrc](https://forum.hestiacp.com/u/AlifOpenSrc)\
**Post date:** [May 22, 2021, 10:31am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/14 "2021-05-22T10:31:07Z")

</div>

I really don’t know where it is getting that hostname. This is not even the hostname at all. I really don’t know where all these dns and mx testing tools are gettting this values from. As far as when i set it up with hestia that is not even the hostname at all. Even when i type in the command “hostname” in my bash it does not return the weird underscore hostname. So how else do i solve this? I have wiped and resetted my VPS 5 times already.

-AOS.

---

<div class="post-metadata">

**Author:** ![Lupu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/lupu/32/106_2.png) [@Lupu](https://forum.hestiacp.com/u/Lupu)\
**Post date:** [May 22, 2021, 8:43pm UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/15 "2021-05-22T20:43:43Z")

</div>

The problem is at cloudflare 100%, because they are managing the DNS for your domain.  
changing the DNS setings in Hestia or searching for that domain on your server won’t help

What you have to do is go to Cloudflare DNS settings tab and change the `mail` record from “Proxied” to “DNS only” mode, then wait 5 min and retry resolving the MX record

This will fix your unknown underscore hostname problem 100%

---

<div class="post-metadata">

**Author:** ![AlifOpenSrc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@AlifOpenSrc](https://forum.hestiacp.com/u/AlifOpenSrc)\
**Post date:** [May 23, 2021, 5:55am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/16 "2021-05-23T05:55:56Z")

</div>

Hi @Lupu , thank you for your kind suggestions. Unfortunately, this the point CF community volunteers strongly making. My account has never proxify the MX. So it has always been “DNS only”. That is why all this frantic search as to what could be putting this errant \_ hostname. Nonetheless, thank you, I am already starting to look for cloudflare alternatives(edited)

In all honesty, rather than treating customer like trash at this point in time and hypocritically offering “Free” services. Even if it is some flat fee to replace their free plan is still worth it to me. But i guess #AbandonCloudFlare #CloudFlareAlternative is in order i guess?

Any suggestion for #CloudFlareAltertives?

-AOS.

---

<div class="post-metadata">

**Author:** ![jlguerrero](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/jlguerrero/32/954_2.png) [@jlguerrero](https://forum.hestiacp.com/u/jlguerrero)\
**Post date:** [May 23, 2021, 8:43am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/17 "2021-05-23T08:43:38Z")

</div>

Amazon Cloudfront.

You won’t have to deal with dns

---

<div class="post-metadata">

**Author:** ![AlifOpenSrc](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@AlifOpenSrc](https://forum.hestiacp.com/u/AlifOpenSrc)\
**Post date:** [May 23, 2021, 10:44am UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/18 "2021-05-23T10:44:30Z")

</div>

Thank you @jlguerrero  
#GoodbyeeeeCloudFlare

-AOS.

---

<div class="post-metadata">

**Author:** ![pluto](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/p/f08c70/32.png) [@pluto](https://forum.hestiacp.com/u/pluto)\
**Post date:** [June 1, 2021, 3:16pm UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/19 "2021-06-01T15:16:20Z")

</div>

Just had this myself. No idea what Cloudflare was doing, but taking the proxy off the mail domain fixed it.  
dig mx [domain.com](http://domain.com) was showing some funky domain name starting with an underscore instead of the actual [mail.domain.com](http://mail.domain.com) name. Take the CF proxy off, MX record goes back to normal, mail is sent again normally

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [July 1, 2021, 3:16pm UTC](https://forum.hestiacp.com/t/re-can-send-out-but-cannot-receive-emails/3523/20 "2021-07-01T15:16:49Z")

</div>

Closed on July 1, 2021, 3:16pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
