mlmmj

changeset fd77dd58bde1

Added info on a hierarchical multi-domain option to README.postfix
author Ben Schmidt
date Mon, 27 Sep 2010 10:59:35 +1000
parents 32d3f7e3b523
children dfc9ab125fd4
files README.postfix
diffstat 1 files changed, 13 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/README.postfix	Mon Sep 20 02:52:22 2010 +1000
     1.2 +++ b/README.postfix	Mon Sep 27 10:59:35 2010 +1000
     1.3 @@ -62,12 +62,15 @@
     1.4              /^(mlmmj-test.*)@example\.com$/          ${1}
     1.5              /^(another-list.*)@sample\.com$/         ${1}
     1.6  
     1.7 -    
     1.8      One line needs to be in the virtual map for each list the 'mlmmj' id
     1.9      is to handle.  The regex formula is:
    1.10  
    1.11          /^(list-name.*)@(domain\.com)$/              ${1}
    1.12  
    1.13 +    If you want to host multiple domains in a hierarchical structure,
    1.14 +    you can alternatively use:
    1.15 +
    1.16 +        /^(list-name.*)@(domain\.com)$/        domain--${1}
    1.17     
    1.18      Next we make sure that postfix can invoke the mlmmj executables as
    1.19      the 'mlmmj' user.  This is where the transport map comes in.  So we
    1.20 @@ -89,6 +92,10 @@
    1.21      Which in this case is the mailing list name.  'nexthop' is special
    1.22      variable for transports.
    1.23  
    1.24 +    For the hierarchical multi-domain solution, use this variant:
    1.25 +
    1.26 +        /^(domain--list-name).*$/              mlmmj:domain/list-name
    1.27 +
    1.28      Now we setup the 'mlmmj' transport.  The 'mlmmj' in mlmmj:$1 above
    1.29      indicates a transport listed in the postfix master.cf file.  We are
    1.30      just going to create a transport called 'mlmmj' but it is nothing
    1.31 @@ -117,7 +124,10 @@
    1.32  
    1.33      $nexthop gets set to what was on the right had side of the ':' in
    1.34      the transport file.  The way we have that configured is that
    1.35 -    $nexthop will get set to the name of the mailing list.
    1.36 +    $nexthop will get set to the name of the mailing list (or domain
    1.37 +    and name).  Your list directories, then, should be at
    1.38 +    /var/spool/mlmmj/list-name as usual, or for the hierarchical
    1.39 +    multi-domain version, in /var/spool/mlmmj/domain/list-name.
    1.40  
    1.41      Restart postfix and enjoy your new lists.
    1.42