我按照本教程在我的 centos VPS 上设置了邮件服务器:https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql-on-centos-6
我可以向我的帐户发送电子邮件([电子邮件保护]),但电子邮件没有显示。
我已尝试从 roundcube 发送,因此它是内部发送的,我的 yahoo 帐户和我的 gmail 帐户。
当我从雅虎发送此电子邮件时,它被退回到垃圾邮件中:
----- Forwarded Message -----
This is the mail system at host server.depressionforteens.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<[email protected]>: unknown user: "sam"
Hello world!
这是我的数据库中的用户表:
mysql> select * from users;
+----------------------------+---------------+
| email | password |
+----------------------------+---------------+
| [email protected] | xxxxxxxxxxxxx |
+----------------------------+---------------+
1 row in set (0.00 sec)
我还设置了这样的转发器:
mysql> select * from forwardings;
+-------------------------+----------------------------+
| source | destination |
+-------------------------+----------------------------+
| @depressionforteens.com | [email protected] |
+-------------------------+----------------------------+
1 row in set (0.00 sec)
最后这是我的/etc/postfix/main.cf
文件http://pastebin.com/n7Zgy13X
我意识到我要求很多,但这是我第一次设置邮件服务器,而且一切都很混乱,因为没有任何东西给出相同的结果。
此外,当我尝试发送电子邮件时[电子邮件保护]从 roundcube 到我的 ymail 或者我收到的任何外部电子邮件:
SMTP Error (554): Failed to add recipient "[email protected]" (5.7.1 <[email protected]>: Relay access denied).
有人知道如何修复这个问题吗?我已要求主机添加反向 DNS 条目,此操作已完成。
此外,在 cloudflare 中,我有一个depressionforteens.com 的 MX DNS 记录 --> server.depressionforteens.com
最后,我还使用 opendkim 在我的 DNS 中添加了 DKIM 记录。我认为这应该可行吧?
多谢!