summaryrefslogtreecommitdiff
path: root/mail-mta/exim/files/exim-4.69-r1.27021.patch
blob: 804e16d6acde4cfbe8386751e3c538d35256d7bc (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
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".
@@ -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
 
 
 ######################################################################