Courier IMAP Setup
Courier IMAP
This is a pop3 and imap daemon. The official website is at http://www.courier-mta.org/.
Userdb authentication setup
I'm using userdb for authentication. There are other schemes you can use such as PAM, MySQL or Postgres.
userdb is a disk based authentication, similar to standard passwd files.
Initial Setup
-
postfix setup with vmailbox must be setup first.
-
Install packages
Install courier-authlib-userdb, courier-imap-ssl, courier-pop-ssl
-
mkdirs
# mkdir /etc/courier # touch /etc/courier/userdb # chmod 700 /etc/courier/userdb
-
Turn on the userdb authentication scheme. Edit /etc/courier/authdaemonrc
set authmodulelist="authuserdb"
-
Decide which daemons or services you will start.
Setup per email
-
Determine uid and gid of vmailbox
This will be the vmail user setup as part of postfix initial setup
-
Add to userdb
# userdb "testuser@example.com" set home=/var/mail/vhosts/example.com/testuser \ mail=/var/mail/vhosts/example.com/testuser uid=1234 gid=1234
After this command you should see a new entry in /etc/courier/userdb
The mail parameter is used so it is not defaulted to $home/Maildir/
-
set password
# userdbpw | userdb "testuser@example.com" set systempw
it will prompt you for a password.
-
rebuild userdb
# makeuserdb
/etc/courier/userdb.dat will be updated
-
reload services
# /etc/init.d/courier-authdaemon reload * Stopping Courier authentication services authdaemond ...done. * Starting Courier authentication services authdaemond ...done.
-
Notify the user their account is ready. Note that their username is their FULL email address.
| More Articles (showing 1 below) | |
|---|---|
| 2011-02-27 | |

