> 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
> lookup does not yield the hostanme, the mail is rejected, but that is not what I
> wanted.
> this is what the line looks like in my /usr/exim/configure
> sender_host_reject_recipients = /etc/mail/block/hosts
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
^^^
Steve
--
Steven A. Reisman (sar@???) Duluth/Superior: 715-395-0311
PressEnter! | River Falls: 715-426-2100 Menomonie: 715-232-0430
P.O. Box 312 | Eau Claire: 715-830-1273 LaCrosse: 608-785-1411
421 N 2nd Street | New Richmond: 715-246-7060 Somerset: 715-246-7060
River Falls, WI 54022 | Twin Cities: 612-436-5254 Red Wing: 715-792-5279
--
*** Exim information can be found at
http://www.exim.org/ ***