NBSMTP

来自 Arch Linux 中文维基

本文内容或本节内容已经过期。

原因: 请提供模板的第一个位置参数以概括原因。 (在Talk:NBSMTP讨论)

来自 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[损坏的链接:package not found] 包。

转发到 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