dovecot acl - Unknown dict module: mysql

Info - Lenssen info at lenssen.biz
Di Okt 13 14:25:18 CEST 2015


Hallo zusammen,

ich betreibe eine dovecot virtual mail Umgebung und wollte jetzt für einige User Shared Mailbox ACL konfigurieren.

In Anlehnung an das Tutorial https://vogasec.wordpress.com/2012/07/01/ubuntu-postfix-dovecot-shared-mailboxes/ <https://vogasec.wordpress.com/2012/07/01/ubuntu-postfix-dovecot-shared-mailboxes/>
habe ich den MySQL Server konfiguriert und dovecot wie unten angehängt. 

Wenn ich jetzt "doveadm -Dv mailbox list -u user at domain abfragen möchte, bekomme ich im syslog folgende Fehlermeldung:

	mta dovecot: message repeated 2 times: [ dict: Error: Failed to initialize dictionary 'acl': Unknown dict module: mysql]

Die SQL Config habe ich auch angehängt. Wer weiss Rat?

Vorab schon einmal vielen Dank für eure Unterstützung und viele Grüße,

Klaus Lenssen

-----------------------

# 2.2.18: /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.8 (0c4ae064f307+)
# OS: Linux 4.2.0-14-generic x86_64 Ubuntu Wily Werewolf (development branch) 
auth_debug = yes
auth_mechanisms = plain login
auth_verbose = yes
dict {
  acl = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_debug = yes
mail_location = maildir:~/Maildir
mail_plugins = acl
namespace {
  hidden = no
  ignore_on_failure = no
  inbox = no
  list = children
  location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
  prefix = shared/%%u/
  separator = /
  subscriptions = yes
  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 = /
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  acl = vfile:/etc/dovecot/global-acls:cache_secs=300
  acl_shared_dict = proxy::acl
}
postmaster_address = postmaster at cns-germany.de
protocols = " imap"
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service dict {
  unix_listener dict {
    group = mail
    mode = 0660
    user = dovecot
  }
}
ssl_cert = </etc/dovecot/imap.cns-germany.de.cert
ssl_key = </etc/dovecot/private/imap.cns-germany.de.key
userdb {
  args = uid=vmail gid=mail home=/home/vmail/%d/%n
  driver = static
}
protocol imap {
  mail_plugins = acl imap_acl
}


———————  /etc/dovecot/dovecot-dict-sql.conf.ext  —————
# This file is commonly accessed via dict {} section in dovecot.conf

driver = mysql
connect = host=192.168.1.10 dbname=dovecot user=dovecot  password=********

# CREATE TABLE quota (
[…]
#CREATE TABLE user_shares (
# from_user varchar(100) not null,
# to_user varchar(100) not null,
# dummy char(1) DEFAULT '1',    -- always '1' currently
# primary key (from_user, to_user)
#);
# 
#CREATE TABLE anyone_shares (
# from_user varchar(100) not null,
# dummy char(1) DEFAULT '1',    -- always '1' currently
# primary key (from_user)
#);
map {
  pattern = shared/shared-boxes/user/$to/$from
  table = user_shares
  value_field = dummy

  fields {
    from_user = $from
    to_user = $to
  }
}

map {
  pattern = shared/shared-boxes/anyone/$from
  table = anyone_shares
  value_field = dummy

  fields {
    from_user = $from
  }
}



-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <https://listen.jpberlin.de/pipermail/dovecot/attachments/20151013/978561b3/attachment-0001.html>


Mehr Informationen über die Mailingliste Dovecot