Dovecot/MySQL/Postfix - Setting up Folders
I have tried setting it up in the Dovecot configuration file (dovecot.conf). But, it still doesn't seem to operate as expected (or at all).
My current dovecot.conf:
> protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n/Maildir
sslcertfile = /etc/ssl/certs/dovecot.pem
sslkeyfile = /etc/ssl/private/dovecot.pem
namespace private {
separator = .
prefix = INBOX.
inbox = yes
}
namespace private {
separator = .
prefix = INBOX.Trash.
inbox = no
}
protocol lda {
log_path = /home/vmail/dovecot-deliver.log
authsocketpath = /var/run/dovecot/auth-master
postmaster_address = postmaster@
.com mail_plugins = sieve
globalscriptpath = /home/vmail/globalsieverc
}
protocol pop3 {
pop3uidlformat = %08Xu%08Xv
}
auth default {
user = root
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
userdb static {
args = uid=5000 gid=5000 home=/home/vmail/%d/%n allowallusers=yes
}
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
Thank you for your help!
3 Replies
I'm with the same problem. I did follow this tutorial [1] and I can telnet to dovecot and postfix, but there isn't anything under /home/vmail - user's home where the mailboxes is supposed to be.
If somebody could give me any hints ou clues, I'll appreciate.
Thanks in advance.
1 -
sudo maildirmake.dovecot /etc/skel/Maildir
sudo maildirmake.dovecot /etc/skel/Maildir/.Drafts
sudo maildirmake.dovecot /etc/skel/Maildir/.Sent
sudo maildirmake.dovecot /etc/skel/Maildir/.Trash
sudo maildirmake.dovecot /etc/skel/Maildir/.Templates
Make sure you replace the directories as necessary.