[Dovecot] dovecot 1.2 shared namespace/mailboxes %%u expands only to %
Hi Timo,
with dovecot --version 1.2.alpha5
namespace shared { separator = / prefix = "shared/%d/%%u/" subscriptions = yes list = yes }
and dovecot-acl authenticated lr in /usr/local/virtual/schetterer.com
%%u seems not expand to other existing users instead it expands to % i expected showing all other maildir beyond
dovecot: Jan 06 23:53:14 Info: IMAP(robert@schetterer.com): acl vfile: file /var/run/dovecot/user-not-found/%/dovecot-acl not found dovecot: Jan 06 23:53:14 Info: IMAP(robert@schetterer.com): Namespace shared/schetterer.com/%/: Permission lookup failed from /var/run/dovecot/user-not-found/%
i am not clear if its my fault, or some bug
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On Wed, 2009-01-07 at 00:05 +0100, Robert Schetterer wrote:
namespace shared { separator = / prefix = "shared/%d/%%u/" subscriptions = yes list = yes } .. %%u seems not expand to other existing users instead it expands to %
Worked last I tried. Show the whole dovecot -n output?
Timo Sirainen schrieb:
On Wed, 2009-01-07 at 00:05 +0100, Robert Schetterer wrote:
namespace shared { separator = / prefix = "shared/%d/%%u/" subscriptions = yes list = yes } .. %%u seems not expand to other existing users instead it expands to %
Worked last I tried. Show the whole dovecot -n output?
here it is ( without ip ) quota imap was working but temp disabled for testing additional failure loading listescape and autocreate, brakes autocreate
# 1.2.alpha5: /etc/dovecot/dovecot.conf # OS: Linux 2.6.24-19-server i686 Ubuntu 8.04.1 ext3 base_dir: /var/run/dovecot/ log_path: /var/log/dovecot info_log_path: /var/log/dovecot.info protocols: imap pop3 managesieve listen(default): listen(imap): listen(pop3): listen(managesieve): ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login login_greeting: welcome on master.schetterer.com high performance imap an pop server mail_max_userip_connections(default): 10 mail_max_userip_connections(imap): 10 mail_max_userip_connections(pop3): 3 mail_max_userip_connections(managesieve): 10 verbose_proctitle: yes last_valid_uid: 1001 first_valid_gid: 1001 last_valid_gid: 1001 mail_access_groups: vmail mail_privileged_group: vmail mail_uid: 1001 mail_gid: 1001 mail_location: maildir:/usr/local/virtual/%d/%u/ mail_debug: yes maildir_stat_dirs: yes dbox_rotate_days: 0 mail_drop_priv_before_exec: yes mail_executable(default): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): acl fts fts_squat mail_log listescape mail_plugins(imap): acl fts fts_squat mail_log listescape mail_plugins(pop3): quota mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve imap_client_workarounds(default): outlook-idle delay-newmail imap_client_workarounds(imap): outlook-idle delay-newmail imap_client_workarounds(pop3): imap_client_workarounds(managesieve): pop3_enable_last(default): no pop3_enable_last(imap): no pop3_enable_last(pop3): yes pop3_enable_last(managesieve): no pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_client_workarounds(managesieve): managesieve_implementation_string(default): dovecot managesieve_implementation_string(imap): dovecot managesieve_implementation_string(pop3): dovecot managesieve_implementation_string(managesieve): Cyrus timsieved v2.2.13 namespace: type: shared separator: / prefix: shared/%d/%%u/ list: yes subscriptions: yes namespace: type: private separator: / location: maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/ inbox: yes list: yes subscriptions: yes auth default: username_chars: verbose: yes debug: yes debug_passwords: yes passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf passdb: driver: sql args: /etc/dovecot/dovecot-sql-master.conf pass: yes master: yes userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95 quota_warning2: storage=80%% /usr/local/bin/quota-warning.sh 80 quota: dict:::proxy::quotadict acl: vfile acl_dict: file:/var/lib/dovecot/shared-mailboxes acl_shared_dict: file:/var/lib/dovecot/shared/mailboxes mail_log_events: delete undelete expunge copy mailbox_delete mail_log_fields: uid box msgid size fts: squat sieve: /usr/local/virtual/%d/%u/.dovecot.sieve mail_log_max_lines_per_sec: 0 autocreate: Trash autocreate2: Junk autocreate3: Sent autocreate4: Drafts autocreate5: Templates autosubscribe: Trash autosubscribe2: Junk autosubscribe3: Sent autosubscribe4: Drafts autosubscribe5: Templates home: /usr/local/virtual/%d/%u dict: quotadict: mysql:/etc/dovecot/dovecot-dict-quota.conf
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On Wed, 2009-01-07 at 00:17 +0100, Robert Schetterer wrote:
Timo Sirainen schrieb:
On Wed, 2009-01-07 at 00:05 +0100, Robert Schetterer wrote:
namespace shared { separator = / prefix = "shared/%d/%%u/" subscriptions = yes list = yes } .. %%u seems not expand to other existing users instead it expands to %
Worked last I tried. Show the whole dovecot -n output?
here it is ( without ip ) quota imap was working but temp disabled for testing additional failure loading listescape and autocreate, brakes autocreate
Works here .. Maybe try the latest nightly snapshots? Perhaps things have been fixed there already.
namespace: type: shared separator: / prefix: shared/%d/%%u/ list: yes subscriptions: yes
You're missing location for other users' maildirs here. Should probably be:
location = maildir:/usr/local/virtual/%%d/%%u/Maildir:INDEX=~/Maildir/shared/%%u
acl_dict: file:/var/lib/dovecot/shared-mailboxes acl_shared_dict: file:/var/lib/dovecot/shared/mailboxes
What are the contents of this file? Also you'll only need acl_shared_dict. Looks like dovecot-example.conf incorrectly used acl_dict.
Anyway..:
dovecot: Jan 06 23:53:14 Info: IMAP(robert@schetterer.com): Namespace shared/schetterer.com/%/: Permission lookup failed from /var/run/dovecot/user-not-found/%
See the "namespace shared/schetterer.com/%/" part. You were somehow trying to look up a user called "%". Although unknown user lookups shouldn't cause error messages to be written to log files. Have to get this fixed.
Hi Timo,
Timo Sirainen schrieb:
On Wed, 2009-01-07 at 00:17 +0100, Robert Schetterer wrote:
Timo Sirainen schrieb:
On Wed, 2009-01-07 at 00:05 +0100, Robert Schetterer wrote:
namespace shared { separator = / prefix = "shared/%d/%%u/" subscriptions = yes list = yes } .. %%u seems not expand to other existing users instead it expands to % Worked last I tried. Show the whole dovecot -n output?
here it is ( without ip ) quota imap was working but temp disabled for testing additional failure loading listescape and autocreate, brakes autocreate
Works here .. Maybe try the latest nightly snapshots? Perhaps things have been fixed there already.
i am on latest snapshot
namespace: type: shared separator: / prefix: shared/%d/%%u/ list: yes subscriptions: yes
You're missing location for other users' maildirs here. Should probably be:
location = maildir:/usr/local/virtual/%%d/%%u/Maildir:INDEX=~/Maildir/shared/%%u
dont change something ( tested )
i think it should look like ( no sharing over existing domains only own domain ) location = maildir:/usr/local/virtual/%d/%%u/:INDEX=~/shared/%d/%%u/ but error stays
dovecot: Jan 13 11:47:56 Info: IMAP(robert@schetterer.com): maildir++: root=/usr/local/virtual/schetterer.com/%, index=/usr/local/virtual/schetterer.com/robert@schetterer.com//shared/schetterer.com/%, control=, inbox= dovecot: Jan 13 11:47:56 Info: IMAP(robert@schetterer.com): acl: initializing backend with data: vfile dovecot: Jan 13 11:47:56 Info: IMAP(robert@schetterer.com): acl: acl username = robert@schetterer.com dovecot: Jan 13 11:47:56 Info: IMAP(robert@schetterer.com): acl: owner = 0 dovecot: Jan 13 11:47:56 Info: IMAP(robert@schetterer.com): acl vfile: Global ACL directory: (null) dovecot: Jan 13 11:47:56 Info: IMAP(robert@schetterer.com): acl vfile: file /usr/local/virtual/schetterer.com/%/dovecot-acl not found dovecot: Jan 13 11:47:56 Info: IMAP(robert@schetterer.com): Namespace shared/schetterer.com/%/: Permission lookup failed from /usr/local/vi
acl_dict: file:/var/lib/dovecot/shared-mailboxes
ok disabled this
acl_shared_dict: file:/var/lib/dovecot/shared/mailboxes
What are the contents of this file? Also you'll only need acl_shared_dict. Looks like dovecot-example.conf incorrectly used acl_dict.
sorry timo, there ist less documention about this file ( cant find any help what they should include on the web ) so they only exist without content, do you have examples?
Anyway..:
dovecot: Jan 06 23:53:14 Info: IMAP(robert@schetterer.com): Namespace shared/schetterer.com/%/: Permission lookup failed from /var/run/dovecot/user-not-found/%
See the "namespace shared/schetterer.com/%/" part. You were somehow trying to look up a user called "%". Although unknown user lookups shouldn't cause error messages to be written to log files. Have to get this fixed.
% in real seems to be the login user
yes debug gives less information, as well there is to less doku about shared namespaces and acl or maybe its my fault to read the exist ones *g
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On Tue, 2009-01-13 at 12:24 +0100, Robert Schetterer wrote:
namespace shared { separator = / prefix = "shared/%d/%%u/" subscriptions = yes list = yes }
This kind of configuration doesn't actually work too great. The %d there gets always replaced with the logged in user's domain. So there is just no extra benefit of having %d there, because it'll be the same for everyone, even for shared mailboxes from other domains (if you ever happened to have any). It also makes LIST "" % not work right by not listing "shared" mailbox. Probably too much trouble to fix that..
So.. I'd just recommend using either shared/%%d/%%n/ or shared/%%u/ prefix. Or since you want only the same domain maybe just shared/%%n/
Also you should probably set subscriptions=no to the namespace. list=children also makes the shared/ prefix invisible if there are no shared mailboxes.
i think it should look like ( no sharing over existing domains only own domain ) location = maildir:/usr/local/virtual/%d/%%u/:INDEX=~/shared/%d/%%u/ but error stays
The extra %d in INDEX location isn't useful, since it's already under your home dir. So:
location = maildir:/usr/local/virtual/%d/%%u/:INDEX=~/shared/%%u/
Are you really using /usr/local/virtual/domain/user@domain/ and not just /usr/local/virtual/domain/user/?
dovecot: Jan 13 11:47:56 Info: IMAP(robert@schetterer.com): maildir++: root=/usr/local/virtual/schetterer.com/%,
I was previously thinking a bit wrong. % is a LIST wildcard. I couldn't reproduce this problem with LIST though. Could you look at the IMAP traffic and reproduce it manually to see what command exactly causes this error?
acl_shared_dict: file:/var/lib/dovecot/shared/mailboxes
What are the contents of this file? Also you'll only need acl_shared_dict. Looks like dovecot-example.conf incorrectly used acl_dict.
sorry timo, there ist less documention about this file ( cant find any help what they should include on the web ) so they only exist without content, do you have examples?
You don't need to know its contents. I just would have wanted to see it myself to see what kind of configuration you have at this moment. The proper way to fill the file is to just give IMAP commands, e.g.:
1 SETACL mybox another.user@domain lr
That ACL must not already exist in dovecot-acl file, otherwise the acl_shared_dict file isn't updated. If it is there already you could just do:
1 DELETEACL mybox another.user@domain 2 SETACL mybox another.user@domain lr
yes debug gives less information, as well there is to less doku about shared namespaces and acl
I haven't had time to write the documentation yet.
Hi Timo
Timo Sirainen schrieb:
On Tue, 2009-01-13 at 12:24 +0100, Robert Schetterer wrote:
namespace shared { separator = / prefix = "shared/%d/%%u/" subscriptions = yes list = yes }
This kind of configuration doesn't actually work too great. The %d there gets always replaced with the logged in user's domain. So there is just no extra benefit of having %d there, because it'll be the same for everyone, even for shared mailboxes from other domains (if you ever happened to have any). It also makes LIST "" % not work right by not listing "shared" mailbox. Probably too much trouble to fix that..
So.. I'd just recommend using either shared/%%d/%%n/ or shared/%%u/ prefix. Or since you want only the same domain maybe just shared/%%n/
OK understand
Also you should probably set subscriptions=no to the namespace. list=children also makes the shared/ prefix invisible if there are no shared mailboxes.
seeing prefix always is ok for me
i think it should look like ( no sharing over existing domains only own domain ) location = maildir:/usr/local/virtual/%d/%%u/:INDEX=~/shared/%d/%%u/ but error stays
The extra %d in INDEX location isn't useful, since it's already under your home dir. So:
location = maildir:/usr/local/virtual/%d/%%u/:INDEX=~/shared/%%u/
Ok understand
Are you really using /usr/local/virtual/domain/user@domain/ and not just /usr/local/virtual/domain/user/?
jep i use a full scheme, /usr/local/virtual/domain/user@domain which is possible from postfix admin ( which i like to use to admin mailboxes ) it seems to me as the most logical variant, and it works nice without using shared namespace yet, but it would be also possible to use /usr/local/virtual/domain/user or /usr/local/virtual/user@domain from postfixadmin i think
but i think it would be more nice to use a full name schema to make things more clear if i like to use cross domain shared mailboxes thats why i also wanted to use %d expansion for that, whatever domain name is a must have cause username may be equal in cross domain sharing like
/usr/local/virtual/domainA/user wants to share with /usr/local/virtual/domainB/user where user is equal so a domainname should be able to be seen in the client to difference users by equal name in different domains so if %d expansion dont work in shared perhaps /usr/local/virtual/user@domain schema whould be better with shared mailboxes?
also later on i wanted to have a public namespace which should be later under /usr/local/virtual/domain in the filesystem but for now that not the point and it wouldnt be a problem to have it elsewher like /usr/local/virtual/public-namespace/domain
set this now
namespace shared { separator = / prefix = "shared/%%u/" location = maildir:/usr/local/virtual/%d/%%u/:INDEX=~/shared/%%u/ subscriptions = no list = yes }
but the error seems to stay is it possible that an @ in the user leads to it ? ( shouldnt be cause %u has no problem with )
but for the first look it doesnt change anything
--log
dovecot: Jan 15 02:09:58 Info: IMAP(robert@schetterer.com): acl vfile: Global ACL directory: (null) dovecot: Jan 15 02:09:58 Info: IMAP(robert@schetterer.com): acl vfile: file /usr/local/virtual/schetterer.com/%/dovecot-acl not found dovecot: Jan 15 02:09:58 Info: IMAP(robert@schetterer.com): Namespace shared/%/: Permission lookup failed from /usr/local/virtual/schetterer.com/%
dovecot: Jan 13 11:47:56 Info: IMAP(robert@schetterer.com): maildir++: root=/usr/local/virtual/schetterer.com/%,
I was previously thinking a bit wrong. % is a LIST wildcard. I couldn't reproduce this problem with LIST though. Could you look at the IMAP traffic and reproduce it manually to see what command exactly causes this error?
acl_shared_dict: file:/var/lib/dovecot/shared/mailboxes What are the contents of this file? Also you'll only need acl_shared_dict. Looks like dovecot-example.conf incorrectly used acl_dict. sorry timo, there ist less documention about this file ( cant find any help what they should include on the web ) so they only exist without content, do you have examples?
You don't need to know its contents. I just would have wanted to see it myself to see what kind of configuration you have at this moment. The proper way to fill the file is to just give IMAP commands, e.g.:
1 SETACL mybox another.user@domain lr
That ACL must not already exist in dovecot-acl file, otherwise the acl_shared_dict file isn't updated. If it is there already you could just do:
1 DELETEACL mybox another.user@domain 2 SETACL mybox another.user@domain lr
yes debug gives less information, as well there is to less doku about shared namespaces and acl
I haven't had time to write the documentation yet.
i will do more tests tommorow and see if i get more debug no hurry timo , its alpha phase, but a short doku should be available when 1.2 going beta
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
Hi Timo,
myself to see what kind of configuration you have at this moment. The proper way to fill the file is to just give IMAP commands, e.g.:
1 SETACL mybox another.user@domain lr
That ACL must not already exist in dovecot-acl file, otherwise the acl_shared_dict file isn't updated. If it is there already you could just do:
1 DELETEACL mybox another.user@domain 2 SETACL mybox another.user@domain lr
yes debug gives less information, as well there is to less doku about shared namespaces and acl I haven't had time to write the documentation yet.
i will do more tests tommorow and see if i get more debug no hurry timo , its alpha phase, but a short doku should be available when 1.2 going beta
Hi timo trying to use imap setacl over telnet seems not to work
. list "" "*"
- LIST (\HasNoChildren) "/" "Templates"
- LIST (\HasNoChildren) "/" "Sent"
- LIST (\HasNoChildren) "/" "Junk"
- LIST (\HasNoChildren) "/" "Trash"
- LIST (\HasNoChildren) "/" "Drafts"
- LIST (\HasNoChildren) "/" "INBOX"
- LIST (\Noselect \HasNoChildren) "/" "shared" . OK List completed. ..... . BAD Error in IMAP command SETACL: Unknown command. ..... . BAD Error in IMAP command SETACL: Unknown command. . getacl inbox . BAD Error in IMAP command GETACL: Unknown command
no wonder acl is not in capability ( it think it should be )
OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH SEARCHRES WITHIN CONTEXT=SEARCH QUOTA] Logged in
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
Robert Schetterer schrieb:
Hi Timo,
myself to see what kind of configuration you have at this moment. The proper way to fill the file is to just give IMAP commands, e.g.:
1 SETACL mybox another.user@domain lr
That ACL must not already exist in dovecot-acl file, otherwise the acl_shared_dict file isn't updated. If it is there already you could just do:
1 DELETEACL mybox another.user@domain 2 SETACL mybox another.user@domain lr
yes debug gives less information, as well there is to less doku about shared namespaces and acl I haven't had time to write the documentation yet. i will do more tests tommorow and see if i get more debug no hurry timo , its alpha phase, but a short doku should be available when 1.2 going beta
Hi timo trying to use imap setacl over telnet seems not to work
. list "" "*"
- LIST (\HasNoChildren) "/" "Templates"
- LIST (\HasNoChildren) "/" "Sent"
- LIST (\HasNoChildren) "/" "Junk"
- LIST (\HasNoChildren) "/" "Trash"
- LIST (\HasNoChildren) "/" "Drafts"
- LIST (\HasNoChildren) "/" "INBOX"
- LIST (\Noselect \HasNoChildren) "/" "shared" . OK List completed. ..... . BAD Error in IMAP command SETACL: Unknown command. ..... . BAD Error in IMAP command SETACL: Unknown command. . getacl inbox . BAD Error in IMAP command GETACL: Unknown command
no wonder acl is not in capability ( it think it should be )
OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH SEARCHRES WITHIN CONTEXT=SEARCH QUOTA] Logged in
Hi Timo
i guess the % is produced fom thunderbird
here tbs raw in log
namespace 4 list "" "%" 5 list "" "%/%" 6 list "" "shared/%" 7 list "" "shared/%/%" 8 list "" "INBOX" 9 select "INBOX" 10 myrights "INBOX" 11 getacl "INBOX" 12 getquotaroot "INBOX" 13 IDLE DONE 14 lsub "" "*" 15 list "" "%" 16 list "" "%/%" 17 lsub "" "shared/*" 18 list "" "shared/%" 19 list "" "shared/%/%" 20 IDLE DONE 21 lsub "" "*" 22 list "" "%" 23 list "" "%/%" 24 lsub "" "shared/*" 25 list "" "shared/%" 26 list "" "shared/%/%" 27 IDLE
with telnet this does not happen
dont know why tb sends
list "" "%" 5 list "" "%/%" 6 list "" "shared/%" 7 list "" "shared/%/%"
but for sure this leads to log entries in dovecot in search of %
imap acl
for use of imap acl this must be in mail_plugins like mail_plugins = imap_acl acl fts fts_squat mail_log setting acl isnt enough, dont know why i ignored this then setting of acl over imap works like expected in telnet and the shared folder ( mailbox ) is shown in the client ( tb )
very good !!!,
my first tests were with listescape enabled without any additionional listescape config and leads to false interpreted the . in the username domainpart ( guess this has to be config stuff in listescape i didnt have done yet perhaps you have examples)
---autocreate
cant get it working if either listescape is enabled and/or a shared namespace is enabled tested a lot of versions to make autcreate known what namespace it should use, debugging is to small to get the trough what might be running false
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
Robert Schetterer schrieb:
Robert Schetterer schrieb:
Hi Timo,
myself to see what kind of configuration you have at this moment. The proper way to fill the file is to just give IMAP commands, e.g.:
1 SETACL mybox another.user@domain lr
That ACL must not already exist in dovecot-acl file, otherwise the acl_shared_dict file isn't updated. If it is there already you could just do:
1 DELETEACL mybox another.user@domain 2 SETACL mybox another.user@domain lr
yes debug gives less information, as well there is to less doku about shared namespaces and acl I haven't had time to write the documentation yet. i will do more tests tommorow and see if i get more debug no hurry timo , its alpha phase, but a short doku should be available when 1.2 going beta
Hi timo trying to use imap setacl over telnet seems not to work
. list "" "*"
- LIST (\HasNoChildren) "/" "Templates"
- LIST (\HasNoChildren) "/" "Sent"
- LIST (\HasNoChildren) "/" "Junk"
- LIST (\HasNoChildren) "/" "Trash"
- LIST (\HasNoChildren) "/" "Drafts"
- LIST (\HasNoChildren) "/" "INBOX"
- LIST (\Noselect \HasNoChildren) "/" "shared" . OK List completed. ..... . BAD Error in IMAP command SETACL: Unknown command. ..... . BAD Error in IMAP command SETACL: Unknown command. . getacl inbox . BAD Error in IMAP command GETACL: Unknown command
no wonder acl is not in capability ( it think it should be )
OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH SEARCHRES WITHIN CONTEXT=SEARCH QUOTA] Logged in
Hi Timo
i guess the % is produced fom thunderbird
here tbs raw in log
namespace 4 list "" "%" 5 list "" "%/%" 6 list "" "shared/%" 7 list "" "shared/%/%" 8 list "" "INBOX" 9 select "INBOX" 10 myrights "INBOX" 11 getacl "INBOX" 12 getquotaroot "INBOX" 13 IDLE DONE 14 lsub "" "*" 15 list "" "%" 16 list "" "%/%" 17 lsub "" "shared/*" 18 list "" "shared/%" 19 list "" "shared/%/%" 20 IDLE DONE 21 lsub "" "*" 22 list "" "%" 23 list "" "%/%" 24 lsub "" "shared/*" 25 list "" "shared/%" 26 list "" "shared/%/%" 27 IDLE
with telnet this does not happen
dont know why tb sends
list "" "%" 5 list "" "%/%" 6 list "" "shared/%" 7 list "" "shared/%/%"
but for sure this leads to log entries in dovecot in search of %
imap acl
for use of imap acl this must be in mail_plugins like mail_plugins = imap_acl acl fts fts_squat mail_log setting acl isnt enough, dont know why i ignored this then setting of acl over imap works like expected in telnet and the shared folder ( mailbox ) is shown in the client ( tb )
very good !!!,
my first tests were with listescape enabled without any additionional listescape config and leads to false interpreted the . in the username domainpart ( guess this has to be config stuff in listescape i didnt have done yet perhaps you have examples)
---autocreate
cant get it working if either listescape is enabled and/or a shared namespace is enabled tested a lot of versions to make autcreate known what namespace it should use, debugging is to small to get the trough what might be running false
Hi Timo, here additional infos about more tests using horde imp for setting imap acl works partly ( but that might be a imp issue cause i am not using the latest version and specially the shared acl code in recent imp versions was deeply improved ) but after all setacl is possible with imp and shared folders are shown as expected also using prefix = "shared/%%d/%%u/" works nice !
Great WORK !!!
with horde imp there is no wrong % expansion in dovecots log so it seems clear that this is an thunderbird issue
after all whats missing is quota listing for shared folders ( dont know if you might implement this easily in the quota code ) it should be there in my mind , cause transactions with shared folders i.e copy maybe fail by overload quota of a shared folder for now user has no chance ( until he has no imap debug etc) to find out why i.e copy might fail in his client, with shown quota he might be able to find out that there is less space left in the shared folder to i.e copy a mail to it.
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On Thu, 2009-01-15 at 14:49 +0100, Robert Schetterer wrote:
i guess the % is produced fom thunderbird
here tbs raw in log .. with telnet this does not happen
So if you copy&paste all the Thunderbird's commands to a telnet session, it doesn't log the % error?
my first tests were with listescape enabled without any additionional listescape config and leads to false interpreted the . in the username domainpart ( guess this has to be config stuff in listescape i didnt have done yet perhaps you have examples)
There isn't any need for extra configuration. But yes, you're right, I do see it breaking:
- LIST (\Noselect \HasChildren) "/" "shared/domain.org/tss@domain.org"
- LIST (\HasNoChildren) "/" "shared/domain/org/tss@domain/org/Trash"
I'll try to get that fixed.
with horde imp there is no wrong % expansion in dovecots log so it seems clear that this is an thunderbird issue
It still shouldn't happen and I'm not able to reproduce it.
after all whats missing is quota listing for shared folders ( dont know if you might implement this easily in the quota code ) it should be there in my mind , cause transactions with shared folders i.e copy maybe fail by overload quota of a shared folder for now user has no chance ( until he has no imap debug etc) to find out why i.e copy might fail in his client, with shown quota he might be able to find out that there is less space left in the shared folder to i.e copy a mail to it.
I'm not really sure about this. The code already exists to see other users' quota, but I'm just worried that it could be thought of as a security hole / privacy leak. If copying fails the client will get a "Out of quota" error, isn't that enough?
Hi Timo,
Timo Sirainen schrieb:
On Thu, 2009-01-15 at 14:49 +0100, Robert Schetterer wrote:
i guess the % is produced fom thunderbird
here tbs raw in log .. with telnet this does not happen
So if you copy&paste all the Thunderbird's commands to a telnet session, it doesn't log the % error?
didnt tried that, but i have tested horde/imp and mulberry as clients and they dont produce such error in the log normally i would say it some kind of TB special
my first tests were with listescape enabled without any additionional listescape config and leads to false interpreted the . in the username domainpart ( guess this has to be config stuff in listescape i didnt have done yet perhaps you have examples)
There isn't any need for extra configuration. But yes, you're right, I do see it breaking:
- LIST (\Noselect \HasChildren) "/" "shared/domain.org/tss@domain.org"
- LIST (\HasNoChildren) "/" "shared/domain/org/tss@domain/org/Trash"
I'll try to get that fixed.
that would be nice cause listescape might be needed with usernames having dot in their names
with horde imp there is no wrong % expansion in dovecots log so it seems clear that this is an thunderbird issue
It still shouldn't happen and I'm not able to reproduce it.
hm...? dont know what to say, it not urgent for me as long as it only produces log entries and all other stuff i need works, perhaps i should setup a fresh install in vmware cause all the testing may brake something, and see if it apears again
after all whats missing is quota listing for shared folders ( dont know if you might implement this easily in the quota code ) it should be there in my mind , cause transactions with shared folders i.e copy maybe fail by overload quota of a shared folder for now user has no chance ( until he has no imap debug etc) to find out why i.e copy might fail in his client, with shown quota he might be able to find out that there is less space left in the shared folder to i.e copy a mail to it.
I'm not really sure about this. The code already exists to see other users' quota, but I'm just worried that it could be thought of as a security hole / privacy leak. If copying fails the client will get a "Out of quota" error, isn't that enough?
for sure out of quota should be enough, but you know how users are i see the question rising why a quota from shared folders cant be seen it looks imcomplete, but if it would uprise security holes forget it, or code it later , there is much more to do which is more importend. Its great to see shared folders and imap acl working in dovecot cause your now going to be alternative to cyrus, this is what i searched ever
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
Robert Schetterer schrieb:
Hi Timo,
Timo Sirainen schrieb:
On Thu, 2009-01-15 at 14:49 +0100, Robert Schetterer wrote:
i guess the % is produced fom thunderbird
here tbs raw in log .. with telnet this does not happen So if you copy&paste all the Thunderbird's commands to a telnet session, it doesn't log the % error?
didnt tried that, but i have tested horde/imp and mulberry as clients and they dont produce such error in the log normally i would say it some kind of TB special
just fo fun i tried the commands from tbs rawlog in a imap telnet session the log does not show the % error this only happens with action from tb so i have no idea why it happens with tb
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On Thu, 2009-01-15 at 09:46 +0100, Robert Schetterer wrote:
Hi timo trying to use imap setacl over telnet seems not to work .. . BAD Error in IMAP command SETACL: Unknown command.
You haven't enabled imap_acl plugin.
Timo Sirainen schrieb:
On Thu, 2009-01-15 at 09:46 +0100, Robert Schetterer wrote:
Hi timo trying to use imap setacl over telnet seems not to work .. . BAD Error in IMAP command SETACL: Unknown command.
You haven't enabled imap_acl plugin.
Jep Timo, see my other mails, most stuff is partly solved now
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
participants (2)
-
Robert Schetterer
-
Timo Sirainen