我的 dovecot - postfix - postfixadmin 配置不起作用。
由于我对电子邮件还不太熟悉,所以我关注了本教程
我的服务器是 Ubuntu 13.04 服务器。从本地主机发送电子邮件的工作正常,并且 mx 记录设置正确。
这是 mail.err 中的错误,当我尝试使用 MS Outlook 2013 连接到我的邮箱时
Aug 31 06:00:15 NewWeb dovecot: imap([email protected]): Error: user [email protected]: Initialization failed: Namespace '': mkdir(/home/vmail/xxxxx.it/cappyt) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /home, dir owned by 0:0 mode=0755)
Aug 31 06:00:15 NewWeb dovecot: imap([email protected]): Error: Invalid user settings. Refer to server log for more information.
这里是 mail.log
Aug 31 06:00:01 NewWeb postfix/pickup[8523]: 28C8481010: uid=107 from=<smmsp>
Aug 31 06:00:01 NewWeb postfix/cleanup[12949]: 28C8481010: message-id=<[email protected]>
Aug 31 06:00:01 NewWeb postfix/qmgr[8524]: 28C8481010: from=<[email protected]>, size=709, nrcpt=1 (queue active)
Aug 31 06:00:01 NewWeb postfix/local[12953]: 28C8481010: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Aug 31 06:00:01 NewWeb postfix/qmgr[8524]: 28C8481010: removed
Aug 31 06:00:12 NewWeb dovecot: config: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
Aug 31 06:00:12 NewWeb dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:102: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
Aug 31 06:00:12 NewWeb dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:103: userdb sql {} has been replaced by userdb { driver=sql }
Aug 31 06:00:12 NewWeb dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:106: passdb sql {} has been replaced by passdb { driver=sql }
Aug 31 06:00:12 NewWeb dovecot: auth-worker(12961): mysql(yy.yy.yy.yy): Connected to database postfix_mail
Aug 31 06:00:15 NewWeb dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=x.x.x.x, lip=yy.yy.yy.yy, mpid=12963, TLS, session=<yHREYDblxgCf/4PT>
Aug 31 06:00:15 NewWeb dovecot: imap([email protected]): Error: user [email protected]: Initialization failed: Namespace '': mkdir(/home/vmail/xxxxx.it/cappyt) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /home, dir owned by 0:0 mode=0755)
Aug 31 06:00:15 NewWeb dovecot: imap([email protected]): Error: Invalid user settings. Refer to server log for more information.
Aug 31 06:00:15 NewWeb postfix/smtpd[12964]: connect from ip-159-255-131-211.in-addr.ntrnet.it[x.x.x.x]
Aug 31 06:00:15 NewWeb postfix/smtpd[12964]: warning: ip-159-255-131-211.in-addr.ntrnet.it[x.x.x.x]: SASL LOGIN authentication failed: no mechanism available
Aug 31 06:00:15 NewWeb postfix/smtpd[12964]: lost connection after AUTH from ip-159-255-131-211.in-addr.ntrnet.it[x.x.x.x]
Aug 31 06:00:15 NewWeb postfix/smtpd[12964]: disconnect from ip-159-255-131-211.in-addr.ntrnet.it[x.x.x.x]
我真的不知道问题出在哪里,因为写权限已经应用于 /var/vmail 到用户 vmail:vmail (5000:5000)
此外,如果需要其他配置,请在评论中询问。
答案1
根据错误,它显示 /home/vmail 的所有权权限存在问题,而不是 /var/vmail 的问题。请检查您的配置,您必须在其中指定 maildir(在 dovecot.conf mail_location 中搜索)。如果可能的话,您可以粘贴 mail_location 设置