Re: [exim] Max length of a filter line

Góra strony
Delete this message
Reply to this message
Autor: W B Hacker
Data:  
Dla: exim users
Temat: Re: [exim] Max length of a filter line
Sandro Tosi wrote:

*snip*

> into several lines a regexp match? something like
>
> if $sender_address matches "addr1@???|addr2@???|
> addr3@???|.....) then ...
>
> or something else?
>


These aren't in 'filter rules' per se ... just ordinary acl clauses that act
during smtp-time:

'White' listing:

condition = ${lookup {$sender_address}lsearch{/path/to/flatfile}{yes}{no}}



'Black' Listing:

condition = ${lookup {$sender_address}lsearch{/path/to/flatfile}{yes}{no}}

=====

List format is simply one entry per line, no keys or such.

My server configuration is ordinarily fairly SQL-centric, but for these two,
flat-files are simply easier to maintain externally and distribute among servers
with minimal fuss.

- Make the recipient part of the /path/to and you have a per-user feature.

- Use a dotfile in their own mailstore, and it becomes a user-alterable,
per-user one...

Lots more ways ....

HTH,

Bill