configuring cyrus imapd
configuring cyrus imapd
Our goals are Single sign on and central administration. Therefore cyrus imapd has to be "kerberized" and there should be a possibility to add a mailbox for a user automatically if a new user is crated in OpenLDAP.
kerberizing imapd
These command add principals for imap and pop. mail.redflo.de is the hostname of the cyrus imapd server:
kadmin.local kadmin.local: addprinc -randkey imap/mail.redflo.de@REDFLO.DE kadmin.local: addprinc -randkey pop/mail.redflo.de@REDFLO.DE kadmin.local: addprinc -randkey sieve/mail.redflo.de@REDFLO.DE kadmin.local: ktadd -k /etc/krb5.keytab.cyrus imap/mail.redflo.de kadmin.local: ktadd -k /etc/krb5.keytab.cyrus pop/mail.redflo.de kadmin.local: ktadd -k /etc/krb5.keytab.cyrus sieve/mail.redflo.de kadmin.local: quit chown cyrus /etc/krb5.keytab.cyrus
Note: The cyrus imapd server has to be able to read the keytab file. Therefore you should not use the default keytab file.
And to make the cyrus imapd read the kerberos keytab we set the environment variable in the /etc/init.d/cyrus (or however it is named in your distro):
... KRB5_KTNAME=/etc/krb5.keytab.cyrus export KRB5_KTNAME ...
automatically add mailboxes
Fortunately cyrus imapd offers options to add a mailbox if a user authenticates successfully or a mail for a new user arrives. Add these lines to /etc/imapd.conf:
autocreatequota: -1 autocreateinboxfolders: Sent | Drafts | Trash | Junk createonpost: yes
This creates also some useful folders.
Created by admin. Last Modification: Sunday 12 of April, 2009 22:28:17 UTC by redflo.
Category: UNIX
-
wiki page:
- How to use Microsoft Active Directory with postfix
- inserting the first object in your ldap directory
- Installing the mailsystem packages
- Integrating LDAP in your unix system
- Introduction
- Kerberizing kadmin
- Kerberizing sshd
- Kerberos setup
- LDAP
- LDAP schema files
- logging
- Motivation
- nss_ldap security
- OpenLDAP config files
- Other documentation
- performing a first ldap query
- PerfParse
- populating the directory
- Postfix and cyrus imapd and kerberos and LDAP
- Setting up a kerberos client machine
- Setting up your Kerberos servers
- SIngle sign on (SSO) first try
- SSO and Central Administration with Kerberos and LDAP
- Start the kerberos servers
- The configuration files
- The name service switch
- Tweak pam
- Understanding Kerberos
- Understanding Kerberos pt. 2
- Webserver Stress Test Tools
- What is LDAP?
- What the heck is pam?
- What we need
- What we want
- Audience
- Authenticating
- Bash script with timeout function
- Check Processes
- Check your installation
- Choosing a Realm
- configure your mail client
- Configuring and understanding pam
- configuring cyrus imapd
- configuring postfix
- Connect to kadmind and have a look into the database
- Creating the kerberos database
- Edit the Kerberos Admin Server ACL config
- Edit the kerberos client config file
- Edit the kerberos server config file
- Excursus to principals
- exploring schemas
- Fight Image Spam
- Fight Spam best practice
- adding a group
- Adding principals and authenticating
- Another principal
- nss with Solaris 10
- SerialConsole






