NBSMTP (简体中文)

From ArchWiki
Jump to navigation Jump to search
翻译状态:本文是 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