Issue with Receiving Emails from Gmail on HestiaCP

Hello everyone,

I am experiencing an issue with my HestiaCP setup on Ubuntu 22.04. Emails sent from Gmail are not being received in Roundcube. However, emails from other providers are coming through without any problems.

Has anyone else faced this issue? What could be the cause and how can I resolve it?

Thank you for your help!

Hi @VPS21,

You should start checking the Exim’s logs.

If you want to see the logs for mails received from gmail accounts:

exigrep --no-pager '<=.*@gmail.com' /var/log/exim4/mainlog
2 Likes

The command you provided is not showing any output.

I checked /var/log/exim4/mainlog and it indicates that emails are being blocked by zen.spamhaus.org. Is this a Gmail IP issue? When I checked the Gmail IPs through https://check.spamhaus.org/, it showed no issues. So, is the problem something else?

root@cp:~# sudo tail -f /var/log/exim4/mainlog
2024-05-29 03:55:23 1sC75D-0000iA-SK Message is frozen
2024-05-29 03:55:23 End queue run: pid=22115
2024-05-29 03:55:53 H=mail-ej1-f53.google.com [209.85.218.53] X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no SNI=mail.domain.com F=<[email protected]> rejected RCPT <[email protected]>: Rejected because 209.85.218.53 is in a black list at zen.spamhaus.org
2024-05-29 03:56:01 H=mail-pj1-f50.google.com [209.85.216.50] X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no SNI=mail.domain.com F=<[email protected]> rejected RCPT <[email protected]>: Rejected because 209.85.216.50 is in a black list at zen.spamhaus.org
2024-05-29 03:56:39 H=mail-qk1-f178.google.com [209.85.222.178] X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no SNI=mail.domain.com F=<[email protected]> rejected RCPT <[email protected]>: Rejected because 209.85.222.178 is in a black list at zen.spamhaus.org
2024-05-29 03:58:12 TLS error on connection from [198.199.117.10] (gnutls_handshake): An unexpected TLS packet was received.
2024-05-29 04:02:01 exim 4.95 daemon started: pid=23168, -q30m, listening for SMTP on port 25 (IPv4) port 587 (IPv4) and for SMTPS on port 465 (IPv4)
2024-05-29 04:02:01 Start queue run: pid=23169
2024-05-29 04:02:01 1sC75D-0000iA-SK Message is frozen
2024-05-29 04:02:01 End queue run: pid=23169
2024-05-29 04:02:13 H=mail-oa1-f46.google.com [209.85.160.46] X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no SNI=mail.domain.com F=<[email protected]> rejected RCPT <[email protected]>: Rejected because 209.85.160.46 is in a black list at zen.spamhaus.org

Previously, my emails were received correctly. At that time, ClamAV was not installed. I needed ClamAV, so I reinstalled Ubuntu 22.04 and HestiaCP. Now I am facing this issue. What should I do now? Thank you for your help.

What DNS resolver are you using? Spamhaus blocks many public resolvers such as Cloudflare (1.1.1.1) and Google (8.8.8.8) by returning listing for all queries.

1 Like