Securing courier-imap

I spent part of the day to install a virtual mail server, and i discover that there is a really simple way to secure courier-imap. By defaut when you use this kind of server the auth is made against the standard pam module. This is really simple, but what happend if someone is able to read your imap password. Yes he get the account password.

Courier imap can do the auth against a lot of stuff. Simply change the authmodulelist=authpam to authmodulelist=authuserdb. This will use the file /etc/courier/userdb.

userdb "username" set home=/home/username
                      mail=/home/username/Maildir
                      uid=UID gid=GID
userdbpw | userdb "username" set imappw
makeuserdb

So now you can use a different password for your account and your imap, and you can choose who can access to imap server.

Related posts :

admin February 29th, 2004


One Response to “Securing courier-imap”

  1. Jkxon 29 Feb 2004 at 9:06 pm

    Oh, you can use the same for virtual pop server :) The only thing is that you should use ’systempw’ instead of imappw. In fact, using imappw isn’t really a good idea.

    Enjoy :)

Comments RSS

Leave a Reply