Skip to Content.
Sympa Menu

en - [sympa-users] sympa aliases and virtual aliases

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "José Manuel Bobba Ares" <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] sympa aliases and virtual aliases
  • Date: Thu, 18 Dec 2008 17:15:50 -0200

Hi!! I have this problem.
I want to sympa read from sympa_aliases (/etc/mail/sympa_aliases) beside postfix aliases (/etc/aliases).
For this, I modified postfix main.cf adding "virtual_alias_maps = hash:/etc/mail/sympa_aliases" line.

Following the instructions in : http://dischosting.sourceforge.net/INSTALL/sympa.html (they warn that is in an oldversion of sympa), I modified "wwslib.pm" with:

alias_manager => '/usr/lib/sympa/bin/alias_manager.pl',
auto_aliases => 1,

In alias_manager.pl:

my $regexp_table = '/etc/postfix/virtual-regexp';
my $alias_wrapper = '/usr/sbin/postalias -o hash:/etc/mail/sympa_aliases';


And I modified the code for looking like this:

unless (open ALIAS, ">> $alias_file") {

      print STDERR "Unable to append to $alias_file\n"; exit(5);

          }

          if (open REGEXP, ">> $regexp_table") {

            print REGEXP "/^$listname\@$domain\$\/ $domain-$listname";

            } else { print STDERR "Unable to append to $regexp_table\n";

            exit(5);

              }

              foreach (@aliases) {

                print ALIAS "$_";

                } close ALIAS; close REGEXP;


                Now, if I instantiate a new list with alias_manager.pl add ... it works fine, but if I do with the "./sympa.pl --instantiate.." XML my_file mode it doesn't.

                Thank you all.

                Jose





                • [sympa-users] sympa aliases and virtual aliases, José Manuel Bobba Ares, 12/18/2008

                Archive powered by MHonArc 2.6.19+.

                Top of Page