跳至內容
出自 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