Creating Mailboxes via Script
Simon Matter
simon.matter at ch.sauter-bc.com
Wed Mar 5 07:37:42 EST 2003
Hi,
I'm using attached scripts to create accounts from an LDAP tree.
imapcreate can be found on sourceforge.net somewhere.
HTH
Simon
Joe Dennick schrieb:
>
> We've got Cyrus-Imap 2.1.12 running very well for our company Red Hat
> 8.0. We are authenticating against a MySQL database that we use as a
> master Security Container for all of our application authentication and
> entitlements. We've already populated the database with all of the user
> information required including usernames, passwords, shadow passwords,
> email addresses, etc. Now we need to create Cyrus-Imap mailboxes for
> each user (close to 3,000 mailboxes). I've seen several articles that
> talk about scripting CYRADM to read a text file containing usernames,
> but I can't get any of the scripting examples to work. It appears as
> though Cyrus-Imap, or specifically CYRADM has changed since the examples
> were created. Is there a way to script or batch create users? All I
> really need to do is create the mailbox and set the ACL so cyrus (admin
> account) has admin control over the mailbox. I can manually create the
> mailboxes with the following commands:
>
> cyradm --user cyrus localhost
> IMAP Password: *******
> localhost.localdomain> createmailbox user.12345
> localhost.localdomain> setacl user.12345 cyrus all
> localhost.localdomain> quit
>
> Thank you in advance for your assistance.
>
> Joe Dennick
> joe at dennick.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create_cyrus_accounts
Type: application/octet-stream
Size: 209 bytes
Desc: not available
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20030305/0c084afd/create_cyrus_accounts.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imapcreate
Type: application/octet-stream
Size: 1593 bytes
Desc: not available
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20030305/0c084afd/imapcreate.obj
More information about the Info-cyrus
mailing list