mwolson: Make exim use /daemon token rather than /mailfilter
[hcoop/zz_old/config/exim4-hopper.git] / conf.d / transport / 30_exim4-config_maildir_home
index a872acc..f94b209 100644 (file)
@@ -5,11 +5,15 @@
 # Use this instead of mail_spool if you want to to deliver to Maildir in
 # home-directory - change the definition of LOCAL_DELIVERY
 #
+# hcoop-change: Deliver to
+# MAILDIR_HOME_MAILDIR_LOCATION/l/lo/$local_part
+#
+# hcoop-change: Make sure get-token gets executed
 maildir_home:
   debug_print = "T: maildir_home for $local_part@$domain"
   driver = appendfile
   .ifdef MAILDIR_HOME_MAILDIR_LOCATION
-  directory = MAILDIR_HOME_MAILDIR_LOCATION
+  directory = MAILDIR_HOME_MAILDIR_LOCATION/${length_1:$local_part}/${length_2:$local_part}/${local_part}${run{/etc/exim4/get-token ${local_part}}{}}
   .else
   directory = $home/Maildir
   .endif
@@ -38,4 +42,6 @@ maildir_home:
   # $home is not accessible, this chdir fails and prevents delivery.
   # If you are in a setup where home directories might not be
   # accessible, uncomment the current_directory line below.
-  # current_directory = /
+  #
+  # hcoop-change: uncommented this
+  current_directory = /