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'. My result: 04 LIST "" "*" * LIST (\HasChildren) "." "INBOX" * LIST (\HasNoChildren) "." "INBOX.Trash" I want: 04 LIST "" "*" * LIST (\HasNoChildren) "." "INBOX" * LIST (\HasNoChildren) "." "Trash" # 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 = MY_IP 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 = </etc/dovecot/MAIL_SERVER_NAME-ca.crt ssl_cert = </etc/dovecot/MAIL_SERVER_NAME .crt ssl_key = </etc/dovecot/private/MAIL_SERVER_NAME .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" } How to make the imap folders 'sent', 'trash' and others were not affiliated? P.S. Sorry for my english. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 554 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20130607/3c250e03/attachment-0001.bin>
On Fri, Jun 7, 2013 at 9:23 AM, Alex Dubinin <maillist.debian at gmail.com>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'. > > My result: > > 04 LIST "" "*" > * LIST (\HasChildren) "." "INBOX" > * LIST (\HasNoChildren) "." "INBOX.Trash" > > I want: > > 04 LIST "" "*" > * LIST (\HasNoChildren) "." "INBOX" > * LIST (\HasNoChildren) "." "Trash" > > 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 > } >You explicitly told Dovecot to ... Luca
On 06/07/2013 09:23 AM, Alex Dubinin wrote:> How to make the imap folders 'sent', 'trash' and others were not affiliated?Remove this: prefix = INBOX. -- 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