Re: [Exim] Prohibition message lookups

Pàgina inicial
Delete this message
Reply to this message
Autor: dman
Data:  
A: exim-users
Assumpte: Re: [Exim] Prohibition message lookups
On Sat, Mar 23, 2002 at 09:20:22AM -0600, Paul Wilson wrote:
| This works great for IP addresses listed in my hostblock file.

|
| 213.207.11.159: Spam blocked

|
| host_reject_recipients = partial-lsearch;/usr/exim/files/hostblock
| prohibition_message =
| ${lookup{$sender_host_address}lsearch{/usr/exim/files/hostblock}{$value}
| fail}

|
| However, I need to be able to give a custom message for hostnames as
| well. e.g.:

|
| *.flonetwork.com: Flonetwork is a spamhaus.

|
| They still get blocked, of course, because of host_reject_recipients,
| but the custom prohibition_message doesn't get there.

|
| Since $sender_host_address doesn't match this, I tried using an or


How about trying a partial-lsearch in your $lookup? The search above
it that matched was partial-lsearch.

HTH,
-D

--

"640K ought to be enough for anybody" -Bill Gates, 1981