[exim] Re: Again Sympa and exim...

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Kirill Miazine
Datum:  
To: exim-users
Betreff: [exim] Re: Again Sympa and exim...


• Marco Gaiarin via Exim-users [2024-11-28 13:23]:
> Mandi! Kirill Miazine via Exim-users
>    In chel di` si favelave...
> 
>>> What would return the lookup if does not find the file ?
>> an empty string. and lookup could be forced to fail, too
> 
> What do you mean? Looking at docs
> (https://www.exim.org/exim-html-current/doc/html/spec_html/ch-generic_options_for_routers.html)
> we read for local_parts:
> 
>   The router is run only if the local part of the address matches the list. See section 3.12 for a list of the order in which preconditions are evaluated, and section 10.6 for a discussion of local part lists.
> 
> so if 'local_parts' return an empy string (eg, there's no match), router get
> simply skipped.
> 
> Apart is the last ('no_more'), and will fail.
> 
> That is exactly the same behaviour of 'require_files', router get skipped...
> so my initial question. ;-)


the question was whether require_files is redundant, though:

> Another question; now i have:
>
>> require_files = /var/lib/sympa/list_data/${local_part}
>> local_parts = ${lookup {${local_part}} dsearch,ret=key,filter=dir {/var/lib/sympa/list_data/} }
>
> It make sense to have both 'local_parts' and 'require_files'? Seems to me
> that 'require_files' is superfluous now...




--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/