1、fetchmail收邮件
user@host:~$cat .fetchmailrc
poll imap.qq.com
proto imap
user username
keep
ssl
2、mutt读写邮件
user@host:~$mutt -f mbox
user@host:~$cat .muttrc
set from=username@qq.com
set envelope_from=yes
source /usr/share/doc/mutt/examples/gpg.rc
set editor=vim
user@host:~$mutt -s "hello mymutt" < .ssh/id_rsa.pub username@qq.com
3、exim发邮件
root@host:~#dpkg-reconfigure exim4-config
General type of mail configuration:mail sent by smarthost;received via smtp or fetchmail
System mail name:localhost.localdomain
IP-addresses to listen on for incoming SMTP connnections:127.0.0.1;::1
Other destinations for which mail is accepted:localhost.localdomain
Machines to relay mail for:NULL
IP address or host name of the outgoing smarthost:smtp.qq.com
Hide local mail name in outgoing mail:No
Keep number of DNS-queries minimal(Dial-on-Demond):No
Delivery method for local mail:mbox format in /var/mail
Splite configuration into small files:No
root@host:~#cat /etc/exim4/passwd.client
smtp.qq.com:username:userpassword