无法从linux发送电子邮件 [英] Unable to send emails from linux

查看:192
本文介绍了无法从linux发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法从命令提示符发送电子邮件。
检查 / var / spool / mail / 文件,看到这个错误:

 code>< myname@company.com>主持人aserv0021.net.com [141.xxx.1xx.233]说:
553 5.1.8< id@doooo-0.localdomain> ...发件人地址的地址
id @ doooo- 0.localdomain不存在(回复MAIL FROM
命令)

--8F9311E0709.1429732346 / doooo-0.localdomain
内容描述:传送报告
Content-Type:message / delivery-status

报表-MTA:dns; doooo-0.localdomain
X-Postfix-Queue-ID:8F9311E0709
X-Postfix-Sender:rfc822; id@doooo-0.localdomain
抵达日期:星期四,2015年4月23日01:22:24 +0530(IST)

最终收件人:rfc822; myname@company.com
动作:失败
状态:5.1.8
远程MTA:dns; aserv0021.mycompany.com
诊断代码:smtp; 553 5.1.8< id@doooo-0.localdomain> ...
的域名发件人地址id@doooo-0.localdomain不存在

返回路径:< id @ doooo-0.localdomain>
收到:由doooo-0.localdomain(Postfix,从userid 5xxxx6)
id 8F93xxx0709;星期四,2015年4月23日01:22:24 +0530(IST)
日期:星期四,2015年4月23日01:22:24 +0530
收件人:myname@company.com
主题:没有提交,因为以前的版本
用户代理:传家宝邮件12.4 7/29/08
MIME版本:1.0
内容类型:text / plain; charset = us-ascii
Content-Transfer-Encoding:7bit
Message-Id:< 20150422195224.8F9311E0709@doooo-0.localdomain&
From:id@doooo-0.localdomain(myid id)

一些电子邮件正文
xt从附件返回的消息。



请告诉我在这里我错过了什么。



谢谢!

解决方案

您的机器需要正确的DNS主机名,接收MTA将接收邮件。

为了防止大量的垃圾邮件,大多数邮件代理(MTA)都有非常严格的规则检查,如果不符合各种规则,则不接受邮件,包括查找发件人的域并验证它是一个真实的域名。



使用hostname命令,看看是否得到类似于



mumble.mycompany.com



结果。



您可以使用


$临时设置一个主机名,localdomain域通常是替代的。 b $ b

hostname mumble.mycompany.com



但您应该从IT部门获取真实的主机名,并根据不同的方式在系统中设置你正在使用哪个linux。


I am unable to send email from command prompt. Checked /var/spool/mail/ file and see this error:

<myname@company.com> host aserv0021.net.com[141.xxx.1xx.233] said:
553 5.1.8 <id@doooo-0.localdomain>... Domain of sender address
id@doooo-0.localdomain does not exist (in reply to MAIL FROM
command)

--8F9311E0709.1429732346/doooo-0.localdomain
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; doooo-0.localdomain
X-Postfix-Queue-ID: 8F9311E0709
X-Postfix-Sender: rfc822; id@doooo-0.localdomain
Arrival-Date: Thu, 23 Apr 2015 01:22:24 +0530 (IST)

Final-Recipient: rfc822; myname@company.com
Action: failed
Status: 5.1.8
Remote-MTA: dns; aserv0021.mycompany.com
Diagnostic-Code: smtp; 553 5.1.8 <id@doooo-0.localdomain>... Domain of
sender address id@doooo-0.localdomain does not exist

Return-Path: <id@doooo-0.localdomain>
Received: by doooo-0.localdomain (Postfix, from userid 5xxxx6)
    id 8F93xxx0709; Thu, 23 Apr 2015 01:22:24 +0530 (IST)
Date: Thu, 23 Apr 2015 01:22:24 +0530
To: myname@company.com
Subject: No commit since previous build
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20150422195224.8F9311E0709@doooo-0.localdomain>
From: id@doooo-0.localdomain (myid id)

some email body text xt from the attached returned message.

Kindly let me know what I am missing here.

Thanks!

解决方案

Your machine needs a proper DNS hostname and one that the receiving MTA will accept mail from.

To prevent a lot of spam most mail agents (MTA's) have pretty strict rule checking and won't accept mail if various rules aren't met, including looking up the domain of the sender and verifying that it's a real domain.

Use the "hostname" command and see if you get something like

mumble.mycompany.com

as a result. The "localdomain" domain is usually a substitute when no real domain was configured in the machine.

You can temporarily setup a hostname using

hostname mumble.mycompany.com

but you should get a real hostname from your IT department and it gets set in the system in different ways depending on which linux you are using.

这篇关于无法从linux发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆