[root@iZbp145axkc98giot5b448Z network-scripts]# mail wgr
Subject: test
test
test
.
EOT
[root@iZbp145axkc98giot5b448Z network-scripts]# send-mail: fatal: parameter inet_interfaces: no local interface found for ::1
修改配置文件
进行发送
[root@iZbp145axkc98giot5b448Z network-scripts]# mail wgr
Subject: test
tetst
test
.
EOT
[root@iZbp145axkc98giot5b448Z network-scripts]#
接受查看邮件
[wgr@iZbp145axkc98giot5b448Z ~]$ mail
Heirloom Mail version 12.5 7/5/10. Type ? for help.
"/var/spool/mail/wgr": 1 message 1 new
>N 1 root Tue Feb 18 23:15 19/700 "test"
& 1
Message 1:
From root@iZbp145axkc98giot5b448Z.localdomain Tue Feb 18 23:15:18 2020
Return-Path:
X-Original-To: wgr
Delivered-To: wgr@iZbp145axkc98giot5b448Z.localdomain
Date: Tue, 18 Feb 2020 23:15:18 +0800
To: wgr@iZbp145axkc98giot5b448Z.localdomain
Subject: test
User-Agent: Heirloom mailx 12.5 7/5/10
Content-Type: text/plain; charset=us-ascii
From: root@iZbp145axkc98giot5b448Z.localdomain (root)
Status: R
tetst
test
&
At EOF
&
At EOF
& exit
You have mail in /var/spool/mail/wgr
[wgr@iZbp145axkc98giot5b448Z ~]$