Re: [Exim] How to work with an extremely large reject list?

Top Page
Delete this message
Reply to this message
Author: Andreas Metzler
Date:  
To: exim-users
Subject: Re: [Exim] How to work with an extremely large reject list?
On Tue, Nov 25, 2003 at 03:33:32AM -0500, sane@??? wrote:
[...]
> deny senders = /services/mail/exim/etc/sender-reject
> message = I'm sorry but the postmaster has blackholed your domain. I will
> not accept mail from you.


> But the sender-reject list is so long it takes forever so I want to turn it
> into a db lookup:
> deny senders =
> ${lookup{$sender_address_local_part@$sender_address_domain}dbmnz*@{/services
> /mail/exim/etc/sender-reject.db}}
> message = I'm sorry but the postmaster has blackholed your domain. I will
> not accept mail from you.


> A snippit of what is in the base file for sender-reject.db:
> 0-0-7.co.uk
> 0-0.net

[...]
> Try to build dbm and dbmnz, but it does not work can someone point me in the
> right direction?


spec.txt
9. File and database lookups.
10.13 Address lists

deny senders = *@dbmnz;/services/mail/exim/etc/sender-reject.db

and turn sender-reject in something suitable for lsearch (an therfore
db conversion), i.e.
0-0-7.co.uk:
0-0.net:
...

BTW, cdb is supposed to be faster.
                  cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"