On 11/28/24 11:09 AM, Kirill Miazine via Exim-users wrote:
>
> • Leonardo Boselli via Exim-users [2024-11-28 10:00]:
>> On Thu, 28 Nov 2024, Kirill Miazine via Exim-users wrote:
>>> • Marco Gaiarin via Exim-users [2024-11-27 13:19]:
>>
>>>>> It make sense to have both 'local_parts' and 'require_files'? Seems to me
>>>>> that 'require_files' is superfluous now...
>>
>> What would return the lookup if does not find the file ?
>
> an empty string. and lookup could be forced to fail, too
>
My router for sympa (I'm handling sympa for various domains:)
sympa_lists_virtual:
driver=accept
transport=sympa_pipe_virtual
domains = +sympa_virtual
set = r_domain = ${lookup {$domain} dsearch {SYMPA_LIST_DATA}}
set = r_local_part = ${lookup {$local_part} dsearch {SYMPA_LIST_DATA/${r_domain}}}
require_files = SYMPA_LIST_DATA/$domain/$local_part
With that transport for it:
sympa_pipe_virtual:
driver=pipe
command = SYMPA_BIN/queue ${r_local_part}@${r_domain}
return_path_add
delivery_date_add
envelope_to_add
user = SYMPA_USER
group = SYMPA_GROUP
Analogous routers for the bounces and <localpart>+<suffix> handling
Olaf
--
Karlsruher Institut für Technologie (KIT)
Scientific Computing Center (SCC)
Dipl.-Geophys. Olaf Hopp
Zirkel 2
Gebäude 20.20, Raum 158
76131 Karlsruhe
Telefon: +49 721 608-48009
E-Mail: Olaf.Hopp@???
Web: www.scc.kit.edu
Sitz der Körperschaft:
Kaiserstraße 12, 76131 Karlsruhe
KIT - Die Forschungsuniversität in der Helmholtz-Gemeinschaft
--
## 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/