即使 /etc/dovecot/users 文件中没有“apply”用户,我也会在日志中收到以下错误。
我不确定下一步该做什么来诊断。有人能给我建议吗?它说“请参阅服务器日志以获取更多信息”,但我以为这是服务器日志?
May 1 22:40:44 ip-xx-xxx-xx-xx postfix/local[18901]: 1B17763738: to=<apply@localhost>, orig_to=<[email protected]>, relay=local, delay=147501, delays=147501/0.54/0/0.06, dsn=4.3.0, status=deferred (temporary failure)
May 1 22:40:44 ip-xx-xxx-xx-xx dovecot: lda(apply): Error: user apply: Initialization failed: Namespace '': mkdir(/home/vmail//apply) failed: Permission denied (euid=1001(apply) egid=1001(apply) missing +w perm: /home/vmail/, dir owned by 5000:5000 mode=0755)
May 1 22:40:44 ip-xx-xxx-xx-xx dovecot: lda(apply): Error: user apply: Initialization failed: Namespace '': mkdir(/home/vmail//apply) failed: Permission denied (euid=1001(apply) egid=1001(apply) missing +w perm: /home/vmail/, dir owned by 5000:5000 mode=0755)
May 1 22:40:44 ip-xx-xxx-xx-xx dovecot: lda(apply): Fatal: Invalid user settings. Refer to server log for more information.
May 1 22:40:44 ip-xx-xxx-xx-xx dovecot: lda(apply): Fatal: Invalid user settings. Refer to server log for more information.
May 1 22:40:44 ip-xx-xxx-xx-xx postfix/local[18926]: 9E5376357A: to=<apply@localhost>, orig_to=<[email protected]>, relay=local, delay=235638, delays=235637/0.6/0/0.06, dsn=4.3.0, status=deferred (temporary failure)
May 1 22:40:44 ip-xx-xxx-xx-xx postfix/local[18908]: 252106364B: to=<apply@localhost>, orig_to=<[email protected]>, relay=local, delay=218930, delays=218929/0.6/0/0.06, dsn=4.3.0, status=deferred (temporary failure)
May 1 22:40:44 ip-xx-xxx-xx-xx dovecot: lda(apply): Error: user apply: Initialization failed: Namespace '': mkdir(/home/vmail//apply) failed: Permission denied (euid=1001(apply) egid=1001(apply) missing +w perm: /home/vmail/, dir owned by 5000:5000 mode=0755)
May 1 22:40:44 ip-xx-xxx-xx-xx dovecot: lda(apply): Fatal: Invalid user settings. Refer to server log for more information.
May 1 22:40:44 ip-xx-xxx-xx-xx postfix/local[18900]: 9A94063274: to=<apply@localhost>, orig_to=<[email protected]>, relay=local, delay=306900, delays=306900/0.66/0/0.03, dsn=4.3.0, status=deferred (temporary failure)
May 1 22:41:23 ip-xx-xxx-xx-xx dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=101.103.174.186, lip=10.172.21.51, mpid=18952, session=<mc9XXV74CwBlZ666>
May 1 22:41:24 ip-xx-xxx-xx-xx dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/424, size=57179196
[/var/log]
答案1
您的/home/vmail/
文件夹归'5000'
组所有'5000'
,但lda
进程以用户身份运行'apply' (UID 1001)
。
将 /home/vmail/ 的所有权更改为“apply”用户:
chown apply:apply -R /home/vmail/
下次尝试再次投递:
后队列-f
答案2
Dovecot 服务尝试在用户的“apply”目录中使用 Maildir 文件夹,但未成功。要轻松解决此问题,请编辑文件 /etc/aliases ,可在此文件中输入相应的别名:
apply: [email protected]
我使用邮政局长作为示例,但您可以使用任何您想要发送的电子邮件地址。
保存文件后,必须将文件转换为二进制形式,并重新启动相应的服务:
newaliases
Service dovecot restart
Service postfix restart