BOOKING

2018年1月5日星期五

setup the Email sent from PI

Linux Mutt 寄信出現 GPGME: CMS protocol not available 修復



step1: install the muttrc
step2:setup the .muttrc

避免 Cron 每次執行都出現 GPGME: CMS protocol not available 的訊息,只要於執行此 Cron 的 User 設定下述即可:
  1. vim ~/.muttrc
    set crypt_use_gpgme = no
  2. 測試:mutt -s "This is Title" root < $content_file
  3. $ mutt -D # 列出所有設定值
  4. $ mutt -D | grep use_gpg
  5. $ mutt -y # 可以用此來看有沒有警告訊息
註:Mutt 我只用在收信和發本機的 Mail,所以不需要 GPG

echo "内容" | mutt -s "hello" mwzhang@outloo.com

没有评论:

发表评论