如何在CentOS 6服务器上运行`mail`(运行postfix)


3

在我的旧服务器和我运行的大多数其他设备上,有一个提供的mail程序。

在我的新CentOS 6服务器上,运行postfix作为MTA,我无法发送命令行电子邮件mail- 工具不在那里。

yum whatprovides mail打电话时,我没有得到任何帮助:

$ yum whatprovides mail
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: centos.kiewel-online.ch
 * extras: centos.kiewel-online.ch
 * updates: centos.kiewel-online.ch
base                                                     | 3.7 kB     00:00
base/primary_db                                          | 4.2 MB     00:00
cr                                                       | 3.5 kB     00:00
cr/primary_db                                            | 3.9 MB     00:00
extras                                                   | 3.0 kB     00:00
extras/primary_db                                        | 1.9 kB     00:00
updates                                                  | 3.5 kB     00:00
updates/primary_db                                       | 3.3 MB     00:00
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/mail" and/or "*bin/mail" to get that behaviour
No Matches found

应该如何在CentOS 6上发送用户到用户的邮件?

Answers:


9

在CentOS中,这个二进制文件由mailx包提供:

yum install mailx

仅供参考,如帖子底部的消息所示,您使用whatprovides不当。正确使用搜索镜像称为“邮件”的文件应该是:

yum whatprovides */mail

我没有意识到我一直在运行whatprovides错误 - 这就是你在旧版本的yum:) 上做到了这一点
warren

yum whatprovides */mail还是yum whatprovides *bin/mail
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.