[Dovecot] "Real" users AND Virtual users

Odhiambo WASHINGTON odhiambo.raburu at wananchi.com
Tue Oct 24 19:53:32 UTC 2006


* On 25/10/06 01:38 +0700, Muhamad A. Martoprawiro wrote:
| Dear all, 
| How can I use dovecot for both "real" users and virtual users?
| 
| I could configure dovecot for real users, by using these lines
| in /etc/dovecot.conf:
|   default_mail_env = maildir:%h/Maildir
|   auth default {
|   passdb pam {
|     }
|   userdb passwd {
|     }
|   }
| 
| To accept virtual users, I used these lines: 
| default_mail_env = maildir:/usr/local/virtual/%u/
| auth default {
| passdb sql {
|         args = /etc/dovecot-mysql.conf
|   }
| userdb sql {
|         args = /etc/dovecot-mysql.conf
|   }
| }
| 
| But, again, how to accept both kind of users?

Use something like this (I use FreeBSD, hence master.passwd):

  passdb pam {
       args = *
             }
  userdb passwd {
       args = /etc/master.passwd
             }
  passdb sql {
        args = /etc/dovecot-mysql.conf
             }
  userdb sql {
        args = /etc/dovecot-mysql.conf
             }

If the 1st option fails, Dovecot tries the alternative, IIRC.

[snip irrelevant stuff]


-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wash at wananchi.com>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+

If I traveled to the end of the rainbow
As Dame Fortune did intend,
Murphy would be there to tell me
The pot's at the other end.
		-- Bert Whitney


More information about the dovecot mailing list