[Dovecot] Dovecot newbie (migrating from qmail)
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?
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 /home/vmail/$domain/$user/ <-- sieve and other sundry store here Or should the sieve stuff also be under its own folder alongside the maildir?
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).
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?
Later on, I think I want to integrate some kind of virus and spam filtering (amavisd and maybe dspam - anybody used those? would I configure Postfix to handle that or dovecot-lmtp?)
Im sure Ill have more questions as I get more complicated but baby steps for now.
-- Aj.
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
On Tue, Nov 13, 2012 at 2:04 AM, Alessio Cecchi <alessio@skye.it> wrote:
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.
Does Dovecot provide a utility to create maildirs?
-- Aj.
Il 13/11/2012 17:28, Ajai Khattri ha scritto:
On Tue, Nov 13, 2012 at 2:04 AM, Alessio Cecchi <alessio@skye.it> wrote:
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.
Does Dovecot provide a utility to create maildirs?
Yes, "maildirmake"
-- 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
On 11/13/2012 05:28 PM Ajai Khattri wrote:
Does Dovecot provide a utility to create maildirs?
http://wiki2.dovecot.org/Tools/Doveadm/Mailbox#command_mailbox_create
doveadm <http://wiki2.dovecot.org/Tools/Doveadm> will be your friend.
Regards, Pascal
The trapper recommends today: deadbeef.1231819@localdomain.org
participants (3)
-
Ajai Khattri
-
Alessio Cecchi
-
Pascal Volk