Re: [vchkpw] Use onchange for add user to ezmlm

2008-04-16 Thread Alessio Cecchi
Il Saturday 12 April 2008 20:17:45 Ismail YENIGUL ha scritto:
 Hi Alessio,

 A sample script may look like the following:


 #!/bin/sh

 cmd=$1;

   if [ $cmd = add_user ]
   then

   email=$2;  # [EMAIL PROTECTED], see README.onchange

   /usr/local/bin/ezmlm-sub ~vpopmail/domain/listname $email

 fi

  if [ $cmd = del_user ]
   then

   email=$2;  # [EMAIL PROTECTED], see README.onchange

   /usr/local/bin/ezmlm-unsub ~vpopmail/domain/listname $email

 fi

Hi Ismail,

i have edit your example like this:

#!/bin/sh
cmd=$1;
if [ $cmd = add_user ]; then
email=$2;
/usr/local/bin/ezmlm/ezmlm-sub /home/vpopmail/domains/newmail.it/news/ $email
fi
if [ $cmd = del_user ]; then
email=$2;
/usr/local/bin/ezmlm/ezmlm-unsub /home/vpopmail/domains/newmail.it/news/ 
$email
fi

And now is OK!

Also thanks to your example, I understand how the system onchange works.

Ciao
-- 
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG - neo-Socio http://www.lolug.net

!DSPAM:4806e346120505993820299!



Re: [vchkpw] Use onchange for add user to ezmlm

2008-04-12 Thread Ismail YENIGUL
Hi Alessio,

A sample script may look like the following:


#!/bin/sh

cmd=$1;

  if [ $cmd = add_user ]
  then

  email=$2;  # [EMAIL PROTECTED], see README.onchange

  /usr/local/bin/ezmlm-sub ~vpopmail/domain/listname $email

fi

 if [ $cmd = del_user ]
  then

  email=$2;  # [EMAIL PROTECTED], see README.onchange

  /usr/local/bin/ezmlm-unsub ~vpopmail/domain/listname $email

fi


Not: Be sure that ~vpopmail/etc/onchange is executable

Thanks.


Tuesday, April 8, 2008, 8:08:11 PM, you wrote:

 On my qmail+vpopmail installation i want use the feature of onchange script to
 automatically add users to an ezmlm list when they are created.

 Users are added through vpopmaild.

 I read the documentation for onchange, but I am not very clear how it works.

 Could someone give me an example on how to create a script for 
 ~vpopmail/etc/onchange ?

 Many thanks.



-- 

Ismail YENIGUL
Yönetici/Manager
Servis ve Destek Bölümü/System Services and Support Division
Tel: +90 216-470 94 23
Fax: +90 216-470 95 08
http://www.endersys.com.tr


!DSPAM:4800fcde120501398410658!



[vchkpw] Use onchange for add user to ezmlm

2008-04-08 Thread Alessio Cecchi
On my qmail+vpopmail installation i want use the feature of onchange script to 
automatically add users to an ezmlm list when they are created.

Users are added through vpopmaild.

I read the documentation for onchange, but I am not very clear how it works.

Could someone give me an example on how to create a script for 
~vpopmail/etc/onchange ?

Many thanks.
-- 
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG - neo-Socio http://www.lolug.net

!DSPAM:47fba67f120504468065741!