私はmailxコマンドを使用してメールを送信していますが、2つの方法を試しました。
mailx -s "This is Subject" toAddr < bodyFile.txt
mailx -r "fromAddr" -s "This is Subject" toAddr < bodyFile.txt
同じエラーが発生します。
メールの送信:致命的:パラメータinet_interfaces:::1のローカルインタフェースが見つかりません。
次の点でこのエラーを解決する方法を知りたいです。
fromAddress
mailxはデフォルトで何を使用しますか?- mailxはデフォルトでどのメール転送エージェントアドレスを使用しますか?
- この値をどこで変更しますか?
ベストアンサー1
# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
# more /var/log/maillog
Sep 1 17:07:50 izuf6cj2o216xp postfix/sendmail[25307]: fatal: parameter inet_interfaces: no local interface found for ::1
解決済み:
vim /etc/postfix/main.cf
#inet_interfaces = localhost
inet_interfaces = all
それから
service postfix start