我刚刚在我的debian系统上安装了postfix,所以除了/etc/postfix/main.cf中的以下值外,我还有一个默认configuration:
myhostname = mydomain.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = myhostname, localhost.localdomain, , localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all myorigin = mydomain.com relay_domains = mydomain.com
我发送给[email protected]的每封电子邮件都会与邮件服务器反弹,告诉我:
This is the mail system at host mydomain.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]>: mail for mydomain.com loops back to myself
我该如何解决这个问题?
如果这是字面上你在main.cf有什么,那么修复很容易。
你需要一个$。
mydestination = $myhostname, localhost.localdomain, , localhost
如果这不能解决它然后运行postconf -n并发布输出。