[exim] Exim system filter lookup search

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Brent Jones
Data:  
Para: exim-users
Assunto: [exim] Exim system filter lookup search
Exim users,
I'm trying to write a system filter that saves all e-mail that comes
from certain domains. The list of domains is rather large, and I want
to do a lookup to a file from within the system filter file.
However, when I look up the file, it never matches a record, and does
not save a copy to another destination.

Example:

if $sender_address_domain contains
${lookup{$sender_address_domain}lsearch*{/etc/exim/domains}}
then
save /usr/exim/mail/
endif

The /etc/exim/domains file contains various domain in a list. I know
lsearch is not supposed to be used as a list, but rather a key lookup.
But I am at a loss to read in a list any other method.

Does anyone have any thoughts on that system filter rule?

Brent Jones
brent [at] servuhome [dot] net





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.