Debian 使用 mailx 服务的疑问?

2018-04-24 21:49:11 +08:00
 VKMEPR

Debian 貌似没有自带 mailx 服务?运行 apt-get update && apt-get install mailx 提示安装其他软件包。

Package mailx is a virtual package provided by: mailutils 1:3.1.1-1 bsd-mailx 8.1.2-0.20160123cvs-4 You should explicitly select one to install.

安装 sendmail、mailutils 后,运行 echo "test mailing" | mail -s "Test" mail@example.com 不能发邮件。

是不是还有什么地方遗漏了?比如在哪里配置邮箱 SMTP 信息,我希望使用外部 SMTP 邮箱发邮件。

安装 heirloom-mailx 配置外部 SMTP 信息后可以使用 echo "test mailing" | heirloom-mailx -s "Test" mail@example.com 命令发邮件。

但是 echo "test mailing" | mail -s "Test" mail@example.com 这个命令就不行,是不是需要将默认 mailx 服务设置为 heirloom-mailx ?在哪里设置?

715 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/449564

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX