跳转到内容
来自 Arch Linux 中文维基

本文已被弃用。

本文所述教程或工具由于已经过时而被弃用,请使用其他替代方案: Thunderbird 等,参见应用程序列表/互联网#Email 客户端。 (在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