Can you have Exim also check RBL's on smtp level?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
14,986
Location
Maastricht
I was just wondering and did some Zenhaus tests and then I encountered this result:
This email was delivered, but it should have been rejected during the SMTP session. Your MX is not configured to use SMTP-level block listing for the block list for this test.

Seems this is normal with panels, because there is the same kind of quetsion on the CP forums (click).

This makes me wonder why an MTA should try to deliver mail that is on an RBL, or why it should and now I have 2 questions.

1.) Is it wise to reject during SMTP settings, so maybe blacklisted servers also do not get our mail addresses for example? Or is it better to not use SMTP level block listing and why not.

2.) If it's wise to do, how do we implement/activate this in Directadmin?
 
Yes, rejecting at SMTP time is generally preferable: you avoid accepting then bouncing, reduce backscatter, and stop the session before DATA. The trade-off is false positives, so use reputable DNSBLs, whitelist known senders, and never block authenticated/local traffic. In Exim, add a dnslists check in an ACL such as acl_smtp_rcpt, or earlier in acl_smtp_connect, with a clear deny message. For DirectAdmin, apply the ACL customization through its supported Exim override/local config mechanism if available; otherwise edit exim.conf carefully after backing it up. Validate with exim -bh and reload Exim. Avoid relying on one RBL without monitoring.
 
Exim blocking not good enough?

I have in /etc/exim.strings.conf.custom

RBL_DNS_LIST==b.barracudacentral.org : zen.spamhaus.org : bl.spamcop.net
 
Exim blocking not good enough?
Yes incoming, the question was at SMTP time so outgoing. ;)
I have a way more extended list in the exim.strings.conf.custom which works very well so that is not the problem.

I was wondering if it would be a good idea to stop messages on SMTP time as Spamhaus detected this was not the case. And looking at point 1 of my question, it might be a good idea to do that, also since Spamhaus thinks it's a good idea.

By the way... if you have a bit of mail going on, then you almost sure might run into the Spamhaus limits if you're using it like that. Check that in the logs.
You have to put your spamhaus key like this YOUR_DQS_KEY.zen.dq.spamhaus.net in that file if you have a DQS key. This was AI answer, so might also be the .org domein, I'm not sure, I've got it in Spamassassin at the moment.

Anyway, RBL's on SMTP, that is the question. ;)
 
Back
Top