Hello,
I finally have it working fine.
First before to publish somes rpm and a real How to for SME, here how i manage to adapt it .
I would like some advice from devellopers to know if it seems secure, and if i didn't create big security hole.
here the mini how to:
First INSTALL this:
# rpm -Uvh ezmlm-toaster-0.53.324-1.2.5.i386.rpm
# rpm -Uvh perl-Ezmlm-0.03.1-1.i386.rpm
# rpm -Uvh --nodeps ezmlm-web-2.1-06.i386.rpm
# rpm -Uvh --nodeps e-smith-ezmlm-web-1.1.1-05.noarch.rpm
modifications:
copy perl script froml:
/usr/lib/perl5/site_perl/5.6.0/Mail/Ezmlm.pm
to
/usr/lib/perl5/site_perl/5.8.5/Mail/Ezmlm.pm
copy script from sme 6.01:
/etc/e-smith/events/actions/mail-assign
chmod 554 /etc/e-smith/events/actions/mail-assign
chown root:root /etc/e-smith/events/actions/mail-assign
modify script:
/etc/e-smith/events/actions/ezmlm-update
line: 37
tie my %accounts, 'esmith::config','/home/e-smith/accounts';
to:
tie my %accounts, 'esmith::config','/home/e-smith/db/accounts';
modifiy script:
/etc/e-smith/web/functions/mailinglists
line: 1
#!/usr/bin/perl -w
to
#!/usr/bin/perl -wU
modify script:
/etc/e-smith/templates/var/qmail/users/assign/90mailinglists
line 11
tie %accounts, 'esmith::config', "/home/e-smith/accounts";
to
tie %accounts, 'esmith::config', "/home/e-smith/db/accounts";
modify script:
/etc/e-smith/web/function/mailinglists
line:72
tie %accounts, 'esmith::config', '/home/esmith/accounts';
to
tie %accounts, 'esmith::config', '/home/esmith/db/accounts';
line:75
tie %accounts, 'esmith::config', '/home/esmith/domains';
to
tie %accounts, 'esmith::config', '/home/esmith/db/domains';
line:66
use constant EZMLMWEB => '/common/ezmlm-web';
to
use constant EZMLMWEB => '/server-manager/ezmlm.cgi';
copy or move from:
/home/httpd/html/ezmlm-web/index.cgi
to:
/etc/e-smith/web/pannels/manager/html/ezmlm.cgi
delete:
/etc/e-smith/web/panels/manager/common/ezmlm-web
modify script:
/usr/bin/ezmlm-web.cgi
line 1
#!/usr/bin/perl -T
to
#!/usr/bin/perl -TU
My problem is about the -U switch i have to add to 2 scripts due to security check from Perl 5.8.5 with some commands like system ('/sbin/e-smith/signal-event','mailinglist-delete', $list) ==0
or die ("Error occured while deleting list\n");
that create fatal error.
Some ideas ?
Jean-Philippe