-# hcoop-change: This transport is used to deliver mail to virtual
-# mailboxes (i.e. email accounts which have been granted to non-hcoop
-# members by the owner of the domain)
-
-virtual_delivery:
- debug_print = "T: virtual_delivery for $local_part@$domain"
- driver = appendfile
- user = ${extract{uid}{${tr{${lookup{$local_part@$domain} \
- dbm{/etc/courier/exim.dat} \
- }}{|}{ }}}}
- group = mail
- mode = 0660
- mode_fail_narrower = false
- envelope_to_add
- return_path_add
- directory = ${extract{mail}{${tr{${lookup{$local_part@$domain} \
- dbm{/etc/courier/exim.dat} \
- }}{|}{ }}}}${run{/etc/exim4/get-token \
- ${extract{uid}{${tr{${lookup{$local_part@$domain} \
- dbm{/etc/courier/exim.dat} \
- }}{|}{ }}}}}{}}
- maildir_format
+# hcoop-change: This transport is used to deliver mail to virtual
+# mailboxes (i.e. email accounts which have been granted to non-hcoop
+# members by the owner of the domain)
+
+virtual_delivery:
+ debug_print = "T: virtual_delivery for $local_part@$domain"
+ driver = appendfile
+ user = ${extract{uid}{$address_data}}
+ group = nogroup
+ mode = 0600
+ mode_fail_narrower = false
+ envelope_to_add
+ return_path_add
+ directory = ${extract{mail}{$address_data}}${run{/etc/exim4/get-token \
+ ${extract{uid}{$address_data}}}{}}
+ maildir_format