标签:defaults 配置文件 account local
wget http://nchc.dl.sourceforge.net/sourceforge/msmtp/msmtp-1.4.17.tar.bz2
tar xvf msmtp-1.4.17.tar.bz2
cd msmtp-1.4.17
./configure --prefix=/usr/local/msmtp
make
make install
cd /usr/local/msmtp/
mkdir etc #配置文件目录和配置文件都要自己建
cd etc
defaults
logfile /usr/local/msmtp/log/msmtp.log
account xing1380362@163.com
host smtp.163.com
from xing1380362@163.com
auth login
tls off
user xing1380362@163.com
password
account default: xing1380362@163.com
yum install mutt
vim /etc/Muttrc set sendmail="/usr/local/msmtp/bin/msmtp" #你的msmtp命令路径 set use_from=yes set realname="xman@163.com" set editor="vim"
本文出自 “小小鸟你妈” 博客,请务必保留此出处http://xiaoxiaoniao.blog.51cto.com/8727225/1671460
标签:defaults 配置文件 account local
原文地址:http://xiaoxiaoniao.blog.51cto.com/8727225/1671460