[Dovecot] Dovecot newbie (migrating from qmail)

Alessio Cecchi alessio at skye.it
Tue Nov 13 09:04:47 EET 2012


Il 13/11/2012 06:09, Ajai Khattri ha scritto:
> Ive been using qmail+vpopmail+courier-imap for many years but its time to
> retire that server so I thought this might be an opportunity to see how I
> could use Postfix and Dovecot to provide the same services. Im running
> Dovecot 2.1.9 and Postfix 2.9.4.
>
> I have spent a few days reading through some of the docs on the wiki
> (there's doesn't seem to be any large overview of Dovecot concepts or books
> so bear with me).
>
> Im thinking something simple like passwd-file setup would suffice for me. I
> want to use completely virtual users.
>
> Id like to store mail under /home/vmail/$domain/$user. I think Ive figured
> out how to do that. But how do I create the maildir?

Maildir/ will automatically created when the first email arrives or 
during the first user login. It would be better if you create the folder 
during the creation of the users.
>
> I understand the need to have a mail directory but also a directory for
> things like sieve - how to specify that?
>
> Im thinking the structure would be something like:
> /home/vmail/$domain/$user/mail <-- mail stored here
Yes, better (by convention) if named Maildir/
> /home/vmail/$domain/$user/ <-- sieve and other sundry store here
> Or should the sieve stuff also be under its own folder alongside the
> maildir?

Inside Maildir/ named sieve/ or always without tarting with a dot
>
> Is it possible to have a separate passwd file per domain? It is possible to
> combine password and userdb files into one per domain? (I prefer to keep
> all files related to each domain in its own folder).
Yes,

passdb {
   driver = passwd-file
   # Each domain has a separate passwd-file:
   args = /etc/auth/%d/passwd
}

Yes: http://wiki2.dovecot.org/AuthDatabase/PasswdFile
>
> Also would like to configure Postfix to use dovecot-sasl and I want to use
> dovecot-lmtp for deliveries. Any good docs / example on those?

For SASL http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL

Ciao

-- 
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it




More information about the dovecot mailing list