如何解决后缀问题:发件人地址被拒绝:需要完全限定的地址(以回复RCPT TO命令)?


12

我已经在ubuntu 12.04盒子上安装了dovecot,postfix和roundcube。该系统基本上可以正常工作-即它能够向/从其他域发送/接收邮件。

但是,某些域在/var/log/mail.log中导致以下错误消息

Jul 15 01:59:21 one postfix/smtp[2019]: 0D0399C025F: to=<someone@destdomain.com>,
      relay=sm01.destdomain.com[x.x.x.x]:25, delay=0.56, delays=0.4/0/0.06/0.1,
      dsn=5.5.2, status=bounced (host sm01.destdomain.com[x.x.x.x] said:
      504 5.5.2 <contact@localhost>: Sender address rejected: need
      fully-qualified address (in reply to RCPT TO command))

你知道这是怎么回事吗?即当连接到另一个邮件服务器时,如何强制postfix使用“ contact@mydomain.com”而不是“ contact @ localhost”?

任何提示表示赞赏。

Answers:


13

$mydomain 用作其他许多配置参数的默认值,但不会设置发送方域。

看一下中的$myorigin参数/etc/postfix/main.cf

它指定出现在此机器上发布的邮件中的域。默认值是使用本地计算机名,$myhostname默认为计算机名。

有关更多信息,请参见Postfix基本配置README。


0

诸如“ mail own@example.com”之类的程序可能不使用myorigin而是创建/ etc / postfix / canonical

@local @realdomain.com

并激活东西

postmap /etc/postfix/canonical
service postfix restart
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.