linux – Sendmail:“TLS verify = FAIL”,“554 5.1.8:发件人地址被拒绝:未找到MX记录”

前端之家收集整理的这篇文章主要介绍了linux – Sendmail:“TLS verify = FAIL”,“554 5.1.8:发件人地址被拒绝:未找到MX记录”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
已经挣扎了一天已经无法找到解决方案.当尝试向某些主机发送邮件时:
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>,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 : Sender address rejected: MX record not found

解决方法

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

sendmail.sendmail(8) – man page

原文链接:/linux/399128.html

猜你在找的Linux相关文章