NBSMTP (简体中文) - ArchWiki

# NBSMTP (简体中文)

From ArchWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
翻译状态：本文是 NBSMTP 的翻译。上次翻译日期：2020-05-11。如果英文版本有所更改，则您可以帮助同步翻译。

来自 nbSMTP manpage：

  nbSMTP is a lightweight SMTP client. It simply takes a message from STDIN and sends it to a relayhost. A relayhost is meant to be a full SMTP server and it will really send the message.

## 安装

安装 nbsmtpAUR 包。

## 转发到 Gmail 邮件服务器

要配置 nbSMTP，您将必须编辑其配置文件（`~/.nbsmtprc`) 并输入您的帐户设置：

    ~/.nbsmtprc

    relayhost=smtp.gmail.com
    port=587
    use_starttls=True
    fromaddr=myusername@gmail.com
    auth_user=myusername@gmail.com
    auth_pass=myultrasecretpassword

请谨慎此文件的权限，建议运行以下命令：

    chmod 600 ~/.nbsmtprc

要测试配置，请创建一个文件（`testemail`）：

    testemail

    To: myusername@gmail.com
    From: myusername@gmail.com
    Subject: nbsmtp test
    hello email world

然后运行：

    /usr/bin/nbsmtp < testemail

Category:

- Email clients (简体中文)