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 包。
转发到 Gmail 邮件服务器
要配置 nbSMTP,您将必须编辑其配置文件(~/.nbsmtprc
) 并输入您的帐户设置:
~/.nbsmtprc
relayhost=smtp.gmail.com port=587 use_starttls=True [email protected] [email protected] auth_pass=myultrasecretpassword
请谨慎此文件的权限,建议运行以下命令:
chmod 600 ~/.nbsmtprc
要测试配置,请创建一个文件(testemail
):
testemail
To: [email protected] From: [email protected] Subject: nbsmtp test hello email world
然后运行:
/usr/bin/nbsmtp < testemail