My server is not acepting emails. It was working good. but the people who send me emails are reicibing this. Remote server returned message detected as spam → 550 Rejected because 40.92.20.101 is in a black list at zen.spamhaus.org;Error: open resolver; https://check.spamhaus.org/returnc/pub/142.93.57.224/
I went to spamhaus and it tells that is a mail server config. and I didnt touch anting.
I chech the email ports and all is open.
last email I reicibed was 16-04-2024.
Only I can send Emails.
You are using an open resolver and Spamhaus is blocking it.
You could replace your current name servers by ones that are not being blocked by Spamhaus like Control-D (76.76.2.0 and 76.76.10.0). You could also use your own resolver or follow this doc
If you want to change the name servers used by your server, seems it is using systemd-resolved so you should edit file /etc/systemd/resolved.conf to modify the servers and restart the service after that systemctl restart systemd-resolved
ls -l /etc/resolv.conf
cat /etc/resolvconf/resolv.conf.d/head
systemctl status systemd-resolved --no-pager -l
systemctl status resolvconf --no-pager -l