将数据包过滤设定为无效状态。在本次试验开始之前,请您确保您的主机上的所有包过滤已被关闭(显然,在实际使用中您可以利用Linux内核的防火墙机制,然而我们在这里关掉它是为了减少潜在的问题)。 本次试验中以root身份来使用下面命令达成上面的要求: service iptables stop chkconfig iptables off
root@server1... Connecting to [127.0.0.1] via relay... 220 localhost.localdomain ESMTP Sendmail 8.12.8/8.12.8; Mon, 22 Sep 2003 14:29:24 +0800 >>> EHLO localhost.localdomain 250-localhost.localdomain Hello station1 [127.0.0.1], pleased to meet you ... >>> MAIL From:<root@localhost.localdomain> SIZE=52 AUTH=root@localhost.localdomain 250 2.1.0 <root@localhost.localdomain>... Sender ok >>> RCPT To:<root@server1> >>> DATA 250 2.1.5 <root@server1>... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 h8M6TOU5026513 Message accepted for delivery root@192.168.241.182... Sent (h8M6TOU5026513 Message accepted for delivery) Closing connection to [127.0.0.1] >>> QUIT 221 2.0.0 localhost.localdomain closing connection