Hi, I tried this method, but the result does not change
Any solutions else yet, bros !
Hi @cmotna22,
So you have created a Spamhaus DQS Key, modified /etc/exim4/dnsbl.conf
replacing zen.spamhaus.org
by YourDQSKey.zen.dq.spamhaus.net
and it doesn’t work?
Show the output of this command (if it works as expected you should see no response):
Note: Replace YourDQSKey
by your actual DQS Key. If you want to show the output here on the forum, remember to replace your actual DQS Key with a fake DQS Key, noone needs to see it.
dig $(echo '40.107.255.107' | awk -F '.' '{print $4"."$3"."$2"."$1".YourDQSKey.zen.dq.spamhaus.net"}') +nodnssec txt +noall +ans
Also, check whether you have configured /etc/exim4/dnsbl.conf
correctly.
Of course, I take the method on HestiaCP Documents with my own DQS key. However, the server constantly rejected all incoming email. Even though, the imcomming email disappears without any warning email from Microsoft too
Btw, I try your command and here is the result
The error you get is because the command is not on the same line, seems there is a carriage return and it must be only in one line.
dig $(echo '40.107.255.107' | awk -F '.' '{print $4"."$3"."$2"."$1".YourDQSKey.zen.dq.spamhaus.net"}') +nodnssec txt +noall +ans
If you still get an error use this command
dig 107.255.107.40.YourDQSKey.zen.dq.spamhaus.net +nodnssec txt +noall +ans
Also, show the contents of dnsbl.conf
cat -A /etc/exim4/dnsbl.conf
And try to send a new mail from outlook and check the exim4 log:
Note: replace [email protected]
by the email address that you use to send the mail:
exigrep '<= [email protected]' /var/log/exim4/mainlog* --no-pager
Seems you are sending the mail to welegance.vn
and the MX record of that domain points to a mail server using Postfix, could you please explain it?
Yesterday, after trying multiple times with failed results, I changed the DNS record for mail service back to my previous email server provider. My contract of mail server service is end soon so I want to self-host my own mail server. However, it has not been ready yet. Outgoing mail is working fine
Here is the result of your cli you gave me
The contents of dnsbl.conf is here
Here is the log of new send message
Ok.
Great, that is the expected output (nothing).
Please, instead of using nano to view the file, use the command I posted:
cat -A /etc/exim4/dnsbl.conf
Also try the exigrep
command, you should still have the logs of your previous sent mails.
I have just tried your cli, here is the result
I sent the screenshot of exim4 log by editing the last comment
But that doesn’t show a problem with dnsbl…
Show the output of this command:
ls -l /etc/exim4/domains/micro365vn.com/
Yeah, I saw it.
With the info you gave, I see no problem with DNSBL conf but seems you have a conf problem, at least for micro365vn.com
mail domain.
The command is not eximgre
p, it is exigrep
The permissions look fine, show the output of these commands:
lsof -Pn +c0 -i:25,465,587 -sTCP:LISTEN
namei -mo /etc/exim4/domains/micro365vn.com/ip
The command is not eximgre
p, it is exigrep
=> My bad
The permissions look fine, show the output of these commands:
=> Here is the results
1st command
2nd command
Why is /home/admin/
owned by root:root? It should be admin:admin, did you change the perms, owner or group manually?
getfacl /home/admin/
With the chown command you have messed the perms even more
I don’t think it will fix all the mess but try this command:
v-rebuild-user admin
Yeah, I am done.
Anyway, do I need to rebuild my VM to fix this
Try this command:
v-rebuild-all admin
That’s because the exim error but nothing related to DNSBL.