我有Postfix + Courier安装在MySQL中的虚拟域/用户,但是,在/ home / vmail这些目录不会创build,所以我得到:
Apr 1 17:56:18 Lucid authdaemond: Authenticated: clearpasswd=xxx, passwd=xxx Apr 1 17:56:18 Lucid imapd-ssl: chdir domain.com/user/: No such file or directory Apr 1 17:56:18 Lucid imapd-ssl: [email protected]: No such file or directory
我不希望在新用户可以login之前每次都创build/home/vmail/domain.com/user。 有没有办法让自动创build的目录?
通过向[email protected]发送一个欢迎邮件,这些目录应该由Postfix自动创build(只要授权在父目录中)。
信使不会自己创build丢失的目录。
但是应该清楚,只有在MySQL表中插入一行,Postfix和Courier都不会自动创build任何目录。 另一个解决scheme是编写一个脚本,定期maildirmake在MySQL表中find任何不存在的目录。