summaryrefslogtreecommitdiff
blob: 72b048632a6a9811b4cb396da9c9e7a1cd57845e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
diff -urN exim-4.69.orig/src/configure.default exim-4.69/src/configure.default
--- exim-4.69.orig/src/configure.default	2008-05-05 10:17:44.000000000 +0100
+++ exim-4.69/src/configure.default	2008-05-05 10:18:26.000000000 +0100
@@ -592,6 +592,22 @@
   pipe_transport = address_pipe
   reply_transport = address_reply
 
+# This router runs procmail if users have a .procmailrc file
+procmail:
+  check_local_user
+  driver = accept
+  transport = procmail_pipe
+  require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
+  no_verify
+ 
+# This router runs maildrop if users have a .mailfilter file
+maildrop:
+  check_local_user
+  driver = accept
+  transport = maildrop_pipe
+  require_files = ${local_part}:+${home}:+${home}/.mailfilter:+/usr/bin/maildrop
+  no_verify
+
 
 # This router matches local user mailboxes. If the router fails, the error
 # message is "Unknown user".
@@ -600,7 +616,7 @@
 # or "+" characters as if the suffixes did not exist, uncomment the two local_
 # part_suffix options. Then, for example, xxxx-foo@your.domain will be treated
 # in the same way as xxxx@your.domain by this router.
-
+m
 localuser:
   driver = accept
   check_local_user
@@ -676,6 +692,21 @@
 address_reply:
   driver = autoreply
 
+# This transport is used for procmail
+procmail_pipe:
+  driver = pipe
+  command = "/usr/bin/procmail -d ${local_part}"
+  return_path_add
+  delivery_date_add
+  envelope_to_add
+
+# This transport is used for courier-maildrop filtering (Maildir filter system)
+maildrop_pipe:
+  driver = pipe
+  command = "/usr/bin/maildrop -d ${local_part}"
+  return_path_add
+  delivery_date_add
+  envelope_to_add
 
 
 ######################################################################