725c9874 |
1 | |
2 | ### transport/30_exim4-config_maildir_home |
3 | ################################# |
4 | |
5 | # Use this instead of mail_spool if you want to to deliver to Maildir in |
6 | # home-directory - change the definition of LOCAL_DELIVERY |
7 | # |
8f42d430 |
8 | # hcoop-change: Deliver to MAILDIR_HOME_MAILDIR_LOCATION/$local_part |
5092a970 |
9 | # |
10 | # hcoop-change: Make sure get-token gets executed |
725c9874 |
11 | maildir_home: |
12 | debug_print = "T: maildir_home for $local_part@$domain" |
13 | driver = appendfile |
14 | .ifdef MAILDIR_HOME_MAILDIR_LOCATION |
5092a970 |
15 | directory = MAILDIR_HOME_MAILDIR_LOCATION/$local_part${run{/etc/exim4/get-token ${local_part}}{}} |
725c9874 |
16 | .else |
17 | directory = $home/Maildir |
18 | .endif |
19 | .ifdef MAILDIR_HOME_CREATE_DIRECTORY |
20 | create_directory |
21 | .endif |
22 | .ifdef MAILDIR_HOME_CREATE_FILE |
23 | create_file = MAILDIR_HOME_CREATE_FILE |
24 | .endif |
25 | delivery_date_add |
26 | envelope_to_add |
27 | return_path_add |
28 | maildir_format |
29 | .ifdef MAILDIR_HOME_DIRECTORY_MODE |
30 | directory_mode = MAILDIR_HOME_DIRECTORY_MODE |
31 | .else |
32 | directory_mode = 0700 |
33 | .endif |
34 | .ifdef MAILDIR_HOME_MODE |
35 | mode = MAILDIR_HOME_MODE |
36 | .else |
37 | mode = 0600 |
38 | .endif |
39 | mode_fail_narrower = false |
d2b0a567 |
40 | # This transport always chdirs to $home before trying to deliver. If |
41 | # $home is not accessible, this chdir fails and prevents delivery. |
42 | # If you are in a setup where home directories might not be |
43 | # accessible, uncomment the current_directory line below. |
8f42d430 |
44 | # |
45 | # hcoop-change: uncommented this |
46 | current_directory = / |