LoginSignup
0
0

More than 5 years have passed since last update.

Mac の Postfix で「Domain of sender address does not resolve」→ myhostname 設定しろ

Posted at

Mac の Postfix でメールを送りたくて SMTP サーバーの設定をしていて、いざ送るぞというときに、 /var/log/mail.log に下記のような感じで出ていました。

Oct 10 17:58:45 machine postfix/smtp[12994]: E3DD1EECDA: to=<youcune@me.com>, relay=host[addr]:port, delay=1069, delays=1061/0.08/1.3/6.5, dsn=4.1.8, status=deferred (host host[addr] said: 451 4.1.8 Domain of sender address user@machine.local does not resolve (in reply to MAIL FROM command))

From に指定されている「xxx.local」が解決できないのが原因ぽいです。 Mac の mail コマンドは From がコマンドからは指定できなさげなので、

$ sudo vi /etc/postfix/main.cf

して

myhostname = youcube.jp

のように解決できるホスト名にしたところメールが送れるようになりました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0