Re: [Exim] merging key and value lookup w/ lsearch

Etusivu
Poista viesti
Vastaa
Lähettäjä: Dave C.
Päiväys:  
Vastaanottaja: Rejo Zenger
Kopio: exim-users
Aihe: Re: [Exim] merging key and value lookup w/ lsearch
On Fri, 28 Jun 2002, Rejo Zenger wrote:

> Hi,
>
> I have two files: #1 containing only addresses, one on a line and #2
> containing addresses and an error message. The files are used to block
> email from certain senders with the ACL:
>
>   # Deny mail from certain senders.
>   deny     senders      = lsearch;/etc/exim/sender_reject
>            message      = ${lookup{$sender_address}lsearch\
>                                 {/etc/exim/sender_reject.message}\
>                                 {$value}\
>                                 {Administrative [...]))
>            log_message  = rejection based on /etc/exim/sender_reject

>
> Now, is there a way to combine these two files? So that there's only one
> file containing addresses and reason (like #2).


You should be able to use the second file for the lsearch as well,
without any modifications.

>
> On a related note, how do I get newlines in the error message? In
> version 3 I was used to the vertical bar "|", but that doesn't seem to
> work anymore.
>
> TIA,
>
>         -Rejo.

>
>
>
> --
> # rejo@???, pgp: see headers, http://www.xs4all.nl/~sister
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
>