Defining Virtual and Real User Directories with Dovecot & Postfix

Posted by blankabout on Server Fault See other posts from Server Fault or by blankabout
Published on 2012-07-02T14:38:58Z Indexed on 2012/07/02 15:17 UTC
Read the original article Hit count: 233

Filed under:
|

Following a wobble described in this question we now have virtual and real users authenticating with Dovecot, the problem now is that the real users (who have been on the system for years) can no longer access their mail. I'm guessing that it is because Dovecot is configured to point to the virtual mailboxes but not the real mail boxes.

These are snippets from the config files:

/etc/dovecot/dovecot.conf
!include conf.d/*.conf

/etc/dovecot/conf.d/10-auth.cong passdb { driver = passwd-file # Path for passwd-file. Also set the default password scheme. args = scheme=cram-md5 /etc/cram-md5.pwd } userdb { driver=static #args = mail_uid=dovecot mail_gid=dovecot /etc/dovecot/userdb args = uid=vmail gid=vmail home=/var/spool/vhosts/%d/%n /etc/dovecot/userdb }

[email protected]:::::/var/spool/vhosts/virtualdomain.com/:/bin/false::

We think the problem is that the Dovecot file 10-auth.conf does not contain a method of accessing the mailboxes for the real users. We have looked around on this site, dovecot.org and done the usual googling but cannot find anywhere that describes how to set up virtual users on alongside legacy real users.

Any help would be appreciated, especially by our real users who would like the contents of their inboxes to be available!

If any further config is required, please let me know.

© Server Fault or respective owner

Related posts about postfix

Related posts about dovecot