
Originally Posted by
sneader
Well, after plowing through the Exim documentation and not finding any clues, I started searching Google some more and didn't find anything, then I searched the Exim mailing list archives and found this clue:
"net-lsearch is for 'plain IP lookups' but not masked... What you are really wanting (for a MIX of masked ranges and single IPs) is the net-iplsearch lookup type:
drop hosts = net-iplsearch;/path/to/ipnets.blacklist"
So, I tried net-iplsearch and it still did not work. But... remember my ACL looks like this...
HOST_WHITELIST=/etc/exim/acls/whitelist_from
hostlist white_list_from = net-lsearch;HOST_WHITELIST
# Accept mail from hosts in the White List
accept hosts = +white_list_from
So, I decided to cut out all these pointers, and just do it like this (similar to the Exim mailing list example above):
# HOST_WHITELIST=/etc/exim/acls/whitelist_from (commented out)
# hostlist white_list_from = net-lsearch;HOST_WHITELIST (commented out)
# Accept mail from hosts in the White List
accept hosts = net-iplsearch;/etc/exim/acls/whitelist_from
BINGO!!! It works like a champ!
I never went back to see if the basic net-lsearch would have worked, without the pointers that I stopped using, but I'm just happy it's working!! Why ask why, right?
- Scott
where in the exim.conf did you insert the code :
Code:
# Accept mail from hosts in the White List
accept hosts = net-iplsearch;/etc/exim/acls/whitelist_from
Mickalo