0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CloudGarageでメールが送れない

Posted at

CloudGarageにCentOS7をいれてmailコマンドを使ったらエラーになった。

エラー
send-mail: fatal: parameter inet_interfaces: no local interface found for ::1

解決策

ちょっと古いけど、CentOSでIPv6 を無効にするとメールが送れなくなった - Qiitaの方法が参考になりそう(CloudGarageの場合、そもそもIPv6がない)

投稿によると/etc/hostsにあるIPv6設定をコメントアウトする必要あるらしい。

/etc/hosts
前
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

後
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
# ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

修正してもう一回送信

postdrop: warning: unable to look up public/pickup: No such file or directory

あれ?・・・postfixが起動してない?

サービス起動
systemctl start postfix

今度こそ送信完了。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?