[Dovecot] Dovecot 2 + IMAP
This is my first experience of the mail server.
Set up a mail server from Postfix + Dovecot with the MySQL authorization. When you create a new user dovecot makes strange folder structure: the 'inbox' contains 'juncus', 'tash', 'sent' etc. ie 'sent' and other folders are subdir to the 'inbox'. How to make the imap folders 'sent', 'trash' and others were not affiliated?
I have IMAP answer:
. list "" "*"
- LIST (\HasChildren) "." "INBOX" . OK List completed.
No trash, no drafts, no other folder. All this folder included in INBOX ((((
But I want (my clients wants):
- LIST (\HasNoChildren) "." "Drafts"
- LIST (\HasNoChildren) "." "INBOX"
- LIST (\HasNoChildren) "." "Trash"
- LIST (\HasNoChildren) "." "Sent"
- LIST (\HasNoChildren) "." "spam"
P.S. Sorry for my english.
P.P.S.
# dovecot --version 2.1.7
# dovecot -n
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0 ext4
auth_debug = yes
auth_debug_passwords = yes
auth_verbose = yes
auth_verbose_passwords = plain
base_dir = /run/dovecot/
debug_log_path = /var/vmail/dovecot.log
disable_plaintext_auth = no
info_log_path = /var/vmail/dovecot.log
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = 213.7.204.34
log_path = /var/vmail/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_greeting = MAIL_DOMAIN_NAME IMAP server ready.
mail_debug = yes
mail_location = maildir:/var/vmail/%d/%n/Maildir
mail_plugins = " quota"
namespace inbox {
hidden = no
inbox = yes
list = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Trash {
special_use = \Trash
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
prefix = INBOX.
separator = .
type = private
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
quota = maildir:User quota
quota_rule = *:storage=1G
quota_rule2 = Trash:storage=+10%%
quota_rule3 = Junk:storage=+10%%
quota_rule4 = Drafts:storage=+10%%
quota_warning = storage=95%% quota-warning 95 %u
}
postmaster_address = admin@ MAIL_DOMAIN_NAME
protocols = " imap pop3"
service auth-worker {
executable = auth -w
unix_listener auth-worker {
group =
mode = 0600
}
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-master {
group = vmail
mode = 0600
user = vmail
}
unix_listener auth-userdb {
group =
mode = 0600
user =
}
user = root
}
service dict {
unix_listener dict {
group =
mode = 0600
user =
}
}
service imap-login {
inet_listener imap {
port = 0
}
inet_listener imaps {
port = 993
ssl = yes
}
process_min_avail = 0
service_count = 1
}
service imap {
unix_listener login/imap {
group =
mode = 0666
user =
}
}
service lmtp {
unix_listener lmtp {
group =
mode = 0666
user =
}
}
service pop3-login {
inet_listener pop3 {
port = 0
}
inet_listener pop3s {
port = 0
ssl = yes
}
}
service pop3 {
unix_listener login/pop3 {
group =
mode = 0666
user =
}
}
ssl = required
ssl_ca =
ssl_cert =
ssl_key =
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
verbose_ssl = yes
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
log_path = /var/vmail/dovecot-deliver.log
postmaster_address = admin@ MAIL_DOMAIN_NAME
}
protocol imap {
mail_plugins = " quota autocreate imap_quota"
}
On 06/12/2013 07:44 PM, Alex Dubinin wrote:
This is my first experience of the mail server.
Set up a mail server from Postfix + Dovecot with the MySQL authorization. When you create a new user dovecot makes strange folder structure: the 'inbox' contains 'juncus', 'tash', 'sent' etc. ie 'sent' and other folders are subdir to the 'inbox'. How to make the imap folders 'sent', 'trash' and others were not affiliated?
prefix = INBOX.
Remove this. This is a common misconfiguration. Where did you find this? Does Debian have this in default config or sth? -- Aleksander 'A.L.E.C' Machniak LAN Management System Developer [http://lms.org.pl] Roundcube Webmail Developer [http://roundcube.net] --------------------------------------------------- PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
participants (2)
-
A.L.E.C
-
Alex Dubinin