这个周末我设置了一个新的邮件服务器来接管当前由 ispconfig 和 dovecot 管理的帐户。
我跑步时遇到一个问题doveadm
。
但首先这里是配置:
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.1
auth_debug = yes
auth_debug_passwords = yes
auth_failure_delay = 1 secs
auth_verbose = yes
auth_verbose_passwords = yes
auth_worker_max_count = 20
disable_plaintext_auth = no
imap_metadata = yes
mail_attribute_dict = file:Maildir/dovecot-metadata
mail_debug = yes
mail_gid = 20000
mail_location = maildir:~/Maildir
mail_plugins = acl imap_acl
mail_temp_dir = /home/mail/tmp
mail_uid = 20000
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 {
location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
prefix = Shared Folders/%%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 = /
}
passdb {
args = /etc/dovecot/master-users
driver = passwd-file
master = yes
pass = yes
}
passdb {
driver = shadow
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
acl = vfile
acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db
fts = lucene
fts_lucene = whitespace_chars=@.
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
}
protocols = " imap lmtp sieve pop3"
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0666
}
unix_listener auth-userdb {
group = vmail
user = vmail
}
}
service dict {
unix_listener dict {
group = vmail
mode = 0660
user = vmail
}
}
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service lmtp {
executable = lmtp
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0660
user = postfix
}
}
service managesieve-login {
inet_listener sieve {
address = 127.0.0.1 ::1
port = 4190
}
}
service pop3-login {
inet_listener pop3 {
port = 110
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
ssl = no
ssl_cert = /etc/ssl/server.crt
ssl_key = /etc/ssl/server.key
userdb {
driver = passwd
}
userdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
verbose_ssl = yes
protocol lda {
mail_plugins = acl imap_acl sieve
}
protocol imap {
mail_max_userip_connections = 20
mail_plugins = acl imap_acl imap_acl
}
当我运行时,doveadm
出现以下错误消息:
doveadm(root):错误:dlopen(/usr/lib/dovecot/modules/lib02_imap_acl_plugin.so)失败:/usr/lib/dovecot/modules/lib02_imap_acl_plugin.so:未定义符号:command_unregister
doveadm(root):严重:无法加载所需插件
如果你能告诉我如何重新启用 doveadm,我将不胜感激。我只是不明白问题出在哪里
答案1
imap_acl
您在配置中加倍了,dovecot 尝试链接该库两次
protocol imap {
mail_max_userip_connections = 20
mail_plugins = acl imap_acl imap_acl
}