【问题标题】:What are the right permissions on dovecot /var/vmail ( on ispconfig, Debian)dovecot /var/vmail 上的正确权限是什么(在 ispconfig、Debian 上)
【发布时间】:2013-11-19 21:30:21
【问题描述】:

如果您从 courier 迁移到 dovecot,并使用 Dovecot 将旧服务器中的所有文件复制到新的 ISPConfig 中,您可能会遇到权限问题。

邮件日志可能会显示如下消息:

11 月 19 日 14:09:44 yourServerName dovecot: lda(info@badabim.com): Error: open(/var/vmail/badabim.com/info/Maildir/maildirsize) failed: Permission denied

失败:权限被拒绝 (euid=5000(vmail) egid=5000(vmail) 缺少 +r perm: /var/vmail/badabim.com/info/Maildir/cur/cur:2,S)

现在正确的权限是什么?

【问题讨论】:

    标签: permissions debian dovecot


    【解决方案1】:

    我已经想出这个命令以正确的方式设置权限。 将其复制到文件(例如 /var/vmail/chmod_vmail)并使其可执行。

    如果您现在位于 /var/vmail 的子文件夹中(或该文件夹本身),您所要做的就是执行脚本。

    chown vmail:vmail /var/vmail/ -R
    find . -type d -name Maildir -exec chmod 700 -R {} \;
    find . -type f \( -name '.sieve' -o -name '.sieve.svbin' \) -exec chmod 644 {} \;
    find . -type f \( -name 'courierimapsubscribed' -o -name 'subscriptions' \) -exec chmod 744 {} \;
    find . -type f \( -name 'dovecot-uidlist' -o -name 'dovecot-uidvalidity' -o -name 'dovecot.index.cache' -o -name 'dovecot.index.log' -o -name 'maildirsize'  \) -exec chmod 600 {} \;
    find . -type f \( -name 'dovecot-uidvalidity.*'  \) -exec chmod 444 {} \;
    

    享受并且不要忘记为这个答案评分,或者发布这个代码的增强。

    【讨论】:

    • 你是男人,顺便说一下chown vmail:mail ...,否则vmail是一个无效组
    猜你喜欢
    • 1970-01-01
    • 2015-01-20
    • 2015-03-27
    • 2010-09-05
    • 1970-01-01
    • 2020-02-05
    • 2010-10-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多