3

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. [email protected]) 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.

8
  • You should use the method you used for the first email. Go back to the documentation you followed to figure it out. May 27, 2016 at 5:07
  • I don't even have the first email. As said, I just setup Dovecot.
    – Raptor
    May 27, 2016 at 5:27
  • My point still stands that you should refer to the guide you used to setup Dovecot as it will show you how to complete what you started. Setting up a mail server is a complex task and it can not be answered in a single post here. May 27, 2016 at 5:32
  • In the guide I followed, it suggested using postfixadmin which worked out pretty well to handle everything in a DB. (Note that the best 3 guides I found were not functional as is and I had to solve certain issues myself.) May 27, 2016 at 5:33
  • 1
    You didn't configure dovecot to use that authentication which will require additional packages. You can look at digitalocean.com/community/tutorials/… but as I said, there is no perfect guide. May 27, 2016 at 7:01

1 Answer 1

2

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 ([email protected]) Theyjas Systems

3
  • 1
    Thanks for the info. How do I config postfix to use MySQL as passwords DB & what will be the schema? How to set roundcube to use Dovecot ? Still confused.
    – Raptor
    May 28, 2016 at 8:49
  • Raptor, I have an rpm that would do all of these steps in one shot if you are interested. I am also creating a documentation for this. Let me know if you are interested in the rpm May 29, 2016 at 1:26
  • Raptor, I have an rpm that would do all of these steps in one shot if you are interested. I am also creating a documentation for this. Let me know if you are interested in the rpm... Unni ([email protected]) May 29, 2016 at 1:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .