Office 365 users recognized as spam

I have the problem that even office 365 users are declared as SPAM on my server, how can I change the SPAM level?

Check in de logs why they are recognized as spam

in which log file should I look for it exactly

when i send emails from GMX Mail, for example, i get the following message

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of
its recipients. This is a permanent error.

The following address failed:

[email protected]:
SMTP error from remote server for RCPT TO command, host: mail.domain.tdl (XX.XX.XX.XX) reason: 550-Rejected because 212.227.15.15 is in a black list at zen.spamhaus.org
550 Error: open resolver; DNSBL Error Code - Open/public resolver - The Spamhaus Project

/var/log/exim4/mainlog

2023-11-20 20:43:22 no host name found for IP address 91.92.246.75

Exim uses a block list zen.spamhaus.org to fight against spam but spamhaus doesn’t allow public resolvers querying their DNS servers so, seems you are using a public resolver like 1.1.1.1.

Options to solve the issue:

1.- I don’t recommended this option. Remove zen.spamhaus.org from /etc/exim4/dnsbl.conf and restart exim systemctl restart exim4

2.- Use your own dns resolver or use one that is not blocked by spamhaus.

If you want to test whether your current dns resolver will work, execute this command:

dig (echo '212.227.15.15' | awk -F '.' '{print $4"."$3"."$2"."$1".zen.spamhaus.org"}') +short

If you see nothing, all is good, your dns resolver is not being blocked. If you see an output like 127.255.255.254 then your dns resolver is blocked by spamhaus.

If you want to test whether a resolver will work, add @dns_resolver_ip to the dig command, example using 1.1.1.1.

dig @1.1.1.1 (echo '212.227.15.15' | awk -F '.' '{print $4"."$3"."$2"."$1".zen.spamhaus.org"}') +short

3.- If you don’t want to install your own dns resolver or use another public resolver and want to keep your current one, you can request a query key from spamhaus (it is free) and the doc to request and use it is here:

Email and mail server | Hestia Control Panel

1 Like

spam problems are solved but roundcube error when replying to the mail was a modsecurty error