Support plus-addressing since wildcards are deprecated
[hcoop/config/exim.git] / conf.d / router / 310_exim4-config_virtual_user
1 # hcoop-change: Route mail for hosted domains
2
3 virtual_user:
4 debug_print = "R: virtual_user for $local_part@$domain"
5 # hcoop-change: deliver $user+$suffix to $user
6 local_part_suffix = +*
7 local_part_suffix_optional
8 driver = accept
9 transport = virtual_delivery
10 # Look up the parameters for this email address, and store them in
11 # $address_data for later use. If no data exists for this address,
12 # then "fail", which causes Exim to move on to the next router.
13 # This allows us to access the contents of $address_data in the
14 # virtual_delivery transport later on, without having to do multiple
15 # accesses to exim.dat.
16 address_data = ${tr{${lookup{$local_part@$domain} \
17 dbm{/etc/courier/exim.dat}{$value} fail }} \
18 {|}{ }}