Mercurial > hg > mlmmj
annotate README.exim4 @ 919:e371a935a0cd default tip master
Added tag RELEASE_1_3_0 for changeset 570dd6d4942b
author | Ben Schmidt |
---|---|
date | Thu, 25 May 2017 09:08:47 +1000 |
parents | dfc9ab125fd4 |
children |
rev | line source |
---|---|
495
c5e975579329
patch for warning people already subbed they are and same with unsub
mmj
parents:
473
diff
changeset
|
1 |
497 | 2 README.exim4 May 7th 2005 |
473 | 3 |
4 | |
497 | 5 This is a step-by-step guide to run mlmmj with Exim4. The most current version |
6 of this can be found on http://plonk.de/sw/mlmmj/README.exim4. | |
473 | 7 |
8 | |
9 | |
10 Notes: | |
11 - We assume that you have a user and group called mlmmj to use with mlmmj | |
543 | 12 - The exim user needs rx access rights to mlmmj's spool directory. (If you |
13 don't want that, see below.) The easiest way is | |
14 "chmod 755 /path/to/mlmmj/spool", if it's ok that local users can see which | |
15 lists there are. | |
16 Note that the owner of the mlmmj spool must still be the mlmmj user (and | |
17 this user must have at least x rights to the directories below). | |
18 - Existence of mailing lists is automatically checked ($listdir) and you | |
497 | 19 don't need to put anything into your aliases file |
20 - If you want VERP to be done by your MTA, follow the instructions below and | |
21 put an empty file named verp into the control directory of your lists | |
473 | 22 |
23 | |
24 1. In the main configuration section: | |
25 | |
26 MLMMJ_HOME=/var/spool/mlmmj | |
543 | 27 domainlist mlmmj_domains = list.example.net |
473 | 28 |
29 | |
30 2. Add +mlmmj_domains to relay_to_domains: | |
31 | |
32 domainlist relay_to_domains = other.domain : +mlmmj_domains | |
33 | |
34 | |
497 | 35 3. mlmmj is barely interested in delay warnings, so add this in the main |
36 configuration: | |
37 | |
38 delay_warning_condition = ${if match_domain{$domain}{+mlmmj_domains}{no}{yes}} | |
39 | |
40 | |
41 4. In the routers section (before the dnslookup router, preferably at the | |
473 | 42 beginning): |
43 | |
44 mlmmj_router: | |
45 driver = accept | |
46 domains = +mlmmj_domains | |
543 | 47 require_files = MLMMJ_HOME/${lc::$local_part} |
48 # Use this instead, if you don't want to give Exim rx rights to mlmmj spool. | |
49 # Exim will then spawn a new process running under the UID of "mlmmj". | |
50 #require_files = mlmmj:MLMMJ_HOME/${lc::$local_part} | |
473 | 51 local_part_suffix = +* |
52 local_part_suffix_optional | |
495
c5e975579329
patch for warning people already subbed they are and same with unsub
mmj
parents:
473
diff
changeset
|
53 headers_remove = Delivered-To |
c5e975579329
patch for warning people already subbed they are and same with unsub
mmj
parents:
473
diff
changeset
|
54 headers_add = Delivered-To: $local_part$local_part_suffix@$domain |
473 | 55 transport = mlmmj_transport |
56 | |
57 | |
497 | 58 If you want VERP to be done by your MTA, also add this: |
59 | |
60 verp_router: | |
61 driver = dnslookup | |
543 | 62 domains = !+mlmmj_domains |
497 | 63 # we only consider messages sent in through loopback |
64 condition = ${if eq{$sender_host_address}{127.0.0.1}{yes}{no}} | |
65 ignore_target_hosts = <; 0.0.0.0; 127.0.0.0/8; ::1/128; fe80::/10; ff00::/8 | |
66 # only the un-VERPed bounce addresses are handled | |
67 senders = \N^.+\+bounces-\d+@.+\N | |
68 transport = verp_smtp | |
69 | |
70 | |
71 To prevent temporary errors for not-existing lists, add !+mlmmj_domains to the | |
72 domains condition of the dnslookup router: | |
73 | |
74 dnslookup: | |
75 driver = dnslookup | |
76 domains = !+mlmmj_domains : !+local_domains | |
77 [...] | |
78 | |
748
dfc9ab125fd4
Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents:
543
diff
changeset
|
79 5. Somewhere in the transports section. (Change the path of mlmmj-receive if you |
497 | 80 don't use the default location!): |
473 | 81 |
82 mlmmj_transport: | |
83 driver = pipe | |
84 return_path_add | |
85 user = mlmmj | |
86 group = mlmmj | |
87 home_directory = MLMMJ_HOME | |
88 current_directory = MLMMJ_HOME | |
748
dfc9ab125fd4
Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents:
543
diff
changeset
|
89 command = /usr/local/bin/mlmmj-receive -F -L MLMMJ_HOME/${lc:$local_part} |
473 | 90 |
497 | 91 If you want VERP to be done by your MTA, also add this: |
473 | 92 |
497 | 93 verp_smtp: |
94 driver = smtp | |
95 # put recipient address into return_path | |
543 | 96 return_path = ${quote_local_part:${local_part:$return_path}}-\ |
97 ${original_local_part}=${original_domain}@\ | |
98 ${domain:$return_path} | |
497 | 99 # must restrict to one recipient at a time |
100 max_rcpt = 1 | |
101 # Errors-To: may carry old return_path | |
102 headers_remove = Errors-To | |
103 headers_add = Errors-To: $return_path | |
104 | |
105 | |
106 6. Test your setup with | |
473 | 107 |
108 $ exim -bt mlmmj-test@your.list.domain | |
109 mlmmj-test@your.list.domain | |
110 router = mlmmj_router, transport = mlmmj_transport | |
111 | |
112 If you get different output, run it with -d to see what's going wrong. | |
113 If not, you're done! | |
114 | |
115 | |
116 | |
117 Jakob Hirsch (jh at plonk dot de) | |
118 |