mail的使用

mail的其他文章:mail的发送、GNU PG

installation

Mutt is a small but very powerful text-based mail client for Unix operating systems.

1) install

yum install mutt

2) config

$vi ~/.muttrc
set sendmail="/usr/local/msmtp/bin/msmtp"
set from = "user@domain.com"
set realname = "Realname of the user"

received mail:

set pop_host="pop.163.com"
set pop_user="love_shidie"
set pop_pass=`getpassword email_id`

test

1) send mail

gpg -d ~/.msmtp/love_shidie-passoword.gpg
$mutt -s "test message" -a ~/message121.txt

2) received mail

$mutt

Press key: G

Reference