On Sat, 13 Jun 1998, Steven A. Reisman wrote:
> pollywog wrote:
> > I set sender_host_reject_recipients (Exim 1.92) and it seemed to work well
> > until I discovered that a reverse lookup is done on the sender IP and if the
> > this is what the line looks like in my /usr/exim/configure
>
> > sender_host_reject_recipients = /etc/mail/block/hosts
pollywog, you'll have to use sender_net<etc> to have a linear text list like
this.
> You have to tell exim how to search the file. For a "flat file" you'd
> do a linear search, so your config statement should be:
>
> sender_host_reject_recipients = lsearch;/etc/mail/block/hosts
> ^^^^^^^
> > and /etc/mail/block/hosts is just a listing of host IP addresses that should be
> > rejected, with one IP address on each line.
>
> If your file is large, you should consider using "exim_builddbm" to
> construct a dbm file. Then your option would be:
>
> sender_host_reject_recipients = dbm;/etc/mail/block/hosts
> ^^^
good point: a DBM database will be a lot faster if the list is long.
Paul
----
:r~/humour/signature
:wq
--
*** Exim information can be found at
http://www.exim.org/ ***