Dovecot, cannot access public mail folder

vupibi

New member
Joined
Feb 12, 2014
Messages
1
Hello,

I have some Issues with Dovecots public folder.
I only see the folder in users Mailbox but I cannot subscribe it or copy mails in it.

My public file structure (folder: "/var/vmail/public/") looks like this:
Code:
-rw-rw-rw- 1 ebox ebox    0 Feb 12 01:21 dovecot-acl-list 
drwxrwsrwx 2 ebox ebox 4096 Feb 12 00:31 test

(Wierd thing is that "dovecot-acl-list" is empty, why?)

content of "test" public folder is:
Code:
-rw-r--r-- 1 root ebox   10 Feb 12 01:21 dovecot-acl

I can see the folder in my mail accounts but I dont have access to it.
I activated ACL and the log sais the plugin is loaded successfully

Code:
Feb 12 12:54:19 mailand dovecot: imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib02_imap_acl_plugin.so 
Feb 12 12:54:19 mailand dovecot: imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so

And the dovecot-acl file is loaded too
Code:
Feb 12 12:54:19 mailand dovecot: imap([email protected]): Debug: acl vfile: reading file /var/vmail/public/test/dovecot-acl
content of "/var/vmail/public/test/dovecot-acl" file is:
Code:
anyone lr

So i think everything is set up the right way but i'm still not able to access the public mal folder.

Any suggestions?

My Dovecot -n output
Code:
# 2.0.19: /etc/dovecot/dovecot.conf 
# OS: Linux 3.2.0-58-generic x86_64 Ubuntu 12.04.4 LTS 
auth_gssapi_hostname = mailand.sxps.int 
auth_krb5_keytab = /etc/dovecot/dovecot.keytab 
auth_mechanisms = gssapi plain 
first_valid_gid = 116 
first_valid_uid = 108 
log_timestamp = "%Y-%m-%d %H:%M:%S " 
mail_debug = yes 
mail_gid = 116 
mail_home = /var/vmail/sieve/%d/%u 
mail_location = maildir:~/Maildir:LAYOUT=fs 
mail_uid = 108 
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 ihave 
namespace { 
  inbox = yes 
  location = 
  prefix = 
  separator = / 
  type = private 
} 
namespace { 
  hidden = no 
  inbox = no 
  list = yes 
  location = maildir:/var/vmail/public:LAYOUT=fs 
  prefix = public/ 
  separator = / 
  subscriptions = no 
  type = public 
} 
passdb { 
  args = /etc/dovecot/dovecot-ldap.conf 
  driver = ldap 
} 
plugin { 
  acl = vfile 
  autocreate = Trash 
  autocreate2 = Spam 
  autocreate3 = Sent 
  autocreate4 = Drafts 
  autosubscribe = Trash 
  autosubscribe2 = Spam 
  autosubscribe3 = Sent 
  autosubscribe4 = Drafts 
  listescape_char = \ 
  quota = maildir:User quota 
  quota_rule = *:storage=0 
  sieve = /var/vmail/sieve/%d/%u/sieve-script 
  sieve_dir = /var/vmail/sieve/%d/%u 
  sieve_global_path = /var/vmail/sieve/default.sieve 
  sieve_storage = /var/vmail/sieve/%d/%u 
} 
protocols = imap sieve 
service auth { 
  executable = /usr/lib/dovecot/auth 
  unix_listener /var/spool/postfix/private/auth { 
    group = postfix 
    mode = 0660 
    user = postfix 
  } 
  unix_listener auth-master { 
    group = ebox 
    mode = 0600 
    user = ebox 
  } 
  user = dovecot 
} 
service imap-login { 
  inet_listener imap { 
    address = * 
    port = 143 
  } 
  inet_listener imaps { 
    address = * 
    port = 993 
  } 
} 
service managesieve-login { 
  inet_listener sieve { 
    port = 4190 
  } 
} 
ssl_cert = </etc/dovecot/ssl/dovecot.pem 
ssl_key = </etc/dovecot/ssl/dovecot.pem 
userdb { 
  args = /etc/dovecot/dovecot-ldap.conf 
  driver = ldap 
} 
protocol imap { 
  mail_plugins = listescape acl imap_acl 
} 
protocol lda { 
  auth_socket_path = /var/run/dovecot/auth-master 
  mail_plugins = sieve quota 
  postmaster_address = [email protected] 
}


My Configuration:
Code:
############# MAIL PLUGINS ################
protocol imap {
  mail_plugins = listescape acl imap_acl
}

############# PUBLIC MAILBOX ##############
# User's private mail location
mail_location = maildir:~/Maildir:LAYOUT=fs

# When creating any namespaces, you must also have a private namespace:
namespace {
  type = private
  separator = /
  prefix =
  #location = maildir:/var/vmail/%d/%n:LAYOUT=fs
  inbox = yes
}

namespace {
  type = public
  separator = /
  prefix = public/
  location = maildir:/var/vmail/public:LAYOUT=fs
  inbox = no
  hidden = no
  subscriptions = no
  list = yes
}


plugin {
  #acl = vfile:/etc/dovecot/acls
  #acl_anyone = allow

  acl = vfile
  #acl_shared_dict = file:/var/vmail/shared-mailboxes

  ### NAMESPACE LISTESCAPE CHAR
  listescape_char = "\\"
}

mail_debug = yes

The attached screenshot is from roundcube showing the public folder. How you can see it is greyed out, so i cannot access to it.
 

Attachments

  • Bildschirmfoto 2014-02-12 um 13.08.49.jpg
    Bildschirmfoto 2014-02-12 um 13.08.49.jpg
    24.2 KB · Views: 182
Well, anyone can read and post to these forums as long as they follow the rules. But user scsi is correct in that it's unlikely you'll get help here with generic Dovecot implementations unless they closely mimic our own, and unless any of our regular users have made any changes to the default DirectAdmin configuration, which works well for us.

Jeff
 
Back
Top