Re: [Exim] Exim filter

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Odhiambo G. Washington
Data:  
Para: exim-users
CC: trond
Assunto: Re: [Exim] Exim filter
* Trs <trond@???> [20040609 06:44]: wrote:
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> Is it possible to query a file or database from a system filter?
>
>
> if $sender_address matches any of the addresses in the /usr/exim/someusers
> file do something


Sure. This works.

I am not sure about DB queries. I'd also like to know if that can be
done so that I can eliminate the need to run a query to generate a file
for lookup. Let ms know if you get any clues.


> if foranyaddress /usr/exim/someusers: ($thisaddress matches
> $sender_address)
>
> then


I this rule, which you can refer to ....

if foranyaddress $recipients ("${lookup {$thisaddress} partial-lsearch*@{/usr/local/etc/exim/relay} {1}}" is 1 or
"${lookup {$thisaddress} partial-lsearch*@{/usr/local/etc/exim/static} {1}}" is 1) then
....




Yes, sure.


        cheers
       - wash
+----------------------------------+-----------------------------------------+
Odhiambo Washington                     . WANANCHI ONLINE LTD (Nairobi, KE)  |
<wash at wananchi dot com>              . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223                 . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121                 . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"
                         --from a /. post