亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

樹莓派 msmtp和mutt 的安裝和配置教程

 更新時(shí)間:2019年07月04日 09:07:38   作者:Amadues  
這篇文章主要介紹了樹莓派 msmtp和mutt 的安裝和配置教程,本文給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

1,安裝mutt

sudo apt-get install mutt

2,安裝msmtp

sudo apt-get install msmtp

3,設(shè)置mutt

/etc/Muttrc   # 系統(tǒng)全局設(shè)置

~/.muttrc    # 使用某個(gè)系統(tǒng)用戶

raspberrypi# vim ~/.muttrc 
set sendmail="/usr/bin/msmtp"
set use_from=yes
set realname="name_post"  # 發(fā)件人昵稱
set editor="vi"
set from=xxx@xxxx.com    # 發(fā)件人郵箱
set envelope_from=yes
set crypt_use_gpgme=no
#tls off

4,設(shè)置msmtp

創(chuàng)建 ~/.msmtprc 和 ~/.msmtp.log 分別為配置和日志文件

raspberrypi# vim ~/.msmtprc
account default
host smtp.xxxx.com  # 可在郵箱設(shè)置中查看
user xxxx  # 一定要是郵箱@前的部分
from xxxx@xxxx.com
password 123456  # 郵箱密碼(有可能為授權(quán)碼)
auth plain
logfile ~/.msmtp.log

5,查看SMTP服務(wù)器是否支持認(rèn)證的TLS加密

raspberrypi# msmtp --host=smtp.sina.com --serverinfo        
SMTP server at smtp.sina.com (xk-6-242-a8.bta.net.cn [202.108.6.242]), port 25:
  smtp-5-121.smtpsmail.fmail.xd.sinanode.com ESMTP
Capabilities:
  STARTTLS:
    Support for TLS encryption via the STARTTLS command
  AUTH:
    Supported authentication methods:
    PLAIN LOGIN 
This server might advertise more or other capabilities when TLS is active.

可見支持認(rèn)證(若不支持取消注釋.muttrc中的最后一項(xiàng),未親測,一般都支持)。

6,測試發(fā)郵件

echo 正文 | mutt -s 主題 xxxx@xx.com -a 附件

總結(jié)

以上所述是小編給大家介紹的樹莓派 msmtp和mutt 的安裝和配置教程,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
如果你覺得本文對(duì)你有幫助,歡迎轉(zhuǎn)載,煩請(qǐng)注明出處,謝謝!

相關(guān)文章

最新評(píng)論