我正在关注Guid @ http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-ubuntu-12.10。但我遇到了一些问题。
第一个问题是:(mail.log)
Jan 19 21:52:07 ... imapd: Connection, ip=[::ffff:127.0.0.1]
Jan 19 21:52:07 ... imapd: chdir example.eu/jan/: No such file or directory
Jan 19 21:52:07 ... imapd: [email protected]: No such file or directory
经过一段时间的谷歌搜索后,我发现这些文件夹是在我收到第一封邮件时最初创建的。-> 所以我发送了一个:(mail.log)
Jan 19 21:55:51 ... postfix/smtpd[1315]: connect from mx1.uni-trier.de[136.199.224.17]
Jan 19 21:55:51 ... postfix/trivial-rewrite[1278]: warning: do not list domain example.eu in BOTH mydestination and virtual_mailbox_domains
Jan 19 21:55:51 ... postfix/smtpd[1315]: C0A1C231808A: client=mx1.uni-trier.de[136.199.224.17]
Jan 19 21:55:51 ... postfix/cleanup[1318]: C0A1C231808A: message-id=<[email protected]>
Jan 19 21:55:51 ... postfix/qmgr[1177]: C0A1C231808A: from=<[email protected]>, size=1179, nrcpt=1 (queue active)
对我来说,邮件服务器似乎正在接收我的邮件,但发送帐户告诉我:
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below[...]
你知道为什么吗?我完全按照指南操作。
提前致谢。
编辑:
- /etc/postfix/main.cf @http://pastebin.com/1AwEwzT3
- 快递配置可以在这里找到: http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-ubuntu-12.10-p2
答案1
main.cf
,修改第34行,删除example.eu
。重启postfix是否有 /home/vmail/ 目录?
在电子邮件服务器上,以下命令是否成功向用户发送电子邮件?
mail <username>
或者链接 P4 上的第 14 步http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-ubuntu-12.10-p4
第 43 行,教程中的潜在错误
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
应该是
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf
手动创建 Maildir
mkdir /home/vmail/<username> maildirmake /home/vmail/<username>/Maildir chown -R 5000:5000 /home/vmail/<username>