我正在尝试设置自己的邮件服务器,但遇到了一个 Dovecot 错误:“错误:无法初始化配额。”有人有解决方案吗?
Feb 16 01:10:25 outgoing dovecot: imap([email protected])<13083><PzPpt/eBKIofusGT>:
Error: Failed to initialize quota: Quota root User quota: dict quota init failed: dict_init(sqlquota) failed: Dictionary URI is missing ':': sqlquota
编辑:
这是 dovecot sql 设置
driver = mysql
connect = host=127.0.0.1 dbname=mail_server user=mail password=password
default_pass_scheme = BLF-CRYPT
iterate_query = SELECT username AS user FROM mailbox
user_query = SELECT CONCAT('/var/mail/vmail/',maildir) AS home, CONCAT('maildir:/var/mail/vmail/',maildir) AS mail, 5000 AS uid, 5000 AS gid, CONCAT('*:bytes=',quota) AS quota_rule FROM mailbox WHERE username = '%u' AND active = 1
password_query = SELECT username AS user,password FROM mailbox WHERE username = '%u' AND active='1'
答案1
您激活了配额,但可能忘记了配置。
如果您要配置,请按照以下说明进行操作,它们通常写入 /etc/dovecot/conf.d/90-quota.conf:
https://wiki2.dovecot.org/Quota/Dict
但如果你想禁用,请执行grep -R'配额'在你的 dovecot 目录中,并注释掉或者删除以下出现的内容,例如:
mail_plugins = $mail_plugins quota # change this
mail_plugins = $mail_plugins # to this