Re: [Web-cyradm] creating the cyrus accounts
> > that'd be great. I already have everything in the sql dbs, I just need > a way to batch create the cyrus accounts. I was hoping there was a way > to batch import using cyradm on the command line > Attached I send two scripts. 1) Copy them to the same folder, 2) Edit cyr_adduser.pl - This file is well commented. 3) add a file users.txt with one username per line. 4) run perl cyr_batchadd.sh 5) Lay back and watch ... Hope it helps Enrique -- Dirk Enrique Seiffert CaribeNet S.A. - Cartagena - Colombia www.caribenet.com cyr_adduser.pl Description: Perl program cyr_batchadd.sh Description: application/shellscript ___ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch ___ Web-cyradm mailing list Web-cyradm@web-cyradm.org http://www.web-cyradm.org/mailman/listinfo/web-cyradm
RE: [Web-cyradm] creating the cyrus accounts
Hi Enrique, I'd also like to get these scripts. In the near future I'll be moving users from old solaris machine to this new web-cyradm installation on SuSE. Regards, Leon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Enrique Seiffert Sent: Wednesday, July 20, 2005 2:24 AM To: web-cyradm@web-cyradm.org Subject: Re: [Web-cyradm] creating the cyrus accounts El Lun 18 Jul 2005 14:02, Howard Shere escribió: > I have a list of user names and I have scripts which can add those use > Does anyone know of a command to do this using a file with a list of > user names? I can make the list of user names looks the right way > (user^domain^tld) if I need to. A few moths ago I spent days searching for a script until I found two perl-scripts to create cyrus mailboxes and batch import users. You still have to import them to mysql and create the passwords. If you are interested I can send them to you. Best wishes Enrique > > Howard Shere > Altair 8800a to Mac OS X so far... > > ___ > This mailing list is hosted and supported by bit-heads GmbH | > http://www.bit-heads.ch > > ___ > Web-cyradm mailing list > Web-cyradm@web-cyradm.org > http://www.web-cyradm.org/mailman/listinfo/web-cyradm -- Dirk Enrique Seiffert CaribeNet S.A. - Cartagena - Colombia www.caribenet.com ___ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch ___ Web-cyradm mailing list Web-cyradm@web-cyradm.org http://www.web-cyradm.org/mailman/listinfo/web-cyradm ___ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch ___ Web-cyradm mailing list Web-cyradm@web-cyradm.org http://www.web-cyradm.org/mailman/listinfo/web-cyradm
Re: [Web-cyradm] creating the cyrus accounts
On Jul 19, 2005, at 6:24 PM, Dirk Enrique Seiffert wrote: I have a list of user names and I have scripts which can add those use Does anyone know of a command to do this using a file with a list of user names? I can make the list of user names looks the right way (user^domain^tld) if I need to. A few moths ago I spent days searching for a script until I found two perl-scripts to create cyrus mailboxes and batch import users. You still have to import them to mysql and create the passwords. If you are interested I can send them to you. that'd be great. I already have everything in the sql dbs, I just need a way to batch create the cyrus accounts. I was hoping there was a way to batch import using cyradm on the command line Howard Shere Altair 8800a to Mac OS X so far... ___ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch ___ Web-cyradm mailing list Web-cyradm@web-cyradm.org http://www.web-cyradm.org/mailman/listinfo/web-cyradm
Re: [Web-cyradm] creating the cyrus accounts
El Lun 18 Jul 2005 14:02, Howard Shere escribió: > I have a list of user names and I have scripts which can add those use > Does anyone know of a command to do this using a file with a list of > user names? I can make the list of user names looks the right way > (user^domain^tld) if I need to. A few moths ago I spent days searching for a script until I found two perl-scripts to create cyrus mailboxes and batch import users. You still have to import them to mysql and create the passwords. If you are interested I can send them to you. Best wishes Enrique > > Howard Shere > Altair 8800a to Mac OS X so far... > > ___ > This mailing list is hosted and supported > by bit-heads GmbH | http://www.bit-heads.ch > > ___ > Web-cyradm mailing list > Web-cyradm@web-cyradm.org > http://www.web-cyradm.org/mailman/listinfo/web-cyradm -- Dirk Enrique Seiffert CaribeNet S.A. - Cartagena - Colombia www.caribenet.com ___ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch ___ Web-cyradm mailing list Web-cyradm@web-cyradm.org http://www.web-cyradm.org/mailman/listinfo/web-cyradm
Re: [Web-cyradm] creating the cyrus accounts
Does anyone know of a command to do this using a file with a list of user names? I can make the list of user names looks the right way (user^domain^tld) if I need to. There's also an option to create it when first mail gets in. Can you tell me what option this is and what it is for (postfix? cyrus?). With this option I don't have to create the accounts up front. I can just wait and let the mail coming in do it for me. Script would be like this: #!/bin/bash userlist=`cat /path/to/userlist` for i in $userlist do echo "test" | mail -s "test" $i done Just a few thoughts :) Michael ___ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch ___ Web-cyradm mailing list Web-cyradm@web-cyradm.org http://www.web-cyradm.org/mailman/listinfo/web-cyradm Howard Shere Altair 8800a to Mac OS X so far... ___ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch ___ Web-cyradm mailing list Web-cyradm@web-cyradm.org http://www.web-cyradm.org/mailman/listinfo/web-cyradm
RE: [Web-cyradm] creating the cyrus accounts
> I have a list of user names and I have scripts which can add > those user > names to the sql dbs required. I need a way to get the cyrus accounts > for each user so that they can get email. I know the account > is created > automatically when the user POPs or IMAPs their mail, but I > need a way > to do this as a script. > > Does anyone know of a command to do this using a file with a list of > user names? I can make the list of user names looks the right way > (user^domain^tld) if I need to. There's also an option to create it when first mail gets in. Script would be like this: #!/bin/bash userlist=`cat /path/to/userlist` for i in $userlist do echo "test" | mail -s "test" $i done Just a few thoughts :) Michael ___ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch ___ Web-cyradm mailing list Web-cyradm@web-cyradm.org http://www.web-cyradm.org/mailman/listinfo/web-cyradm