possible bug around ACL

Maciej 'Agaran' Pijanka agaran at pld-linux.org
Thu Jul 17 07:01:53 UTC 2014


Hello

I want to set readonly over IMAP for users mailboxes at Archive
namespace, (and have single user who can move mails there on automated
way)

This don't work but found that if I add file to 
/srv/mail.archives/<user>/dovecot-acl
containing only 
owner lr
then login to imap (with telnet) and do
1 GETACL Archive

I get following result from gdb attached to worker process serving
particular connection.
Program received signal SIGSEGV, Segmentation fault.
acl_mailbox_right_lookup (box=0x7fd75e4e1dc0, right_idx=right_idx at entry=10) at acl-mailbox.c:40
40		if (abox->skip_acl_checks)
(gdb) p abox
$1 = (struct acl_mailbox *) 0x0
(gdb) 


# uname -a
Linux omelette 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64 GNU/Linux
ii  dovecot-core                1:2.2.13-2         amd64

local build from sources in testing just disabled lucene

ps. I am idling on #dovecot too, if any info is needed with faster round
trip time than emails.

best regards

-- 
agaran at pld dash linux dot org
I do not fear computers. I fear the lack of them. [Isaac Asimov]
-------------- next part --------------
# dovecot -n
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.6 
auth_verbose = yes
listen = 192.168.1.32, 127.0.0.1
mail_debug = yes
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_plugins = acl
namespace archive {
  inbox = no
  list = yes
  location = maildir:/srv/mail.archives/%n
  prefix = Archive.
  separator = .
  subscriptions = no
  type = shared
}
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
  separator = .
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  acl = vfile:/etc/dovecot/global-acl:cache_secs=300
}
protocols = " imap pop3"
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
verbose_proctitle = yes
protocol lda {
  mail_plugins = acl
}
protocol imap {
  imap_logout_format = bytes=%i/%o
  mail_plugins = acl imap_acl
}


More information about the dovecot mailing list