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

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

现在它说no mail for root

但是我仍然可以在/var/spool/mail/root看到并阅读我的邮件。

我不相信我改变了任何设置。 如果这是相关的,我正在使用postfix 2.10。

更新1输出echo "testing" | postfix -v root@localhost 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打开文件时,我没有看到。