Linux
Sendmail: ‘TLS verify=FAIL’, ‘554 5.1.8 : Sender address denied: MX record not found’
已經苦苦掙扎了一天,找不到解決辦法。當嘗試向某些主機發送郵件時:
Jan 5 10:31:37 vps**** sm-mta[2192]: STARTTLS=client, relay=mail-x.*****.co.uk., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256 Jan 5 10:31:37 vps**** sm-mta[2192]: u059Vb4d002190: to=<****@****.co.uk>, ctladdr=<root@vps****.ovh.net> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=124764, relay=mail-x.****.co.uk. [212.46.138.29], dsn=5.1.8, stat=Service unavailable
經過一些研究發現它可能是 TLS 問題所以嘗試禁用並添加:
Try_TLS: NO
但後來我得到:
Jan 5 10:33:56 vps**** sm-mta[2375]: ruleset=try_tls, arg1=mail-x.****.co.uk, relay=mail-x.****.co.uk, reject=550 5.7.1 <****@****.co.uk>... do not try TLS with mail-x.****.co.uk [212.46.138.29] Jan 5 10:33:56 vps**** sm-mta[2375]: u059XuVY002373: to=<****@****.co.uk>, ctladdr=<root@vps****.ovh.net> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=124764, relay=mail-x.****.co.uk. [212.46.138.29], dsn=5.1.8, stat=Service unavailable
我的 sendmail 版本和設置:Ubuntu 上的 8.14.4
============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = vps**** (canonical domain name) $j = vps****.ovh.net (subdomain name) $m = ovh.net (node name) $k = vps****.ovh.net ========================================================
有任何想法嗎?
附加資訊:
以詳細模式發送測試消息會產生以下錯誤:
554 5.1.8:發件人地址被拒絕:未找到 MX 記錄
Sendmail:調試傳出 SMTP 會話
以 root 身份發送一條測試消息,其中包含對 SMTP 會話的完整跟踪。
通常它會提供一些有用的提示。
#!/bin/sh RECIPIENT='****@****.co.uk' # -i : sendmail will rewrite lines starting with dot # -Am : use sendmail.cf instead of submit.cf (usually requires root privileges) # -v : use verbose mode (track SMTP session to STDERR) # -- : separate command line arguments and recipients list /usr/sbin/sendmail -i -Am -v -- $RECIPIENT <<END Subject: test message To: $RECIPIENT test message body END