Do not working Vitual Flagged / All.
Hello,
I also proceeded according to this thread (https://dovecot.org/list/dovecot/2022-January/123979.html), but it is not working.
My settings are as follows:
[]# dovecot -n # 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.16 (09c29328) \# OS: Linux 5.15.0-125-generic x86_64 Ubuntu 22.04.5 LTS # Hostname: localhost auth_debug = yes auth_debug_passwords = yes auth_default_realm = example.com auth_mechanisms = plain login auth_username_format = %u auth_verbose = yes dict { quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext } mail_debug = yes mail_home = /home/vmail/%d/%n mail_location = maildir:~/Maildir mail_plugins = quota virtual mail_privileged_group = mail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext namespace inbox { inbox = yes location = mailbox 보낼편지함 { auto = subscribe } mailbox Archive { auto = subscribe special_use = \Archive } mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } mailbox virtual/All { auto = subscribe comment = All my messages special_use = \All } mailbox virtual/Flagged { auto = subscribe comment = All my flagged messages special_use = \Flagged } prefix = INBOX/ separator = / type = private } namespace virtual { hidden = yes list = no location = virtual:/etc/dovecot/virtual:INDEX=~/.virtual:CONTROL=~/.virtual:VOLATILEDIR=~/.virtual/ prefix = virtual/ separator = / type = private } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { quota = dict:User quota::proxy::quota quota_grace = 10%% quota_max_mail_size = 100M quota_rule = *:storage=1G quota_rule2 = INBOX/Trash:storage=+100M quota_status_overquota = 552 5.2.2 Mailbox is full quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u quota_warning4 = -storage=100%% quota-warning -100 %u sieve = file:~/sieve;active=~/.dovecot.sieve sieve_before = /var/mail/SpamToJunk.sieve } protocols = " imap lmtp sieve pop3" service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } } service dict { unix_listener dict { group = vmail mode = 0600 user = vmail } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = vmail } user = dovecot } service stats { unix_listener stats-reader { group = www-data mode = 0660 user = www-data } unix_listener stats-writer { group = www-data mode = 0660 user = www-data } } ssl = required ssl_cert = </etc/letsencrypt/live/mail/fullchain.pem ssl_client_ca_dir = /etc/ssl/certs ssl_dh = # hidden, use -P to show it ssl_key = # hidden, use -P to show it ssl_prefer_server_ciphers = yes userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } verbose_ssl = yes protocol lmtp { mail_plugins = quota virtual quota sieve virtual } protocol lda { mail_plugins = quota virtual sieve virtual } protocol imap { mail_plugins = quota virtual imap_quota virtual } local_name mail.edgenet.kr { ssl_cert = </etc/letsencrypt/live/mail/fullchain.pem ssl_key = # hidden, use -P to show it }
[]# cat /etc/dovecot/virtual/Flagged/dovecot-virtual * flagged []# cat /etc/dovecot/virtual/All/dovecot-virtual * all
[/home/vmail/domain/user/Maildir]# ls -al 합계 84 drwx------ 13 vmail vmail 4096 12월 11 15:12 . drwx------ 5 vmail vmail 4096 12월 11 13:49 '.&vPSwvNO4ycDVaA-' drwx------ 3 vmail vmail 4096 12월 11 15:13 .. drwx------ 5 vmail vmail 4096 12월 11 13:49 .Archive drwx------ 5 vmail vmail 4096 12월 11 13:49 .Drafts drwx------ 5 vmail vmail 4096 12월 11 14:02 .Junk drwx------ 5 vmail vmail 4096 12월 11 13:49 .Sent drwx------ 5 vmail vmail 4096 12월 11 14:02 .Trash drwx------ 5 vmail vmail 4096 12월 11 13:49 .virtual.All drwx------ 5 vmail vmail 4096 12월 11 13:49 .virtual.Flagged drwx------ 2 vmail vmail 4096 12월 11 15:12 cur -rw------- 1 vmail vmail 110 12월 11 13:48 dovecot-uidlist -rw------- 1 vmail vmail 8 12월 11 14:02 dovecot-uidvalidity -r--r--r-- 1 vmail vmail 0 12월 11 13:48 dovecot-uidvalidity.675919c5 -rw------- 1 vmail vmail 3728 12월 11 14:26 dovecot.index.cache -rw------- 1 vmail vmail 1940 12월 11 15:12 dovecot.index.log -rw------- 1 vmail vmail 7404 12월 11 15:03 dovecot.list.index.log -rw------- 1 vmail vmail 288 12월 11 14:02 dovecot.mailbox.log -rw------- 1 vmail vmail 0 12월 11 13:48 maildirfolder drwx------ 2 vmail vmail 4096 12월 11 13:49 new -rw------- 1 vmail vmail 81 12월 11 13:49 subscriptions drwx------ 2 vmail vmail 4096 12월 11 13:48 tmp
Can I get help to resolve the issue?
On 11/12/2024 08:53 EET yisuyong--- via dovecot <dovecot@dovecot.org> wrote:
Hello,
I also proceeded according to this thread (https://dovecot.org/list/dovecot/2022-January/123979.html), but it is not working.
My settings are as follows:
Can I get help to resolve the issue?
Maybe provide some more information about what exactly is not working?
Aki
My goal is to be able to "fetch" all emails with the virtual.All, and all "flagged" emails with virtual.Flagged.
For example, If Thunderbird has Starred checked some of the mail in your inbox, I would like to make sure that you can check it in the "virtual.Flagged" mailbox.
It does not appear to work with the current settings.
On ons, 2024/12/11 at 06:53:19 +0000, yisuyong--- via dovecot wrote:
Hello,
I also proceeded according to this thread (https://dovecot.org/list/dovecot/2022-January/123979.html), but it is not working.
My settings are as follows:
[snip]
mail_plugins = quota virtual [snip] namespace virtual { hidden = yes list = no location = virtual:/etc/dovecot/virtual:INDEX=~/.virtual:CONTROL=~/.virtual:VOLATILEDIR=~/.virtual/ prefix = virtual/ separator = / type = private } [snip]
Add "subscriptions = no" to this namespace. If you have subscriptions enabled, you will have crashes.
Trimmed all that was not relevant to this piece below.
[]# cat /etc/dovecot/virtual/Flagged/dovecot-virtual * flagged []# cat /etc/dovecot/virtual/All/dovecot-virtual * all
I have almost identical setup.
Is /etc/dovecot/virtual vmail:vmail ownership for directories and files?
root@debian:~# cat /etc/dovecot/virtual/All/dovecot-virtual * -Junk -[virt]/* -Trash -Trash/* all root@debian:~# cat /etc/dovecot/virtual/Flagged/dovecot-virtual [virt]/All flagged root@debian:~#
This setup works here (my virtual namespace is named [virt]). The reason for excluding '[virt]' folders in the 'All' is so you do not end up with duplicate messages showing. If your 'All' covers every folder, you can in other virtual folders reference the 'All' folder rather than using '*'.
[/home/vmail/domain/user/Maildir]# ls -al 합계 84 drwx------ 13 vmail vmail 4096 12월 11 15:12 . drwx------ 5 vmail vmail 4096 12월 11 13:49 '.&vPSwvNO4ycDVaA-' drwx------ 3 vmail vmail 4096 12월 11 15:13 .. drwx------ 5 vmail vmail 4096 12월 11 13:49 .Archive drwx------ 5 vmail vmail 4096 12월 11 13:49 .Drafts drwx------ 5 vmail vmail 4096 12월 11 14:02 .Junk drwx------ 5 vmail vmail 4096 12월 11 13:49 .Sent drwx------ 5 vmail vmail 4096 12월 11 14:02 .Trash drwx------ 5 vmail vmail 4096 12월 11 13:49 .virtual.All drwx------ 5 vmail vmail 4096 12월 11 13:49 .virtual.Flagged drwx------ 2 vmail vmail 4096 12월 11 15:12 cur -rw------- 1 vmail vmail 110 12월 11 13:48 dovecot-uidlist -rw------- 1 vmail vmail 8 12월 11 14:02 dovecot-uidvalidity -r--r--r-- 1 vmail vmail 0 12월 11 13:48 dovecot-uidvalidity.675919c5 -rw------- 1 vmail vmail 3728 12월 11 14:26 dovecot.index.cache -rw------- 1 vmail vmail 1940 12월 11 15:12 dovecot.index.log -rw------- 1 vmail vmail 7404 12월 11 15:03 dovecot.list.index.log -rw------- 1 vmail vmail 288 12월 11 14:02 dovecot.mailbox.log -rw------- 1 vmail vmail 0 12월 11 13:48 maildirfolder drwx------ 2 vmail vmail 4096 12월 11 13:49 new -rw------- 1 vmail vmail 81 12월 11 13:49 subscriptions drwx------ 2 vmail vmail 4096 12월 11 13:48 tmp
When you in your email client open the /virtual/Flagged or /virtual/All folder, what do you see?
At a guess, remembering my own struggles with virtual namespace and folders, disable subscriptions for your virtual namespace and then we can take a look again if things are not working still.
-- Kind regards,
/S
I added "subscription = no" as you said
namespace virtual { hidden = yes list = no location = virtual:/etc/dovecot/virtual:INDEX=~/.virtual:CONTROL=~/.virtual:VOLATILEDIR=~/.virtual/ prefix = virtual/ separator = / subscriptions = no type = private }
And I done change ownership and dovecot-virtual. []#chown -R vmail:vmail /etc/dovecot/virtual []# ls -la /etc/dovecot/virtual drwxr-xr-x 4 vmail vmail 4096 12월 11 12:47 . drwxr-xr-x 5 root root 4096 12월 11 16:44 .. drwxr-xr-x 2 vmail vmail 4096 12월 11 16:27 All drwxr-xr-x 2 vmail vmail 4096 12월 11 16:27 Flagged
[]# cat /etc/dovecot/virtual/All/dovecot-virtual * -Junk -[virtual]/* -Trash -Trash/* all
[]# cat /etc/dovecot/virtual/Flagged/dovecot-virtual [virtual]/All flagged
When you in your email client open the /virtual/Flagged or /virtual/All folder, what do you see?
I can't see anything.
Debugging log for Dovecot when you click Flagged.
Dec 11 16:13:39 mail dovecot: auth: Debug: auth client connected (pid=271743) Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x10, ret=1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read client hello Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write server hello Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write change cipher spec Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write encrypted extensions Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write certificate Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write server certificate verify Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write finished Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data Dec 11 16:13:39 mail dovecot: message repeated 2 times: [ imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data] Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read finished Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x20, ret=1: SSLv3/TLS write session ticket Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2002, ret=1: SSL negotiation finished successfully Dec 11 16:13:39 mail dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured=tls#011session=t9Y+VvkoZqV/AAAB#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=42342#011local_name=mail.example.com#011resp=AGppbW15QGVkZ2VuZXQua3IAVGJ2amFvczk1MCE= (previous base64 data may contain sensitive data) Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing passdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: Handling PASSV request Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing passdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): query: SELECT username AS user,password FROM mailbox WHERE username = 'user1@example.com' AND active='1' Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: mysql(localhost): Finished query 'SELECT username AS user,password FROM mailbox WHERE username = 'user1@example.com' AND active='1'' in 0 msecs Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished passdb lookup Dec 11 16:13:39 mail dovecot: auth: Debug: auth(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Auth request finished Dec 11 16:13:39 mail dovecot: auth: Debug: client passdb out: OK#0111#011user=user1@example.com#011 Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished passdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: Finished Dec 11 16:13:39 mail dovecot: auth: Debug: master in: REQUEST#0113602776065#011271743#0111#011b5686d3c53ea773e7fb938fcd8ca0dc0#011session_pid=271744#011request_auth_token Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing userdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: Handling USER request Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing userdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): SELECT CONCAT('/home/vmail/', maildir) AS home, 6000 AS uid, 6000 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = 'user1@example.com' AND active='1' Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: mysql(localhost): Finished query 'SELECT CONCAT('/home/vmail/', maildir) AS home, 6000 AS uid, 6000 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = 'user1@example.com' AND active='1'' in 0 msecs Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished userdb lookup Dec 11 16:13:39 mail dovecot: auth: Debug: master userdb out: USER#0113602776065#011user1@example.com#011home=/home/vmail/example.com/user1/#011uid=6000#011gid=6000#011quota_rule=*:bytes=11264000#011auth_mech=PLAIN#011auth_token=afb051dec9014e1a66f47f144b554eabc8e53ecd Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished userdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: Finished Dec 11 16:13:39 mail dovecot: imap-login: Login: user=<user1@example.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=271744, TLS, session=<t9Y+VvkoZqV/AAAB> Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Loading modules from directory: /usr/lib/dovecot/modules Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Module loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Module loaded: /usr/lib/dovecot/modules/lib20_virtual_plugin.so Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Added userdb setting: plugin/quota_rule=*:bytes=11264000 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Effective uid=6000, gid=6000, home=/home/vmail/example.com/user1/ Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota root: name=User quota backend=dict args=:proxy::quota Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota rule: root=User quota mailbox=* bytes=11264000 messages=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota rule: root=User quota mailbox=INBOX/Trash bytes=+104857600 messages=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota warning: bytes=10700800 (95%) messages=0 reverse=no command=quota-warning 95 user1@example.com Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota warning: bytes=9011200 (80%) messages=0 reverse=no command=quota-warning 80 user1@example.com Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota grace: root=User quota bytes=1126400 (10%) Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: quota-dict: user=user1@example.com, uri=proxy::quota, noenforcing=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Namespace virtual: type=private, prefix=virtual/, sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes location=virtual:/etc/dovecot/virtual:INDEX=~/.virtual:CONTROL=~/.virtual:VOLATILEDIR=~/.virtual/ Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: fs: root=/etc/dovecot/virtual, index=/home/vmail/example.com/user1//.virtual, indexpvt=, control=/home/vmail/example.com/user1//.virtual, inbox=, alt= Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: maildir++: root=/home/vmail/example.com/user1//Maildir, index=, indexpvt=, control=, inbox=/home/vmail/example.com/user1//Maildir, alt= Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Namespace : type=private, prefix=, sep=, inbox=no, hidden=yes, list=no, subscriptions=no location=fail::LAYOUT=none Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: none: root=, index=, indexpvt=, control=, inbox=, alt= Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: quota: quota_over_flag check: quota_over_script unset - skipping Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up 'priv/quota/storage' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up (async) 'priv/quota/storage' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: conn unix:/run/dovecot/dict: Connecting Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: conn unix:/run/dovecot/dict (pid=270426,uid=0): Client connected (fd=9) Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/storage': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/storage': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up 'priv/quota/messages' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up (async) 'priv/quota/messages' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/messages': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/messages': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: conn unix:/run/dovecot/dict (pid=270426,uid=0): Disconnected: Connection closed (fd=9) Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL alert: close notify Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Disconnected: Logged out in=365 out=818 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Waiting for dict to finish pending operations
Are there any other settings that need to be modified?
Debugging log for Dovecot when I clicked Flagged.
Dec 11 16:13:39 mail dovecot: auth: Debug: auth client connected (pid=271743) Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x10, ret=1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read client hello Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write server hello Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write change cipher spec Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write encrypted extensions Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write certificate Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write server certificate verify Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write finished Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data Dec 11 16:13:39 mail dovecot: message repeated 2 times: [ imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data] Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read finished Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x20, ret=1: SSLv3/TLS write session ticket Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2002, ret=1: SSL negotiation finished successfully Dec 11 16:13:39 mail dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured=tls#011session=t9Y+VvkoZqV/AAAB#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=42342#011local_name=mail.example.com#011resp=AGppbW15QGVkZ2VuZXQua3IAVGJ2amFvczk1MCE= (previous base64 data may contain sensitive data) Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing passdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: Handling PASSV request Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing passdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): query: SELECT username AS user,password FROM mailbox WHERE username = 'user1@example.com' AND active='1' Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: mysql(localhost): Finished query 'SELECT username AS user,password FROM mailbox WHERE username = 'user1@example.com' AND active='1'' in 0 msecs Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished passdb lookup Dec 11 16:13:39 mail dovecot: auth: Debug: auth(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Auth request finished Dec 11 16:13:39 mail dovecot: auth: Debug: client passdb out: OK#0111#011user=user1@example.com#011 Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished passdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: Finished Dec 11 16:13:39 mail dovecot: auth: Debug: master in: REQUEST#0113602776065#011271743#0111#011b5686d3c53ea773e7fb938fcd8ca0dc0#011session_pid=271744#011request_auth_token Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing userdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: Handling USER request Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing userdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): SELECT CONCAT('/home/vmail/', maildir) AS home, 6000 AS uid, 6000 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = 'user1@example.com' AND active='1' Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: mysql(localhost): Finished query 'SELECT CONCAT('/home/vmail/', maildir) AS home, 6000 AS uid, 6000 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = 'user1@example.com' AND active='1'' in 0 msecs Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished userdb lookup Dec 11 16:13:39 mail dovecot: auth: Debug: master userdb out: USER#0113602776065#011user1@example.com#011home=/home/vmail/example.com/user1/#011uid=6000#011gid=6000#011quota_rule=*:bytes=11264000#011auth_mech=PLAIN#011auth_token=afb051dec9014e1a66f47f144b554eabc8e53ecd Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished userdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: Finished Dec 11 16:13:39 mail dovecot: imap-login: Login: user=<user1@example.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=271744, TLS, session=<t9Y+VvkoZqV/AAAB> Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Loading modules from directory: /usr/lib/dovecot/modules Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Module loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Module loaded: /usr/lib/dovecot/modules/lib20_virtual_plugin.so Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Added userdb setting: plugin/quota_rule=*:bytes=11264000 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Effective uid=6000, gid=6000, home=/home/vmail/example.com/user1/ Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota root: name=User quota backend=dict args=:proxy::quota Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota rule: root=User quota mailbox=* bytes=11264000 messages=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota rule: root=User quota mailbox=INBOX/Trash bytes=+104857600 messages=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota warning: bytes=10700800 (95%) messages=0 reverse=no command=quota-warning 95 user1@example.com Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota warning: bytes=9011200 (80%) messages=0 reverse=no command=quota-warning 80 user1@example.com Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota grace: root=User quota bytes=1126400 (10%) Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: quota-dict: user=user1@example.com, uri=proxy::quota, noenforcing=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Namespace virtual: type=private, prefix=virtual/, sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes location=virtual:/etc/dovecot/virtual:INDEX=~/.virtual:CONTROL=~/.virtual:VOLATILEDIR=~/.virtual/ Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: fs: root=/etc/dovecot/virtual, index=/home/vmail/example.com/user1//.virtual, indexpvt=, control=/home/vmail/example.com/user1//.virtual, inbox=, alt= Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: maildir++: root=/home/vmail/example.com/user1//Maildir, index=, indexpvt=, control=, inbox=/home/vmail/example.com/user1//Maildir, alt= Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Namespace : type=private, prefix=, sep=, inbox=no, hidden=yes, list=no, subscriptions=no location=fail::LAYOUT=none Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: none: root=, index=, indexpvt=, control=, inbox=, alt= Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: quota: quota_over_flag check: quota_over_script unset - skipping Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up 'priv/quota/storage' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up (async) 'priv/quota/storage' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: conn unix:/run/dovecot/dict: Connecting Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: conn unix:/run/dovecot/dict (pid=270426,uid=0): Client connected (fd=9) Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/storage': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/storage': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up 'priv/quota/messages' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up (async) 'priv/quota/messages' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/messages': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/messages': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: conn unix:/run/dovecot/dict (pid=270426,uid=0): Disconnected: Connection closed (fd=9) Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL alert: close notify Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Disconnected: Logged out in=365 out=818 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Waiting for dict to finish pending operations
On ons, 2024/12/11 at 08:00:29 +0000, yisuyong--- via dovecot wrote:
I added "subscription = no" as you said
namespace virtual { hidden = yes list = no location = virtual:/etc/dovecot/virtual:INDEX=~/.virtual:CONTROL=~/.virtual:VOLATILEDIR=~/.virtual/ prefix = virtual/ separator = / subscriptions = no type = private }
And I done change ownership and dovecot-virtual. []#chown -R vmail:vmail /etc/dovecot/virtual []# ls -la /etc/dovecot/virtual drwxr-xr-x 4 vmail vmail 4096 12월 11 12:47 . drwxr-xr-x 5 root root 4096 12월 11 16:44 .. drwxr-xr-x 2 vmail vmail 4096 12월 11 16:27 All drwxr-xr-x 2 vmail vmail 4096 12월 11 16:27 Flagged
[]# cat /etc/dovecot/virtual/All/dovecot-virtual * -Junk -[virtual]/* -Trash -Trash/* all
The "all" here needs a space in front of it. I don't know why, but if it is not indented it will not work (from my own experience). Try putting a space or two in front of it.
[]# cat /etc/dovecot/virtual/Flagged/dovecot-virtual [virtual]/All flagged
When you in your email client open the /virtual/Flagged or /virtual/All folder, what do you see?
I can't see anything.
Debugging log for Dovecot when you click Flagged.
Dec 11 16:13:39 mail dovecot: auth: Debug: auth client connected (pid=271743) Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x10, ret=1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read client hello Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write server hello Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write change cipher spec Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write encrypted extensions Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write certificate Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write server certificate verify Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write finished Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data Dec 11 16:13:39 mail dovecot: message repeated 2 times: [ imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data] Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read finished Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x20, ret=1: SSLv3/TLS write session ticket Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL: where=0x2002, ret=1: SSL negotiation finished successfully Dec 11 16:13:39 mail dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured=tls#011session=t9Y+VvkoZqV/AAAB#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=42342#011local_name=mail.example.com#011resp=AGppbW15QGVkZ2VuZXQua3IAVGJ2amFvczk1MCE= (previous base64 data may contain sensitive data) Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing passdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: Handling PASSV request Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing passdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): query: SELECT username AS user,password FROM mailbox WHERE username = 'user1@example.com' AND active='1' Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: mysql(localhost): Finished query 'SELECT username AS user,password FROM mailbox WHERE username = 'user1@example.com' AND active='1'' in 0 msecs Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished passdb lookup Dec 11 16:13:39 mail dovecot: auth: Debug: auth(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Auth request finished Dec 11 16:13:39 mail dovecot: auth: Debug: client passdb out: OK#0111#011user=user1@example.com#011 Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished passdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<5>: Finished Dec 11 16:13:39 mail dovecot: auth: Debug: master in: REQUEST#0113602776065#011271743#0111#011b5686d3c53ea773e7fb938fcd8ca0dc0#011session_pid=271744#011request_auth_token Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing userdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: Handling USER request Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Performing userdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): SELECT CONCAT('/home/vmail/', maildir) AS home, 6000 AS uid, 6000 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = 'user1@example.com' AND active='1' Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: mysql(localhost): Finished query 'SELECT CONCAT('/home/vmail/', maildir) AS home, 6000 AS uid, 6000 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = 'user1@example.com' AND active='1'' in 0 msecs Dec 11 16:13:39 mail dovecot: auth: Debug: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished userdb lookup Dec 11 16:13:39 mail dovecot: auth: Debug: master userdb out: USER#0113602776065#011user1@example.com#011home=/home/vmail/example.com/user1/#011uid=6000#011gid=6000#011quota_rule=*:bytes=11264000#011auth_mech=PLAIN#011auth_token=afb051dec9014e1a66f47f144b554eabc8e53ecd Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: sql(user1@example.com,127.0.0.1,<t9Y+VvkoZqV/AAAB>): Finished userdb lookup Dec 11 16:13:39 mail dovecot: auth-worker(271735): Debug: conn unix:auth-worker (pid=270435,uid=115): auth-worker<6>: Finished Dec 11 16:13:39 mail dovecot: imap-login: Login: user=<user1@example.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=271744, TLS, session=<t9Y+VvkoZqV/AAAB> Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Loading modules from directory: /usr/lib/dovecot/modules Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Module loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Module loaded: /usr/lib/dovecot/modules/lib20_virtual_plugin.so Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Added userdb setting: plugin/quota_rule=*:bytes=11264000 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Effective uid=6000, gid=6000, home=/home/vmail/example.com/user1/ Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota root: name=User quota backend=dict args=:proxy::quota Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota rule: root=User quota mailbox=* bytes=11264000 messages=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota rule: root=User quota mailbox=INBOX/Trash bytes=+104857600 messages=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota warning: bytes=10700800 (95%) messages=0 reverse=no command=quota-warning 95 user1@example.com Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota warning: bytes=9011200 (80%) messages=0 reverse=no command=quota-warning 80 user1@example.com Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Quota grace: root=User quota bytes=1126400 (10%) Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: quota-dict: user=user1@example.com, uri=proxy::quota, noenforcing=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Namespace virtual: type=private, prefix=virtual/, sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes location=virtual:/etc/dovecot/virtual:INDEX=~/.virtual:CONTROL=~/.virtual:VOLATILEDIR=~/.virtual/ Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: fs: root=/etc/dovecot/virtual, index=/home/vmail/example.com/user1//.virtual, indexpvt=, control=/home/vmail/example.com/user1//.virtual, inbox=, alt= Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: maildir++: root=/home/vmail/example.com/user1//Maildir, index=, indexpvt=, control=, inbox=/home/vmail/example.com/user1//Maildir, alt= Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: Namespace : type=private, prefix=, sep=, inbox=no, hidden=yes, list=no, subscriptions=no location=fail::LAYOUT=none Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: none: root=, index=, indexpvt=, control=, inbox=, alt= Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: quota: quota_over_flag check: quota_over_script unset - skipping Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up 'priv/quota/storage' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up (async) 'priv/quota/storage' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: conn unix:/run/dovecot/dict: Connecting Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: conn unix:/run/dovecot/dict (pid=270426,uid=0): Client connected (fd=9) Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/storage': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/storage': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up 'priv/quota/messages' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Looking up (async) 'priv/quota/messages' Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/messages': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Lookup finished for 'priv/quota/messages': found Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: conn unix:/run/dovecot/dict (pid=270426,uid=0): Disconnected: Connection closed (fd=9) Dec 11 16:13:39 mail dovecot: imap-login: Debug: SSL alert: close notify Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Disconnected: Logged out in=365 out=818 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Dec 11 16:13:39 mail dovecot: imap(user1@example.com)<271744><t9Y+VvkoZqV/AAAB>: Debug: dict(proxy)<user1@example.com>: Waiting for dict to finish pending operations
Are there any other settings that need to be modified?
I do not think so. The subscriptions and the indentation of the search criteria was my main stumbling blocks - maybe I got lucky and did not run into other things.
namespace virtual { prefix = "[virt]/" hidden = no list = yes subscriptions = no separator = / location = virtual:/etc/dovecot/virtual:INDEX=~/virtual:CONTROL=~/virtual:VOLATILEDIR=~/virtual mailbox "[virt]/Inbox" { auto = no comment = Virtual Threaded INBOX } }
Is my setting for virtual namespace (I have a few other folders defined as well, but this shows how the main part is configured).
-- Kind regards,
/S
Thanks Sirius!
It's been resolved.
However, I solved it by adding a comment in the original settings.
namespace inbox { inbox = yes location = mailbox 보낼편지함 { auto = subscribe } mailbox Archive { auto = subscribe special_use = \Archive } mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash }
#mailbox virtual/All { #auto = subscribe #comment = All my messages #special_use = \All #} #mailbox virtual/Flagged { #auto = subscribe #comment = All my flagged messages #special_use = \Flagged #}
prefix = INBOX/ separator = / type = private }
In my case, I guess I shouldn't include the settings in the "namespace inbox."
I didn't understand exactly how it works, but I'm curious.
Thanks
participants (4)
-
Aki Tuomi
-
Bernardo Reino
-
Sirius
-
yisuyong@gmail.com