如果你使用 ExtMail 而没有使用 ExtMan,在添加新用户之后立即登录 ExtMail,会无法登录并得到类似的错误信息:
Can‘t chdir to /home/vmail/a.cn/www/, no such file or directory.
这是由于 ExtMail 并不自动建立用户邮箱目录导致的。下面提供自动创建用户邮箱目录的补丁,作用就是让 ExtMail 在检测到用户邮箱不存在的时候自动创建它。
补丁使用方法:
1、备份已有的 ExtMail 目录。例如将整个 ExtMail 目录复制到 /opt/ 目录下:
cp -rfp /var/www/extsuite/extmail/ /opt/extmail/
2、下载补丁并使用 patch 命令打补丁:
cd /tmp/ wget http://iredmail.googlecode.com/svn/trunk/iRedMail/patches/extmail/auto_create_maildir.patch cd /var/www/extsuite/extmail/ patch -p0 < /tmp/auto_create_maildir.patch patching file libs/Ext/Storage/Maildir.pm
3、使用 PostfixAdmin 或 mysql 命令行添加新用户,然后登录 ExtMail。看是否能够成功登录并查看邮箱。
【Postfix】Extmail登录提示:Can’t chdir to /vmail/www/, no such file or directory.,布布扣,bubuko.com
时间: 2024-08-28 22:35:56