linux – Sendmail:“TLS verify = FAIL”,“554 5.1.8:发件人
发布时间:2020-12-13 17:01:27 所属栏目:Linux 来源:网络整理
导读:已经挣扎了一天已经无法找到解决方案.当尝试向某些主机发送邮件时: 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/256Jan 5 10:31:37 vps**** sm-
已经挣扎了一天已经无法找到解决方案.当尝试向某些主机发送邮件时:
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 ======================================================== 有任何想法吗? 附加信息: 以详细模式发送测试消息会生成以下错误:
解决方法
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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |