Re: [Exim] Mailman with Exim 4 and ${lc:...} error

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: John Koenig
CC: exim-users
Subject: Re: [Exim] Mailman with Exim 4 and ${lc:...} error
On Wed, 3 Apr 2002, John Koenig wrote:

> # Router
> mailman_main_router:
>     driver = accept
>     require_files = MAILMAN_HOME/lists/${lc::$local_part}/config.pck
>     transport = mailman_transport

>
> mailman_router:
>     driver = accept
>     require_files = MAILMAN_HOME/lists/${lc::$local_part}/config.pck
>     local_part_suffix = "-bounces:-bounces+*:-confirm+*:-join:-leave:-owner:-request:-admin"
>     transport = mailman_transport

>
>
> # Transport
> mailman_transport:
>     driver = pipe
>     # In case you wonder, substr_2 removes the leading '-'
>     # and the regex removes optional +foo=hostname that can be after -bounce
>     command = MAILMAN_WRAP "${if def:local_part_suffix{${substr_2:{${sg{${lc:$local_part_suffix}}{\\\\\+.*}{}}}}{post}}" ${lc:$local_part}
>     current_directory = MAILMAN_HOME
>     home_directory = MAILMAN_HOME
>     user = MAILMAN_UID
>     group = MAILMAN_GID


> Didn't notice this before, but I presume the user and group in the transport is redundant?


No, they are not, because there are no settings on either of the
routers. *Something* has to tell Exim what uid/gid to use when it runs
the transport.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.