Skip to Content.
Sympa Menu

en - Re: [sympa-users] Alias management (was postfix_manager.pl)

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Salaun <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] Alias management (was postfix_manager.pl)
  • Date: Tue, 13 Aug 2002 11:05:45 +0200

Regarding recent thread about problems with automatic aliases management in
Sympa,
a few things need to be explained (and probably better documented in the
future) :

1/ Sympa aliases file and permission problems
---------------------------------------------

Aliases file can be set with configure's 'with-sendmail_aliases' option.
Default
value is etc/mail/sympa_aliases. You first need to make your sendmail/postfix
use their additional aliases file.
For postfix (as procvided by Adam Bernstein), change your your main.cf
as follows :
alias_maps = hash:/etc/aliases, hash:/etc/mail/sympa_aliases

For sendmail, change your sendmail.mc as follows :
define(`ALIAS_FILE', `/etc/mail/aliases,/etc/mail/sympa_aliases')

sympa_aliases will be edited by the alias_manager.pl (of postfix_manager.pl),
called
by WWSympa. In normal conditions, wwsympa.fcgi runs as user 'sympa.sympa' ;
therefore
your /etc/mail/sympa_aliases file needs to be writable for 'sympa' user.

2/ with virtual robots
----------------------

If you manage virtual robots with Sympa, then :
with Postfix, add an entry to your /etc/postfix/virtual.regexp :
/^(.*)my\.domain\.fr$/ ${1}-my.domain.fr

with Sendmail, add an entry to your /etc/mail/virtusertable :
@my.domain.fr %1-my.domain.fr

Entries in the 'aliases' file will look like this :
sympa-my.domain.fr: "|/home/sympa/bin/sympa.pl address@concealed"
.....
listA-my.domain.fr: "|/home/sympa/bin/sympa.pl address@concealed"

You also need to adapt the 'alias_manager.pl' script distributed with Sympa
the
following way :
< $alias .= '@'.$domain
---
> $alias .= '-'.$domain


> Eric Sandquist wrote:
>
> When I create a new list using wwsympa, I always get an error regarding
> permissions for modifying the aliases. How do I go about correcting that?
> If I run postfix_manager.pl as root, it creates all the
> aliases/domainaliases just fine. So, do I need to create somekind of
> wrapper script that will make the call with root priveleges?
>
> Eric

--
Olivier Salaün
Comité Réseau des Universités



Archive powered by MHonArc 2.6.19+.

Top of Page