X-Git-Url: https://git.hcoop.net/hcoop/zz_old/config/exim4-hopper.git/blobdiff_plain/9ce616e33d36b195c6c5e3e00d2dc1c208a824dd..96dd48c0e825a5719009a892425ae019c5959ce9:/conf.d/router/310_exim4-config_virtual_user diff --git a/conf.d/router/310_exim4-config_virtual_user b/conf.d/router/310_exim4-config_virtual_user dissimilarity index 66% index 6ff2d33..b2f28f8 100644 --- a/conf.d/router/310_exim4-config_virtual_user +++ b/conf.d/router/310_exim4-config_virtual_user @@ -1,9 +1,14 @@ -# hcoop-change: Route mail for hosted domains - -virtual_user: - driver = accept - transport = virtual_delivery -# require_files = /home/vmail/${domain}/${local_part} - condition = ${extract{mail}{${tr{${lookup{$local_part@$domain} \ - dbm{/etc/courier/exim.dat} \ - }}{|}{ }}}} +# hcoop-change: Route mail for hosted domains + +virtual_user: + driver = accept + transport = virtual_delivery + # Look up the parameters for this email address, and store them in + # $address_data for later use. If no data exists for this address, + # then "fail", which causes Exim to move on to the next router. + # This allows us to access the contents of $address_data in the + # virtual_delivery transport later on, without having to do multiple + # accesses to exim.dat. + address_data = ${tr{${lookup{$local_part@$domain} \ + dbm{/etc/courier/exim.dat}{$value} fail }} \ + {|}{ }}