2

我正在尝试在 postfix 上配置虚拟邮箱..

我的虚拟配置如下所示:

#myhostname =
#alias_maps = hash:/etc/aliases
#alias_database = hash:/etc/aliases
mydestination = localhost, localhost.cz
#relayhost =
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 31.31.72.249/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

mailbox_size_limit = 0

virtual_transport = virtual
virtual_minimum_uid = 1000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/home/postfix/aliases.cf, mysql:/home/postfix/emails.cf
virtual_mailbox_domains = proxy:mysql:/home/postfix/domains.cf
virtual_mailbox_maps = proxy:mysql:/home/postfix/mailbox.cf
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

但是当我收到一封电子邮件时,我收到错误:

9 月 11 日 16:48:02 asianstyle postfix/virtual[23228]: EC38A3F693: to=, relay=virtual, delay=0.06, delays=0.03/0.02/0/0.01, dsn=4.2.0, status=deferred (delivery failed到邮箱 /var/vmail/asianstyle.cz/info/inbox: 无法创建锁定文件 /var/vmail/asianstyle.cz/info/inbox.lock: 没有这样的文件或目录)

文件夹 /var/vmail 存在并且属于 vmail:vmail(具有 uid 和 gid 5000) 我是否必须手动创建目录或者 postfix 可以创建它们并且我只是配置错误?

感谢您的任何帮助..

4

0 回答 0