linux - Sendmail:即使 stat=send 也无法发送邮件

标签 linux email centos sendmail

它以前是工作的,但有一天我们突然无法发送任何邮件。有时邮件日志将统计信息显示为“数据格式错误”或“已发送”。但它实际上并没有发送邮件。

在它停止工作的同一天,我们遇到了磁盘空间不足的问题,但我们已经释放了一些空间。想知道磁盘空间是否有任何作用。

我们检查了防火墙设置,应该没问题。

这是我们邮件日志的一部分:

 Jun 16 12:31:26 exampleserver sendmail[30535]: u5G4VQFU030535: from=root, size=74, class=0, nrcpts=1, msgid=<201606160431.u5G4VQFU030535@exampleserver>, relay=root@localhost
Jun 16 12:31:26 exampleserver sendmail[30536]: u5G4VQdk030536: from=<root@exampleserver>, size=320, class=0, nrcpts=1, msgid=<201606160431.u5G4VQFU030535@exampleserver>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun 16 12:31:26 exampleserver sendmail[30535]: u5G4VQFU030535: to=testing@destination.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30074, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (u5G4VQdk030536 Message accepted for delivery)
Jun 16 12:31:26 exampleserver sendmail[30538]: STARTTLS=client, relay=testing2.destination.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-GCM-SHA384, bits=256/256
Jun 16 12:31:26 exampleserver sendmail[30538]: u5G4VQdk030536: to=<testing@destination.com>, ctladdr=<root@exampleserver> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120320, relay=hku-nsp2.destination.com. [147.8.145.28], dsn=5.6.0, stat=Data format error
Jun 16 12:31:26 exampleserver sendmail[30538]: u5G4VQdk030536: u5G4VQdk030538: DSN: Data format error
Jun 16 12:31:26 exampleserver sendmail[30538]: u5G4VQdk030538: to=<root@exampleserver>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31526, dsn=2.0.0, stat=Sent

谁能告诉我问题出在哪里?非常感谢!

最佳答案

发现我必须将我的IP地址和域名添加到/etc/host文件中才能让接收主机知道我们是谁。

关于linux - Sendmail:即使 stat=send 也无法发送邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37873497/

相关文章:

cocoa-touch - Objective C - 通过 MFMailComposeViewController 的附件未显示

c# - .NET SMTP 邮件 - 附件文件名被重命名

linux - Laravel 4.2 邮件突然停止在 Amazon ec2 linux 中工作

python - 将执行哪个版本的程序?是/usr/bin 里的还是/usr/local/bin 里的?

linux - 如何制定 rpm 规范来移动以前标记为 %config 的文件?

linux - 构建 rpm - glob 找不到文件 :

linux - TCL Expect 正在向标准输出注入(inject)额外的空字符

python - 无法在 EC2(CentOS)上安装 psycopg 3

imagemagick - CentOS 上的 Apple 的 SIPS 工具?

linux - apache requestheader 环境变量