私はcentOS 7サーバーからメールを送信しようとしましたが失敗しました。
以下は、原因と思われる内容を含む電子メールからの抜粋です。解決策がわからない。
私のホストファイルに正しい設定があると思いますが、間違っている可能性があります。
注:私のメールアドレスを次のように置き換えました。[Eメール保護]。
メールログにもstat = sentがあります。
The original message was received at Tue, 29 Nov 2016 10:46:18 GMT
from localhost [127.0.0.1]
----- The following addresses had permanent fatal errors -----
<[email protected]>
(reason: 550 Host unknown)
----- Transcript of session follows -----
550 5.1.2 <[email protected]>... Host unknown (Name server: myaddress.com: host not found)
編集する
#/usr/sbin/sendmail -d8.20 -bv [email protected]
Warning: OperatorChars is being redefined.
It should only be set before ruleset definitions.
Warning: OperatorChars is being redefined.
It should only be set before ruleset definitions.
Warning: OperatorChars is being redefined.
It should only be set before ruleset definitions.
dns_getcanonname(myaddress.com, trymx=1)
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
dns_getcanonname: trying myaddress.com. (AAAA)
YES
[email protected]... deliverable: mailer local, user email
ベストアンサー1
sendmail.org/sendmail.com から発行された DNS クエリを表示するには、次のコマンドを実行します。
/usr/sbin/sendmail -d8.20 -bv [email protected]
権限のないユーザーでコマンドを実行しても結果が表示されない場合は、rootとしてコマンドを実行してください。