大网数据广告活动
服务器运维问答

Sendmail: "TLS verify=FAIL", "554 5.1.8 : Sender address rejected: MX record not found"

· 52CE 我爱测

Have been struggling for a day already and can't find solution. When try to send mails to some hosts: Jan 5 10:31:37 vps**** sm-mta[2192]: STARTTLS=client, relay=mail-x.*****.co.uk., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-R…

问题原文

原帖链接 · Amundio · CC BY-SA 3.0

Have been struggling for a day already and can't find solution. When try to send mails to some hosts:

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

After some study found that it might be TLS problem so tried to disable and add:

Try_TLS:   NO

but then I get:

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

My sendmail version and settings: 8.14.4 on Ubuntu

============ 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
========================================================

Any ideas?


Additional info:

Sending a test message in verbose mode generated the following error:

554 5.1.8 : Sender address rejected: MX record not found

已采纳解答

原帖链接 · AnFi onet.eu · CC BY-SA 3.0

Sendmail: Debugging outgoing SMTP session

As root send a test message with full tracking of the SMTP session.
Usually it provides some useful hints.

#!/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

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-01-05)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。