mutt+msmtp

mutt+msmtp
 
 
1,下载msmtp 如: http://downloads.sourceforge.net/msmtp/msmtp-1.4.16.tar.bz2?modtime=1217206451&big_mirror=0
2,解压
tar jxvf  msmtp-1.4.16.tar.bz2
cd msmtp-1.4.16
./configure --prefix=/usr/local/msmtp
make
make install
3,mkdir /usr/local/msmtp/etc
4,vi /usr/local/msmtp/etc/msmtprc
defaults
account 你的邮件账号(如:pop)
host 邮件服务器
from 发送email
auth login
user 如:pop
password 如:1
account default : 如:pop
5,测试
/usr/local/msmtp/bin/msmtp [email protected]
按ctrl +D
6,配置mutt 
vi /etc/Muttrc
set sendmail="/usr/local/msmtp/bin/msmtp"
set use_from=yes
set realname="发送邮件地址"
set editor="vi"
7,测试
echo "helo" | mutt -s "helo" [email protected]
8,ok(记得关闭sendmail)
 
 

你可能感兴趣的:(职场,Mutt,msmtp,休闲)