2015-04-22 127 views
0

我无法从命令提示符发送电子邮件。 经过/var/spool/mail/文件,看到此错误:无法从linux发送电子邮件

<[email protected]> host aserv0021.net.com[141.xxx.1xx.233] said: 
553 5.1.8 <[email protected]>... Domain of sender address 
[email protected] 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; [email protected] 
Arrival-Date: Thu, 23 Apr 2015 01:22:24 +0530 (IST) 

Final-Recipient: rfc822; [email protected] 
Action: failed 
Status: 5.1.8 
Remote-MTA: dns; aserv0021.mycompany.com 
Diagnostic-Code: smtp; 553 5.1.8 <[email protected]>... Domain of 
sender address [email protected] does not exist 

Return-Path: <[email protected]> 
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: [email protected] 
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: <[email protected]> 
From: [email protected] (myid id) 

从所附的返回信息的一些电子邮件正文 XT。

请让我知道我在这里失踪。

谢谢!

回答

2

您的机器需要一个正确的DNS主机名,并且接收MTA将接受来自该主机的邮件。

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

使用“主机名”命令,看看你喜欢的东西

mumble.mycompany.com

结果。在本机中没有配置真正的域时,“localdomain”域通常是替代品。

您可以临时设置使用主机名

主机名mumble.mycompany.com

,但你应该从你的IT部门得到真正的主机名,它就会在系统中以不同的方式,这取决于Linux的设置您正在使用。

+0

谢谢。看起来在这个OEL linux系统上没有配置域。当我输入“主机名”时,我只是得到这个:doooo-0。我的/ etc/hosts包含条目:10.xxx.x.xx doooo-0 doooo-0.in.mycompany.com 12x.0.0.x localhost localhost.localdomian localhost2 localhost2.localdomain2我如何设置主机名和在哪里? – Celestial

+1

主机名设置因不同的Linux发行版而异。您需要检查OEL Linux的网络设置文档。这也取决于您是否使用静态IP或DHCP。 – Hankster