Chapter 5. Adding Mail Accounts

Table of Contents
Creating an LDAP entry
Creating the cyrus mailbox
Testing the new account

Creating an LDAP entry

Creating from a template

Use gq in Browse mode to connect to your LDAP server, expand the server until you see your user entries. Right click (button 3) over a user entry and select the use as template option from the menu. This will give you a blank entry to your right. Simply fill out the blank fields and click the Apply button at the bottom. You may want to open another instance of gq to use as a visual template to make sure that everything matches. If you make a mistake, make sure it is not in the dn, entries can get 'lost' if the dn is incorrect.

Lost entries

If an entry is lost, you will need to manually delete the entry with the ldap command line utilities . A more extreme solution may be needed: export the contents of the database as an LDIF file, manually repair it, empty the database file with an editor and restore the database using ldapadd and the LDIF file.

Adding a password

>From the command line, use the ldappasswd utility to create a password entry for the user. Type the following, assuming we just added <New User> to the LDAP database using gq:

ldappasswd -D “cn=root,o=<your organization name>,c=<your country code>” -w <rootpw> -t “cn=<New User>,o=<your organization name>,c=<your country code>”

You will be prompted for the password for the new user and asked to type it again.