Autor: Marc Perkel
Data:
Para: W B Hacker
CC: exim users
Asunto: Re: [exim] Really Cool Trick
Here's my latest code to make it work. Obviously it is specific to my
system but can be adapted.
Router:
virtual_localuser_default_foldermode:
driver = accept
require_files = /vhome/$domain/home/default/$local_part
retry_use_local_part
transport = virtual_localuser_default_foldermode
user = root
Transport:
virtual_localuser_default_foldermode:
driver = appendfile
allow_symlink
create_directory
delivery_date_add
directory_mode = 600
envelope_to_add
file = /vhome/$domain/home/default/$local_part
group = mail
mode = 600
return_path_add
user = ${extract{uid}{${stat:/vhome/$domain/home/default/$local_part}}}
Note that the folder must already exists.