Postfix / Dovecot 多个邮箱目录创建问题

Postfix / Dovecot 多个邮箱目录创建问题

我已经尝试使用虚拟邮箱配置 Postfix 和 Dovecot 三天了。

我的虚拟邮箱存储在这里:

la -la /var/mail

drwxrwsr-x 17 postfix postfix 4096 Jan 17 22:55 vhosts

在vhosts里面我举个例子(有16个域):

ls -la /var/mail/vhosts 

drwxrwsr-x  4 postfix postfix 4096 Jan 17 23:20 thebarcodemaster.com

在这个文件夹中我有两个虚拟邮箱

ls -la /var/mail/vhosts/thebarcodemaster.com/
drwxrwsr-x  5 [email protected] postfix 4096 Jan 17 22:56 info
drwxrwsr-x  5 [email protected] postfix 4096 Jan 17 23:21 test

这是我的 /etc/postfix/vmailbox 的摘录:

[email protected] thebarcodemaster.com/info
[email protected] thebarcodemaster.com/test

这是我的 /etc/postfix/main.cf 的摘录:

virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_gid_maps = static:5000
virtual_uid_maps = static:5000

例如,当我想发送一封邮件到 info 时,Postfix 返回此错误:

tail /var/log/mail.log

[...]
Jan 18 08:12:22 9963C6E postfix/virtual[10442]: 2B316210F8: to=<[email protected]>, relay=virtual, delay=0.05, delays=0.04/0/0/0, dsn=4.2.0, status=deferred (delivery failed to mailbox /var/mail/vhosts/thebarcodemaster.com/info/new: unable to create lock file /var/mail/vhosts/thebarcodemaster.com/info/new.lock: Permission denied)

我已经研究了三天了,但还是有点迷茫。看来 Postfix 有问题,而不是 Dovecot,我可以在 Outlook 上连接到我的帐户(信息等)。

有人能给点建议吗?非常感谢

相关内容