【问题标题】:Can I use sendmail and mailx procedures in ubuntu installed in HYPER-V我可以在 HYPER-V 中安装的 ubuntu 中使用 sendmail 和 mailx 程序吗
【发布时间】:2015-07-21 12:19:14
【问题描述】:

我已经在 HYPER-V (Windows 8.1) 中安装了 Ubuntu 14 LTS。 使用 apt-get 安装了 mailutils 和 sendmail。 但我无法使用这两个程序发送邮件。 连接和一切都正确,我在 Windows 8.1 或 sendmail/mailx 中配置的东西?

问候, 奢华

【问题讨论】:

    标签: ubuntu sendmail hyper-v mailx


    【解决方案1】:

    使用以下测试脚本以详细模式发送电子邮件以诊断您的问题。

    下面的脚本应该由非root用户执行:

    #!/bin/sh
    # send test email as normal (non root) user
    # change RECIPIENT to valid email address
    RECIPIENT=john.doe@example.net
    /usr/sbin/sendmail -i -v $RECIPIENT <<END
    subject: test email (non root)
    
    test
    END
    

    下面的脚本应该由root用户执行:

    #!/bin/sh
    # send test email as privileged (root) user
    # change RECIPIENT to valid email address
    RECIPIENT=john.doe@example.net
    /usr/sbin/sendmail -Am -i -v $RECIPIENT <<END
    subject: test email (root)
    
    test
    END
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-11
      • 2016-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多