Koozali.org: home of the SME Server

sme7 - ezmlm mailing list

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
sme7 - ezmlm mailing list
« on: February 02, 2006, 10:45:07 AM »
Hello,


 some probleme installing Ezmlm on sme 7.

First a problem durirng installation step:
http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/ezmlm-web%20HOWTO%20for%20sme%20server.htm

#rpm -Uvh *.rpm
ezmlm-idx-std-0.40-2.i386.rpm =>OK
perl-Ezmlm-0.03.1-1.i386.rpm => OK
ezmlm-web-2.1-06.i386.rpm => KO => failed dependecies "apache"=>httpd ( needs --nodeps optin to install)
e-smith-ezmlm-web-1.1.1-05.noarch.rpm => OK

if you use instead:
#rpm -Uvh --nodeps *.rpm  
=> OK
--------------------------------------------

Next you are happy cause you find mailing-list tab in your server-manager.
Still happy it works when you ask to create a new mailing list.
Now you try to modify/ edit your mailing list => error doesn't find the page.
=> servername/common/ezmlm-web

Other thing:
in /etc/e-smith/events/mailinglist_*/
broken link to ../actions/email-assign
=> the file no longer exists ? why ?


Finally i have a look to src rpm.
And another problem impossible to find
ezmlm-web-2.1-06.src.rpm, only ezmlm-web-2.1-04.src.rpm instead.
But according to the how to it is not a good thing to workson this one.


If someone can help me in adapting this great mailing list for our sme 7
Jean-Philippe

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: sme7 - ezmlm mailing list
« Reply #1 on: February 02, 2006, 09:02:51 PM »
Quote from: "unnilennium"

Other thing:
in /etc/e-smith/events/mailinglist_*/
broken link to ../actions/email-assign
=> the file no longer exists ? why ?


Why? Because SME 7 has some design improvements over SME 6.

You should look for a newer e-smith-ezmlm-web. If one doesn't exist, ask the contrib's developer,  Gordon Rowell, if he has plans to make one.

Please add your discoveries to the wiki section which deals with compatibility of contribs and howtos with SME 7.

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
sme7 - ezmlm mailing list
« Reply #2 on: February 02, 2006, 10:24:44 PM »
I have already update the wiki :)

I 'll be really happy if Gordon Rowell would have some time to create a new version of rpm for ezmlm.

Further more i am trying to, but i don't have enought experience in sme and sme 7 to manage alone this.

So Gordon if you are readings theses lines tell me: i need a little of your time to explain me some things or a lot of your time if you can adapt the ezmlm...


Jean-Philippe

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
sme7 - ezmlm mailing list
« Reply #3 on: February 03, 2006, 01:51:26 AM »
good news, i think i am working on the right direction.
Fisrt the idx package is outdated for centos: ezmlm binaries don't work.
So you must use this one instead: ezmlm-toaster-0.53.324-1.2.5.i386.rpm
found here: http://centos.ate.info/ (source here:http://www.qmailtoaster.com/)


next step debugging the server manager and the ezmlm-web.cgi

JP

EDIT:
i've found other package idx, need to test: http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/

Offline raem

  • *
  • 3,972
  • +4/-0
sme7 - ezmlm mailing list
« Reply #4 on: February 03, 2006, 12:48:31 PM »
Gordon did indicate previously to me that he would update the ezmlm contrib when time permitted.
Obviously he has been busy developing sme 7, so be patient or do it yourself.
...

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
sme7 - ezmlm mailing list
« Reply #5 on: February 03, 2006, 01:14:17 PM »
Thank you Ray,

I think he will do a great job, so to patient i will advance a little the  work, and if i manage to care everything Gordon will have time fore something else...

And if Grodon has enought time just to give me some informations, i would be pleased ;)

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
sme7 - ezmlm mailing list
« Reply #6 on: February 05, 2006, 07:25:32 PM »
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:

Code: [Select]

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
Code: [Select]
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

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
sme7 - ezmlm mailing list
« Reply #7 on: February 07, 2006, 12:40:33 PM »
Quote from: "unnilennium"

/etc/e-smith/web/pannels/manager/html/ezmlm.cgi


"panels"

I just found this small typo, but did not yet test your version on my test server.

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
sme7 - ezmlm mailing list
« Reply #8 on: February 07, 2006, 09:23:59 PM »
Hello,

here the SME 7 version of EZMLM, I hope it works for everybody.

I have rebuild some rpm from sources.
For the moment i just adapt the old version that was running iunder sme6, but if somebody wants, i'll try to build the last ezmlm version.

The how to is adapted from the one of Ray Mitchell


http://santechiro.free.fr/ezmlm :pint:


enjoy and please some feeds back are welcome  

Jean-Philippe

Offline marsa_matruh

  • *****
  • 250
  • +0/-0
sme7 - ezmlm mailing list
« Reply #9 on: February 08, 2006, 09:41:05 AM »
Quote from: "unnilennium"
but if somebody wants, i'll try to build the last ezmlm version.


Yes, of course, we want  :hammer:

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
ezmlm installation
« Reply #10 on: February 17, 2006, 05:35:26 AM »
Hi,

Thanks for your effort in getting this to run under sme 7

I had a couple of minor snags on my server which was upgraded from sme 6 with ezmlm installed

I had to remove some rpms before all the new ones would install. I know Gordon is getting a lot of experience in making rpms obsolete with newer ones ;), although I'm not sure if that's a yum or rpm function.

Below is the log of my install till before post-upgrade:
Code: [Select]

[root@mail ~]# rpm -Uvh http://santechiro.free.fr/ezmlm/ezmlm-toaster-0.53.324-1.2.5.i386.rpm
Retrieving http://santechiro.free.fr/ezmlm/ezmlm-toaster-0.53.324-1.2.5.i386.rpm
error: Failed dependencies:
        ezmlm-idx-std conflicts with ezmlm-toaster-0.53.324-1.2.5.i386
[root@mail ~]# rpm -e ezmlm-idx-std
error: Failed dependencies:
        ezmlm-idx-std is needed by (installed) e-smith-ezmlm-web-1.1.1-05.noarch
        ezmlm-idx-std is needed by (installed) ezmlm-web-2.1-06.i386
[root@mail ~]# rpm -e ezmlm-idx-std ezmlm-web e-smith-ezmlm-web
warning: /etc/ezmlm/ezmlmwebrc saved as /etc/ezmlm/ezmlmwebrc.rpmsave
warning: /etc/ezmlm/ezmlmrc saved as /etc/ezmlm/ezmlmrc.rpmsave

[root@mail ~]# rpm -Uvh http://santechiro.free.fr/ezmlm/ezmlm-toaster-0.53.324-1.2.5.i386.rpm
Retrieving http://santechiro.free.fr/ezmlm/ezmlm-toaster-0.53.324-1.2.5.i386.rpm
Preparing...                ########################################### [100%]
   1:ezmlm-toaster          ########################################### [100%]
[root@mail ~]# rpm -Uvh http://santechiro.free.fr/ezmlm/perl-Ezmlm-0.03.1-SME7.i386.rpm
Retrieving http://santechiro.free.fr/ezmlm/perl-Ezmlm-0.03.1-SME7.i386.rpm
Preparing...                ########################################### [100%]
        package perl-Ezmlm-0.03.1-1 (which is newer than perl-Ezmlm-0.03.1-SME7) is already installed
[root@mail ~]# rpm -Uvh http://santechiro.free.fr/ezmlm/ezmlm-web-2.1-SME7.i386.rpm
Retrieving http://santechiro.free.fr/ezmlm/ezmlm-web-2.1-SME7.i386.rpm
error: Failed dependencies:
        perl(Mail::Ezmlm) is needed by ezmlm-web-2.1-SME7.i386
[root@mail ~]# rpm -e perl-Ezmlm
[root@mail ~]# rpm -Uvh http://santechiro.free.fr/ezmlm/perl-Ezmlm-0.03.1-SME7.i386.rpm
Retrieving http://santechiro.free.fr/ezmlm/perl-Ezmlm-0.03.1-SME7.i386.rpm
Preparing...                ########################################### [100%]
   1:perl-Ezmlm             ########################################### [100%]
[root@mail ~]# rpm -Uvh http://santechiro.free.fr/ezmlm/ezmlm-web-2.1-SME7.i386.rpm
Retrieving http://santechiro.free.fr/ezmlm/ezmlm-web-2.1-SME7.i386.rpm
Preparing...                ########################################### [100%]
   1:ezmlm-web              ########################################### [100%]
[root@mail ~]# rpm -Uvh http://santechiro.free.fr/ezmlm/e-smith-ezmlm-web-1.1.1-SME7.noarch.rpm
Retrieving http://santechiro.free.fr/ezmlm/e-smith-ezmlm-web-1.1.1-SME7.noarch.rpm
        Preparing...                ########################################### [100%]
   1:e-smith-ezmlm-web      ########################################### [100%]

......

Pacjack

sme7 - ezmlm mailing list
« Reply #11 on: February 17, 2006, 12:19:09 PM »
Quote from: "unnilennium"

For the moment i just adapt the old version that was running iunder sme6, but if somebody wants, i'll try to build the last ezmlm version.

I'm also interested ;)

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
sme7 - ezmlm mailing list
« Reply #12 on: February 17, 2006, 11:10:16 PM »
Quote from: "unnilennium"
Thank you Ray,

I think he will do a great job, so to patient i will advance a little the  work, and if i manage to care everything Gordon will have time fore something else...

And if Grodon has enought time just to give me some informations, i would be pleased ;)

Please raise a bug here:

http://bugs.contribs.org/enter_bug.cgi?product=SME%20Contribs&component=smeserver-ezmlm

summarising the findings in this thread. I'll try to find time to package them - it's *much* easier if someone has already done some of the work. Thanks everyone for the investigations. I don't read all of the forum posts :-)

Note: I want to change smeserver-ezmlm so that it stores the list names in the accounts db as list@dom.ain so you can have the same list at multiple domains. That may cause some conversion pain, but we can handle it.
............

ala_frosty

ezmlm
« Reply #13 on: August 11, 2006, 09:12:00 AM »
I can't get the ezmlm rpm's to install.

Code: [Select]

# ls *.rpm
e-smith-ezmlm-web-1.1.1-SME7.src.rpm   ezmlm-web-2.1-SME7.src.rpm
ezmlm-toaster-0.53.324-1.2.10.src.rpm  perl-Ezmlm-0.07-1.src.rpm
# rpm -hUv *.rpm
   1:e-smith-ezmlm-web      ########################################### [100%]
   2:ezmlm-toaster          ########################################### [100%]
   3:ezmlm-web              ########################################### [100%]
   4:perl-Ezmlm             warning: user gordonr does not exist - using root
warning: group gordonr does not exist - using root
warning: user gordonr does not exist - using root)
warning: group gordonr does not exist - using root
########################################### [100%]
# rpm -qa|grep zmlm
perl-Ezmlm-0.03.1-1


any suggestions?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: ezmlm
« Reply #14 on: August 11, 2006, 09:53:24 AM »
ala_frosty

> e-smith-ezmlm-web-1.1.1-SME7.src.rpm   ezmlm-web-2.1-SME7.src.rpm
> ezmlm-toaster-0.53.324-1.2.10.src.rpm  perl-Ezmlm-0.07-1.src.rpm

Don't use source (src) rpms.
...

ala_frosty

ezmlm howto update
« Reply #15 on: August 12, 2006, 05:22:45 AM »
Ray. you're the MAN!!! That worked a treat.

After that, some more scouring of the contribs led me to do the following:

Code: [Select]
[root@icewall ezmlm]# mkdir /etc/e-smith/templates-custom/var
[root@icewall ezmlm]# mkdir /etc/e-smith/templates-custom/var/service
[root@icewall ezmlm]# mkdir /etc/e-smith/templates-custom/var/service/qpsmtpd
[root@icewall ezmlm]# mkdir /etc/e-smith/templates-custom/var/service/qpsmtpd/config
[root@icewall ezmlm]# mkdir /etc/e-smith/templates-custom/var/service/qpsmtpd/config/goodrcptto
[root@icewall ezmlm]# vim /etc/e-smith/templates-custom/var/service/qpsmtpd/config/goodrcptto/50mailman



and add the list names to 50mailman

i.e.
NumbSkulls@betchacantgetelected.com
NumbSkulls@mail.betchacantgetelected.com
NumbSkulls@lists.betchacantgetelected.com

save it then:

Code: [Select]
# /sbin/e-smith/expand-template  /var/service/qpsmtpd/config/goodrcptto

# cat /var/service/qpsmtpd/config/goodrcptto

# signal-event email-update


And I personally think there should some big flashing  :hammer: telling people that the collected source rpms should NOT be used and to ignore them and don't download them but instead to download the ones below and not waste four to six hours puzzling over why the source RPMs don't work because of those three lousy letters .. ooo .. I hate them SOOOOO much ... lousy 'S' and 'R' and 'C' .. why if I had a ....

Sorry .. went off a bit there, I did ..

Okay, so that's my 2ยข contribution to contribs. I wish I knew something that would let me contribute more, because I just LOVE e-smi .. err .. SME Server when it's happy.

Stephen  :-D

PS. My next post will be about how to get ezmlm-www working .. but I haven't even spent four hours on it yet, so I don't really feel like I've earned the right ...[/u]