mail 命令不再从 /var/spool/mail/root 读取

mail 命令不再从 /var/spool/mail/root 读取

直到半小时前,mail命令仍按预期工作。

现在它说no mail for root

但我仍然可以查看和阅读我的邮件/var/spool/mail/root

我认为我没有更改任何设置。如果相关的话,我正在使用 postfix 2.10。

更新 1 输出echo "testing" | postfix -v root@localhost

postfix: name_mask: all
postfix: name_mask: subnet
postfix: inet_addr_local: configured 2 IPv4 addresses
postfix: inet_addr_local: configured 2 IPv6 addresses
postfix: been_here: 127.0.0.0/8: 0
postfix: been_here: 172.30.0.0/24: 0
postfix: been_here: [::1]/128: 0
postfix: been_here: [fe80::]/64: 0
postfix: mynetworks: 127.0.0.0/8 172.30.0.0/24 [::1]/128 [fe80::]/64 
postfix/postfix-script: error: unknown command: 'root@localhost'
postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration)

更新 2 现在奇怪的是,它mail可以工作,但是读取的centos不是root

我不想粘贴别名文件,因为我所知道的唯一在这里格式化它的方法会花费我很长时间。但是,运行命令后cat,在输出的底部我看到了You have mail in /var/spool/mail/centos。当我用 打开文件时我看不到它vim

相关内容