我在Ubuntu 12.04盒子上安装了dovecot,postfix和roundcube。 该系统基本上是工作 – 即它能够发送/接收邮件/从其他域。
但是,某些域在/var/log/mail.log中会导致以下错误消息
Jul 15 01:59:21 one postfix/smtp[2019]: 0D0399C025F: to=<[email protected]>, relay=sm01.destdomain.com[xxxx]:25, delay=0.56, delays=0.4/0/0.06/0.1, dsn=5.5.2, status=bounced (host sm01.destdomain.com[xxxx] said: 504 5.5.2 <contact@localhost>: Sender address rejected: need fully-qualified address (in reply to RCPT TO command))
你有什么想法吗? 即如何强制后缀连接到另一台邮件服务器时使用“[email protected]”而不是“contact @ localhost”?
任何提示都表示赞赏。
$mydomain用作许多其他configuration参数的默认值,但不设置发件人域。
看看/etc/postfix/main.cf的$myorigin参数
它指定在本机上发布的邮件中显示的域。 默认是使用本地机器名称$myhostname ,默认为机器的名称。
有关更多信息,请参阅Postfix基本configuration自述文件
像“mail [email protected]”这样的程序可能不会使用myorigin而是创build/ etc / postfix / canonical
@local @realdomain.com
并激活的东西
postmap /etc/postfix/canonical service postfix restart