[Pkg-exim4-users] Re: pipe aliases and permissions

Marc Haber mh+pkg-exim4-users at zugschlus.de
Sat Dec 10 21:54:16 UTC 2005


On Sat, Dec 10, 2005 at 04:25:06PM -0500, Faheem Mitha wrote:
> On Sat, 10 Dec 2005, Marc Haber wrote:
> >It should, but it only seems to actually do it when the group is set
> >on the transport.
> 
> No, my question was referring to the situation when there is no 
> router/transport, the default behavior where there is a permission 
> problem.
> 
> For example, if just
> 
> SYSTEM_ALIASES_PIPE_TRANSPORT = address_pipe
> 
> was set.

I'd expect it to stay at Debian-exim.

> >>Sorry, I don't follow. I thought that I'm setting the user and
> >>group on the system_aliases router using the SYSTEM_ALIASES_*, which works
> >>for me.
> >>
> >>What does not work exactly?
> >
> >Setting the group on the router does not seem to work, it needs to be
> >set on the transport.
> 
> It works for me with the system_aliases router that exists in the 
> /etc/exim4/exim4.conf.template, as I have already said.
> 
> I think you are talking about the custom roundup_router & 
> coundup_transport that you wrote. Is my understanding correct?

No. I tried replicating with an alias and kept ending up running the
script as Debian-exim.

> >afaik, router/transport pairs exist for debbugs, mailman and
> >request-tracker.
> 
> I'm not aware of one for RT, and I just looked at the docs for the Debian 
> unstable package the other day.

The rt maintainer didn't incorporate it yet. it's in the Debian BTS as
#229052, and in the exim wiki on
http://www.exim.org/eximwiki/RequestTrackerConfiguration

> Eg. each directory in /var/lib/roundup/trackers belongs to a tracker 
> instance.
> 
> I think it would suffice to configure an mail address (or whatever it is 
> called) corresponding to each local instance.
> 
> So if there were directories /var/lib/roundup/trackers/track1 and 
> /var/lib/roundup/trackers/track2, then configure mail addresses track1 and 
> track2. Presumably one should do this in the router.
> 
> I see that the mailman router/transport for Exim 4 is
> 
> ******************************************************************
>   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
> 
>  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
> ******************************************************************

Yes, with the magic being the require_files directive.

> 
> Would something like the following work for Roundup? It looks like 
> $local_part is extracted by matching require_files, correct?
> 
> ******************************************************************
>   # Home dir for your Roundup installation
>   ROUNDUP_HOME=/var/lib/roundup/trackers
> 
>   # User and group for Roundup.
>   ROUNDUP_USER=roundup
>   ROUNDUP_GROUP=roundup
> 
>   roundup_router:
>     driver = accept
>     # The config file config.ini seems like a more natural choice, but the
>     # file config.py was replaced by config.ini in 0.8, and schema.py needs 
>     to be
>     # present too.
>     require_files = /usr/bin/roundup-mailgw, 
>     ROUNDUP_HOME/$local_part/schema.py
>     transport = roundup_transport
> 
>   roundup_transport:
>     driver = pipe
>     command = /usr/bin/python /usr/bin/roundup-mailgw 
>     ROUNDUP_HOME/$local_part/
>     current_directory =
>     home_directory =
>     user = ROUNDUP_USER
>     group = ROUNDUP_GROUP
> ***************************************************************

Looks good.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835



More information about the Pkg-exim4-users mailing list