Add new email user in Dovecot

amazon ec2amazon-web-servicesdovecotimaproundcube

I installed Dovecot 2.2.10 & Roundcube in Amazon Linux (apparently it's a CentOS variant).

If I want to add a new mailbox (e.g. info@mydomain.com) to IMAP, how do I add this mailbox? I read from Dovecot documentation, there are quite a lot different ways to do so, e.g. static userdb/ dynamic userdb/ add user via PAM, etc. Which method should I pick?

note: this user does not require to login to Linux; it's authorized to access mailbox via IMAP or Roundcube webmail.

Best Answer

Raptor,

There are really two main ways of setting up mail boxes. The first is the default when the mailbox is associated with a unix/linux id. The second method is to create a service id in linux and use it to serve all email. The second one is the one you want and the setup is a little more complicated than the first. It appears that you have implemented the first way. The second method can be summerized as follows. I am assuming you are using postfix as your MTA

Update postfix config to use a database like mysql to hold email ids Update postfix config to use dovecot for mail delivery Create user accounts in mysql by sql command or GUI (recommended) Update Dovecot config to use the postfix/mysql method Update roundcube to use dovecot

I have these running on multiple mailservers and If you need help in setting this up, let me know and I will be glad to help

Unni (unni@theyjas.com) Theyjas Systems