Commit | Line | Data |
---|---|---|
725c9874 | 1 | |
d2b0a567 | 2 | ### router/600_exim4-config_userforward |
725c9874 | 3 | ################################# |
4 | ||
5 | # This router handles forwarding using traditional .forward files in users' | |
d2b0a567 | 6 | # home directories. It also allows mail filtering with a forward file |
7 | # starting with the string "# Exim filter" or "# Sieve filter". | |
725c9874 | 8 | # |
9 | # The no_verify setting means that this router is skipped when Exim is | |
10 | # verifying addresses. Similarly, no_expn means that this router is skipped if | |
11 | # Exim is processing an EXPN command. | |
12 | # | |
13 | # The check_ancestor option means that if the forward file generates an | |
14 | # address that is an ancestor of the current one, the current one gets | |
15 | # passed on instead. This covers the case where A is aliased to B and B | |
16 | # has a .forward file pointing to A. | |
17 | # | |
18 | # The four transports specified at the end are those that are used when | |
19 | # forwarding generates a direct delivery to a directory, or a file, or to a | |
20 | # pipe, or sets up an auto-reply, respectively. | |
d21ec910 | 21 | # |
96dd48c0 | 22 | # hcoop-change: Use unix_domains rather than local_domains. Use |
23 | # .public/.forward rather than .forward. Do not verify the owner and | |
24 | # group of the .forward file. | |
11dd947c | 25 | |
725c9874 | 26 | userforward: |
27 | debug_print = "R: userforward for $local_part@$domain" | |
28 | driver = redirect | |
11dd947c | 29 | domains = +unix_domains |
1122052b CE |
30 | # hcoop-change: deliver $user+$suffix to $user |
31 | local_part_suffix = +* | |
32 | local_part_suffix_optional | |
725c9874 | 33 | check_local_user |
96dd48c0 | 34 | check_owner = false |
35 | check_group = false | |
639f204c | 36 | file = $home/.public/.forward |
37 | require_files = $local_part:$home/.public/.forward | |
725c9874 | 38 | no_verify |
39 | no_expn | |
40 | check_ancestor | |
41 | allow_filter | |
d2b0a567 | 42 | forbid_smtp_code = true |
725c9874 | 43 | directory_transport = address_directory |
44 | file_transport = address_file | |
45 | pipe_transport = address_pipe | |
46 | reply_transport = address_reply | |
47 | skip_syntax_errors | |
48 | syntax_errors_to = real-$local_part@$domain | |
49 | syntax_errors_text = \ | |
50 | This is an automatically generated message. An error has\n\ | |
51 | been found in your .forward file. Details of the error are\n\ | |
52 | reported below. While this error persists, you will receive\n\ | |
53 | a copy of this message for every message that is addressed\n\ | |
54 | to you. If your .forward file is a filter file, or if it is\n\ | |
55 | a non-filter file containing no valid forwarding addresses,\n\ | |
56 | a copy of each incoming message will be put in your normal\n\ | |
57 | mailbox. If a non-filter file contains at least one valid\n\ | |
58 | forwarding address, forwarding to the valid addresses will\n\ | |
59 | happen, and those will be the only deliveries that occur. | |
60 |