Cant receive mail from gmail " 554 5.7.1 : Relay access denied"

Hi there,

Im using brevo mail relay and I can send mail to my gmail but I can’t receive one, I’m getting this error " 554 5.7.1 : Relay access denied" when I send one from gmail to my mail. Here is log

$ tail -f -s0.1 /var/log/exim4/mainlog
2025-06-10 11:11:57 End queue run: pid=1218117
2025-06-10 11:25:51 TLS error on connection from cloud-scanner-260b560e.internet-research-project.net (masscan) [172.104.24.197] (gnutls_handshake): The TLS connection was non-properly terminated.
2025-06-10 11:41:57 Start queue run: pid=1219994
2025-06-10 11:41:57 End queue run: pid=1219994
2025-06-10 12:00:07 1uOxeB-0000000588J-2lFU <= [email protected] H=localhost (webmail.tech-portal.me) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=609 [email protected]
2025-06-10 12:00:07 1uOxeB-0000000588J-2lFU => [email protected] R=send_via_smtp_relay T=smtp_relay_smtp H=smtp-relay.brevo.com [1.179.115.1] X=TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=yes A=smtp_relay_login K C="250 2.0.0 OK: queued as <[email protected]>"
2025-06-10 12:00:07 1uOxeB-0000000588J-2lFU Completed
2025-06-10 12:11:57 Start queue run: pid=1223637
2025-06-10 12:11:57 End queue run: pid=1223637
2025-06-10 12:18:37 TLS error on connection from azpdssbc3btd.stretchoid.com [20.65.194.188] (gnutls_handshake): An unexpected TLS packet was received.

MX record for your domain tech-portal.me points to mailserver.me that is using an old version of Vesta. Maybe you want to modify the MX record of your domain to point to mail.tech-portal.me

Ok I edited records to pint to mail.tech-portal.me but now I have


550: Rejected because 66.163.191.82 is in a black list at zen.spamhaus.org

That error occurs because your server is using an open DNS resolver, such as 1.1.1.1, 9.9.9.9, etc.

To fix it check out this post:

Ok so I added DNS=76.76.2.0 76.76.10.0 to /etc/systemd/resolved.conf and I send mail~from gmail and it worked so I tried with yahoo but got this error

No mx record found for domain=petch-portal.me

What do you think ?

Edit: Oh never mind it’s my typo in email address

Thanak you very muxh @sahsanu

2 Likes