My opinion is that we should follow the lines of
  /usr/share/doc/mailman/README.EXIM.gz

  I'm attaching the files I use for both sympa and mailman.
  (in the split file config of exim4)

-- 
  Eric Deplagne

On mar, 08 mai 2007 10:22:52 +0200, Stefan Hornburg wrote:
> Olivier Berger wrote:
> >Hi.
> >
> >The standard aliases file of exim4 shipped in testing doesn't seem to
> >fit for aliases with pipes.
> >
> >Errors found in exim's logs :
> > == |/usr/lib/sympa/bin/queue sympa <[EMAIL PROTECTED]> R=system_aliases 
> > defer (-30): pipe_transport unset in system_aliases router
> >
> >
> >If split configuration is chosen, it may be necessary to add something
> >like :
> >.ifndef SYSTEM_ALIASES_PIPE_TRANSPORT
> >SYSTEM_ALIASES_PIPE_TRANSPORT = address_pipe
> >.endif
> >in a file in /etc/exim4/conf.d/main/ ...
> >
> >Otherwise, the router/400_exim4-config_system_aliases definition of
> >system_aliases won't work.
> 
> For the split configuration we might consider to use a special alias 
> file just for sympa aliases. What do you think ?
> 
> Regards
>       Racke
mailman_transport:
  driver = pipe
  command = MAILMAN_WRAP \
            '${if def:local_part_suffix \
                  {${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
                  {post}}' \
            $local_part
  current_directory = MAILMAN_HOME
  home_directory = MAILMAN_HOME
  user = MAILMAN_USER
  group = MAILMAN_GROUP
sympa_pipe:
  debug_print = "T: address_pipe for [EMAIL PROTECTED]"
  driver = pipe
  user = SYMPA_UID
  group = SYMPA_GID
  return_fail_output
  mailman_router:
    driver = accept
    require_files = MAILMAN_HOME/lists/$local_part/config.pck
    local_part_suffix_optional
    local_part_suffix = -bounces : -bounces+* : \
                        -confirm+* : -join : -leave : \
                        -owner : -request : -admin
    transport = mailman_transport
sympa_sympa:
  debug_print = "R: Sympa sympa user for $domain"
  driver = redirect
  data = ${if match{$local_part}{sympa} \
          {| SYMPA_QUEUE [EMAIL PROTECTED]
  pipe_transport = sympa_pipe

sympa_manager:
  debug_print = "R: Sympa list manager for $domain"
  driver = redirect
  data = ${if match{$local_part}{listmanager} \
          {| SYMPA_QUEUE [EMAIL PROTECTED]
  pipe_transport = sympa_pipe

sympa_queue:
  debug_print = "R: Sympa mailing lists for [EMAIL PROTECTED]"
  driver = redirect
  data = ${if exists 
{SYMPA_LISTS/${sg{$local_part}{-request|-editor|-owner|-subscribe|-unsubscribe}{}}}\
          {${if match{$local_part}{(.*)-owner}\
          {| SYMPA_BOUNCEQUEUE [EMAIL PROTECTED]| SYMPA_QUEUE [EMAIL PROTECTED]
  pipe_transport = sympa_pipe
# Home dir for your Mailman installation -- aka Mailman's prefix
# directory.
MAILMAN_HOME=/var/lib/mailman
MAILMAN_WRAP=MAILMAN_HOME/mail/mailman

# User and group for Mailman, should match your --with-mail-gid
# switch to Mailman's configure script.
MAILMAN_USER=list
MAILMAN_GROUP=daemon
###  Sympa paths and users  ###  

# Location of Sympa virtual robot directories
SYMPA_LISTS = /var/lib/sympa/expl  

# Sympa executable paths 
SYMPA_QUEUE = /usr/lib/sympa/bin/queue
SYMPA_BOUNCEQUEUE = /usr/lib/sympa/bin/bouncequeue  

# Sympa uid and gid 
SYMPA_UID = sympa 
SYMPA_GID = sympa

Attachment: signature.asc
Description: Digital signature

Reply via email to