Skip to Content.
Sympa Menu

en - Re: [sympa-users] Problem with alias_manager.pl in Debian woody

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Zakaria <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] Problem with alias_manager.pl in Debian woody
  • Date: Thu, 10 Jul 2003 19:12:08 +0700

Hi,

I finally able to solve my problem. Many thanks to Olivier Salaun for
his help offline.

The problem using alias_manager in Debian Woody with postfix is:
1. /usr/lib/sympa/bin/aliaswrapper is broken
2. The script /usr/lib/sympa/bin/alias_manager.pl has error in it

The solution is
1. Skip aliaswrapper calling newaliases directly
2. Clear $ENV{'PATH'} before calling anything else

Detail
1. mkdir /etc/mail
2. create empty /etc/mail/sympa.aliases
# touch /etc/mail/sympa.aliases
# touch /etc/mail/sympa.aliases.db
# chown sympa /etc/mail/sympa.aliases
# chown sympa /etc/mail/sympa.aliases.db
3. Add /etc/mail/sympa.aliases to your /etc/postfix/main.cf
---------------------------------------------------------------
alias_maps = hash:/etc/aliases,hash:/etc/mail/sympa.aliases
alias_database = hash:/etc/aliases,hash:/etc/mail/sympa.aliases
---------------------------------------------------------------
And do postfix reload
4. Make sympa able to run newaliases
# chown sympa /etc/aliases.db
5. Patch /usr/lib/sympa/bin/alias_manager.pl with the following
-------------------------------------------------------------
--- alias_manager.pl.orig Mon Nov 11 18:42:27 2002
+++ alias_manager.pl Thu Jul 10 19:02:43 2003
@@ -21,6 +21,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
# USA.

+$ENV{'PATH'} = '';
+
## Load Sympa.conf
use lib '/usr/lib/sympa/bin';
use Conf;
@@ -32,14 +34,13 @@
my $tmp_alias_file = $Conf{'tmpdir'}.'/sympa_aliases.'.time;

my $alias_file = '/etc/mail/sympa.aliases';
-my $alias_wrapper = '/usr/lib/sympa/bin/aliaswrapper';
-my $lock_file = '/usr/lib/sympa/alias_manager.lock';
+#my $alias_wrapper = '/usr/lib/sympa/bin/aliaswrapper';
+my $alias_wrapper = '/usr/bin/newaliases';
+my $lock_file = '/var/lib/sympa/alias_manager.lock';
my $default_domain;
my $path_to_queue = '/usr/lib/sympa/bin/queue';
my $path_to_bouncequeue = '/usr/lib/sympa/bin/bouncequeue';
my $sympa_conf_file = '/etc/sympa/sympa.conf';
-
-$ENV{'PATH'} = '';

my ($operation, $listname, $domain) = @ARGV;

-------------------------------------------------------------
6. Restart your web server if you run fcgi

Hope its usefull

On Fri, Jun 27, 2003 at 05:27:33PM +0700, Zakaria wrote:
> Hi,
>
> I'm using sympa 3.3.3 as shipped with Debian Woody (3.0) and using
> postfix 1.1.11 as my MTA.
>
> I'm trying to use alias_manager.pl to automate creation of aliases.
> But I'm having some problem
> 1) Whenever I run alias_manager.pl, it always has following error
> ----------------------------------------------------------
> Exec of /usr/bin/newaliases failed!: Bad address
> Failed to execute newaliases: No such file or directory at
> /usr/lib/sympa/bin/alias_manager.pl line 103.
> ----------------------------------------------------------
> Apparently it tries to execute /usr/lib/sympa/bin/aliaswrapper
> but that files always error. The documentation says that file will
> execute /usr/bin/newaliases. I could execute newaliases just fine.
> Is it alright if I just change $alias_wrapper to /usr/bin/newaliases?

> Thanks in advance,

Wassallam,


-- Zakaria
Private: address@concealed Yahoo!: z4k4ri4
http://pemula.linux.or.id


  • Re: [sympa-users] Problem with alias_manager.pl in Debian woody, Zakaria, 07/10/2003

Archive powered by MHonArc 2.6.19+.

Top of Page