-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I've set up a namespace to share some mailboxes.
When I try to select them, I get an internal error:
Client-server chat:
* OK Dovecot ready.
1 login dvtest2 x
1 OK Logged in.
2 list "" *
* LIST (\HasNoChildren) "." "Trash"
* LIST (\HasChildren) "." "test"
* LIST (\HasNoChildren) "." "INBOX"
* LIST (\HasNoChildren) "." "test.test2"
* LIST (\Noselect \HasChildren) "." "Shared"
* LIST (\HasNoChildren) "." "Shared.testAccess"
* LIST (\HasNoChildren) "." "Shared.testNOaccess"
2 OK List completed.
3 select "Shared.testAccess"
3 NO Internal error occurred. Refer to server log for more information.
[2007-07-04 16:45:31]
dovecot: Jul 04 16:45:31 Error: IMAP(dvtest2) [3512]:
stat(/mnt/mailcache/shared/.testAccess/cur) failed: Permission denied
# l /mnt/mailcache/shared/.testAccess -n
total 24
drwxrws--- 5 31045 30005 4096 2007-07-04 15:53 ./
drwxr-xr-x 6 0 0 4096 2007-07-04 16:08 ../
drwxrwsr-x 2 31045 30005 4096 2007-06-21 12:19 cur/
- -rw-r--r-- 1 31045 30005 17 2007-07-04 15:38 dovecot-acl
- -rw-rw---- 1 31045 30005 0 2007-07-04 15:53 dovecot-shared
drwxrws--- 2 31045 30005 4096 2007-06-21 13:57 new/
drwxrws--- 2 31045 30005 4096 2007-06-21 13:57 tmp/
I added chmod o+rx for testing purpose, just in case.
stracing the situation results in:
gettimeofday({1183560101, 339756}, {4294967176, 0}) = 0
read(0, "3 select \"Shared.testAccess\"\r\n", 3978) = 30
setsockopt(1, SOL_TCP, TCP_CORK, [1], 4) = 0
stat64("/mnt/mailcache/shared/.testAccess",
{st_mode=S_IFDIR|S_ISGID|0770,
st_size=4096, ...}) = 0
stat64("/mnt/mailcache/shared/.testAccess/cur", 0xbf8cb470) = -1
EACCES
(Permission denied)
write(2, "\1Estat(/mnt/mailcache/shared/.te"..., 72) = 72
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
write(1, "3 NO Internal error occurred. Re"..., 95) = 95
setsockopt(1, SOL_TCP, TCP_CORK, [0], 4) = 0
gettimeofday({1183560101, 341458}, NULL) = 0
What do I wrong?
# 1.0.1: /usr/local/dovecot/etc/dovecot.conf
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot/dovecot.log
protocols: imap imaps pop3 pop3s
ssl_ca_file: /etc/ssl/certs/ca.crt
ssl_cert_file(default): /etc/ssl/certs/imap.pem
ssl_cert_file(imap): /etc/ssl/certs/imap.pem
ssl_cert_file(pop3): /etc/ssl/certs/pop3.pem
ssl_key_file(default): /etc/ssl/private/imap.key
ssl_key_file(imap): /etc/ssl/private/imap.key
ssl_key_file(pop3): /etc/ssl/private/pop3.key
disable_plaintext_auth: no
verbose_ssl: yes
login_dir: /var/run/dovecot//login
login_executable(default): /usr/local/dovecot/libexec/dovecot/imap-login
login_executable(imap): /usr/local/dovecot/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3-login
login_log_format_elements: %p: user=<%u> method=%m rip=%r lip=%l %c
verbose_proctitle: yes
first_valid_uid: 1000
mail_location:
maildir:%h/MailDir:CONTROL=/var/cache/dovecot/%i/control:INDEX=/var/cache/dovecot/%i/index
mail_debug: yes
dotlock_use_excl: yes
maildir_copy_with_hardlinks: yes
maildir_copy_preserve_filename: yes
umask: 7
mail_drop_priv_before_exec: yes
mail_executable(default): /usr/local/dovecot-1.0.1/libexec/dovecot/rawlog
/usr/local/dovecot-1.0.1/libexec/dovecot/imap
mail_executable(imap): /usr/local/dovecot-1.0.1/libexec/dovecot/rawlog
/usr/local/dovecot-1.0.1/libexec/dovecot/imap
mail_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota mail_log zlib acl
mail_plugins(imap): quota imap_quota mail_log zlib acl
mail_plugins(pop3): quota mail_log
mail_plugin_dir(default): /usr/local/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/dovecot/lib/dovecot/pop3
mail_log_prefix: %Us(%u) [%p]:
mail_log_max_lines_per_sec: 0
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %u
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): oe-ns-eoh
namespace:
type: private
separator: .
inbox: yes
hidden: yes
namespace:
type: public
separator: .
prefix: Shared.
location:
/mnt/mailcache/shared:CONTROL=/var/cache/dovecot/%i/sek/control:INDEX=/var/cache/dovecot/%i/sek/index
auth default:
mechanisms: plain login
cache_size: 10
username_chars:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890
verbose: yes
debug: yes
passdb:
driver: ldap
args: /usr/local/dovecot-1.0.1/etc/dovecot-ldap.conf
userdb:
driver: ldap
args: /usr/local/dovecot-1.0.1/etc/dovecot-ldap.conf
userdb:
driver: passwd-file
args: /etc/passwd
socket:
type: listen
master:
path: /var/run/dovecot/auth-master
mode: 432
group: mail
plugin:
quota: fs
Bye,
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBRouzwS9SORjhbDpvAQLJwgf+NJ8bROXIRfoAjQy+eunNOtM+VoQB0I0A
6EUBG0XfTlgJ1hn63FxpQZPmKBMfLEl013DQQzm9Dw5GezrbgI815M+mZrP6BzYB
95ao1lCTo1hlyVGThG6LgE9JJS8BvE5ASaJOu4XD9u+d2LdV8I+MkcMC9o57XBQt
nUV0RrNbxcQpuDq1Qpjf0tu9t0HCRoMzHD0p7cOHteSHiGvvrMeFD0JG7Ida7grQ
Uzjbuw92qSNinwTE/89pVr3xrgJGmxdy7ix/y4UBeUx8I9YXOHheB7SOM3cQ6q6J
KXKS89Fh9ZWZDsgQwmqaOfAhVgLQjyeAwyA6jqfNzg/Rx0J44m905w==f+1y
-----END PGP SIGNATURE-----