天天看點

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

繼續閱讀