changeset 543:e6565d2a4368

README.exim4 update from Jakob
author mmj
date Tue, 11 Apr 2006 06:40:52 +1000
parents 7df67dcb9e59
children 869a202ffb3b
files README.exim4
diffstat 1 files changed, 17 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/README.exim4	Tue Apr 11 06:40:39 2006 +1000
+++ b/README.exim4	Tue Apr 11 06:40:52 2006 +1000
@@ -9,9 +9,13 @@
 
 Notes:
 - We assume that you have a user and group called mlmmj to use with mlmmj
-- The exim user needs read access rights to mlmmj's spool directory and its
-  subdirectories
-- Existence of mailing lists is automatically checked ($listdir/index) and you
+- The exim user needs rx access rights to mlmmj's spool directory. (If you
+  don't want that, see below.) The easiest way is 
+  "chmod 755 /path/to/mlmmj/spool", if it's ok that local users can see which
+  lists there are.
+  Note that the owner of the mlmmj spool must still be the mlmmj user (and
+  this user must have at least x rights to the directories below).
+- Existence of mailing lists is automatically checked ($listdir) and you
   don't need to put anything into your aliases file
 - If you want VERP to be done by your MTA, follow the instructions below and
   put an empty file named verp into the control directory of your lists
@@ -20,7 +24,7 @@
 1. In the main configuration section:
 
 MLMMJ_HOME=/var/spool/mlmmj
-domainlist mlmmj_domains = list.your.domain
+domainlist mlmmj_domains = list.example.net
 
 
 2. Add +mlmmj_domains to relay_to_domains:
@@ -40,7 +44,10 @@
 mlmmj_router:
   driver = accept
   domains = +mlmmj_domains
-  require_files = MLMMJ_HOME/${lc::$local_part}/index
+  require_files = MLMMJ_HOME/${lc::$local_part}
+  # Use this instead, if you don't want to give Exim rx rights to mlmmj spool.
+  # Exim will then spawn a new process running under the UID of "mlmmj".
+  #require_files = mlmmj:MLMMJ_HOME/${lc::$local_part}
   local_part_suffix = +*
   local_part_suffix_optional
   headers_remove = Delivered-To
@@ -52,10 +59,9 @@
 
 verp_router:
   driver = dnslookup
+  domains = !+mlmmj_domains
   # we only consider messages sent in through loopback
   condition = ${if eq{$sender_host_address}{127.0.0.1}{yes}{no}}
-  # we do not do this for traffic going to the local machine
-  domains = !+mlmmj_domains : !+local_domains
   ignore_target_hosts = <; 0.0.0.0; 127.0.0.0/8; ::1/128; fe80::/10; ff00::/8
   # only the un-VERPed bounce addresses are handled
   senders = \N^.+\+bounces-\d+@.+\N
@@ -80,15 +86,16 @@
   group = mlmmj
   home_directory = MLMMJ_HOME
   current_directory = MLMMJ_HOME
-  command = /usr/local/bin/mlmmj-recieve -F -L MLMMJ_HOME/${lc::$local_part}
+  command = /usr/local/bin/mlmmj-recieve -F -L MLMMJ_HOME/${lc:$local_part}
 
 If you want VERP to be done by your MTA, also add this:
 
 verp_smtp:
   driver = smtp
   # put recipient address into return_path
-  return_path = \
-    ${local_part:$return_path}-$original_local_part=$original_domain@${domain:$return_path}
+  return_path = ${quote_local_part:${local_part:$return_path}}-\
+                ${original_local_part}=${original_domain}@\
+                ${domain:$return_path}
   # must restrict to one recipient at a time
   max_rcpt = 1
   # Errors-To: may carry old return_path