VKMEPR
V2EX  ›  问与答

Debian 使用 mailx 服务的疑问?

  •  
  •   VKMEPR · Apr 24, 2018 · 1047 views
    This topic created in 2949 days ago, the information mentioned may be changed or developed.

    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" [email protected] 不能发邮件。

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

    安装 heirloom-mailx 配置外部 SMTP 信息后可以使用 echo "test mailing" | heirloom-mailx -s "Test" [email protected] 命令发邮件。

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3018 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 14:32 · PVG 22:32 · LAX 07:32 · JFK 10:32
    ♥ Do have faith in what you're doing.