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