Commit | Line | Data |
---|---|---|
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 | # | |
dfbd9b51 CE |
8 | # hcoop-change: Deliver to |
9 | # MAILDIR_HOME_MAILDIR_LOCATION/l/lo/$local_part | |
10 | # | |
11 | # hcoop-change: Make sure get-token gets executed | |
725c9874 | 12 | maildir_home: |
13 | debug_print = "T: maildir_home for $local_part@$domain" | |
14 | driver = appendfile | |
15 | .ifdef MAILDIR_HOME_MAILDIR_LOCATION | |
dfbd9b51 | 16 | directory = MAILDIR_HOME_MAILDIR_LOCATION/${length_1:$local_part}/${length_2:$local_part}/${local_part}${run{/etc/exim4/get-token ${local_part}}{}} |
725c9874 | 17 | .else |
18 | directory = $home/Maildir | |
19 | .endif | |
20 | .ifdef MAILDIR_HOME_CREATE_DIRECTORY | |
21 | create_directory | |
22 | .endif | |
23 | .ifdef MAILDIR_HOME_CREATE_FILE | |
24 | create_file = MAILDIR_HOME_CREATE_FILE | |
25 | .endif | |
26 | delivery_date_add | |
27 | envelope_to_add | |
28 | return_path_add | |
29 | maildir_format | |
30 | .ifdef MAILDIR_HOME_DIRECTORY_MODE | |
31 | directory_mode = MAILDIR_HOME_DIRECTORY_MODE | |
32 | .else | |
33 | directory_mode = 0700 | |
34 | .endif | |
35 | .ifdef MAILDIR_HOME_MODE | |
36 | mode = MAILDIR_HOME_MODE | |
37 | .else | |
38 | mode = 0600 | |
39 | .endif | |
40 | mode_fail_narrower = false | |
d2b0a567 | 41 | # This transport always chdirs to $home before trying to deliver. If |
42 | # $home is not accessible, this chdir fails and prevents delivery. | |
43 | # If you are in a setup where home directories might not be | |
44 | # accessible, uncomment the current_directory line below. | |
dfbd9b51 CE |
45 | # |
46 | # hcoop-change: uncommented this | |
47 | current_directory = / | |
48 | # hcoop-change: Try 20 times rather than 10 before deferring. | |
49 | maildir_retries = 20 |