mutt+msmtp 配置

  1. wget http://nchc.dl.sourceforge.net/sourceforge/msmtp/msmtp-1.4.17.tar.bz2 

  2. tar xvf msmtp-1.4.17.tar.bz2 

  3. cd msmtp-1.4.17 

  4. ./configure --prefix=/usr/local/msmtp 

  5. make 

  6. make install 

  7. cd /usr/local/msmtp/ 

  8. mkdir etc #配置文件目錄和配置文件都要自己建 

  9. cd etc


defaults

logfile /usr/local/msmtp/log/msmtp.log

account [email protected]

host smtp.163.com


from  [email protected]

auth login

tls off

user  [email protected]

password  

account default: [email protected]


yum install mutt



vim /etc/Muttrc set sendmail="/usr/local/msmtp/bin/msmtp" #你的msmtp命令路徑 set use_from=yes set realname="[email protected]" set editor="vim"



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章