Mail Client with Mutt

welcome to cli world..hehe…

mutt adalah email client untuk console.., gw akan ngasi tau cara termudah untuk setting mutt di ubuntu.

packet yang harus lo install adalah sebagai berikut :

OpenSSL, fetchmail, procmail, msmtp and mutt

step 1

installing the needed componen n aplikasi :

$ sudo apt-get install openssl fetchmail procmail msmtp mutt ca-certificates

step 2

ok, untuk contoh gw akan setting mail untuk gmail, dan account detailnya adalah sebagai berikut :

username :

password : otongmaritong

, balik ke konsol dan buat directory dan file sbb:

$ mkdir -pv ~/mail/certs $ cd ~/mail/certs $ touch Thawte_Premium_Server_CA.pem $ touch Equifax_Secure_CA.pem $ curl –verbose –output \*checkout*/curl/lib/ $ perl re-Hash tu folder :

$ c_rehash ~/mail/certs/

step 3
setting fetchmail
masuk ke home 
$ cd ~

$ vim .fetchmailrc

buat file .fetchmailrc
dan isi file dengan parameter sebagai berikut :
with proto POP3
user ''
there with password 'otongmaritong'
is 'otong' here
mda "/usr/bin/procmail -d %T"
no keep
sslcertpath /etc/ssl/certs

set readable ke tuh file
$ chmod 600 ~/.fetchmailrc

step 4
setting procmail
tambahin ni script ke .bashrc
$ cd ~
$ echo "MAIL=/var/spool/mail/otong && export MAIL" >> .bashrc

buat file .procmailrc
$ vim .procmailrc
dan isi tu file dengan parameter ini :
# Recipes below this comment:

* ^TOmutt-user

step 5
setting msmtp, ni buat ngirim mail.
masuk ke home
$ cd ~
buat file .msmtprc
dan isi file itu dengan parameter sebagai berikut :
account default
port 587
tls on
tls_starttls on
tls_trust_file /home/otong/mail/certs/Thawte_Premium_Server_CA.pem
# tls_trust_file /home/otong/mail/certs/Equifax_Secure_CA.pem
auth on
user otong
password rover
logfile ~/.msmtp.log

make file readable, run this : $ chmod 600 ~/.msmtprc
step 6 setting mutt masuk ke home : $ cd ~ buat file .muttrc $ vim .muttrc dan isi file itu ada parameter ini :

# Boring details
set realname = "otong
set from = ""
set use_from = yes
set envelope_from ="yes"

# Use a signature
set signature="~/.signature"

# Use msmtp rather than sendmail. Check that
# the path is correct for your system:
set sendmail="/usr/bin/msmtp"   

# If not set in ~/.bashrc:
set spoolfile = /var/spool/mail/otong

# Folders
set folder="$HOME/mail"      # Local mailboxes stored here
set record="+sent"           # Where to store sent messages
set postponed="+postponed"   # Where to store draft messages
set mbox_type=mbox           # Mailbox type
set move=no                  # Don't move mail from spool

# Watch these mailboxes for new mail, useful only if
# Procmail or Maildrop is used to sort mail.
mailboxes ! +slrn +fetchmail +mutt
set sort_browser=alpha    # Sort mailboxes by alpha(bet)

# What to show and order of headers
ignore *
unignore Date: From: User-Agent: X-Mailer X-Operating-System To: \
         Cc: Reply-To: Subject: Mail-Followup-To:
hdr_order Date: From: User-Agent: X-Mailer X-Operating-System To: \
        Cc: Reply-To: Subject: Mail-Followup-To:

# which editor do you want to use?
# vim of course!
set editor="vim -c 'set tw=70 et' '+/^$' "
set edit_headers=yes      # See the headers when editing

# Lists: An example using the mutt-users list:

lists mutt-users
subscribe mutt-users
set followup_to=yes        # Sets 'Mail-Followup-To' header
set honor_followup_to=yes
fcc-hook mutt-user +mutt   # See your own posts using fcc

# Odds and ends

set markers          # mark wrapped lines of text in the pager with a +
set smart_wrap       # Don't wrap mid-word
set pager_context=5  # Retain 5 lines of previous page when scrolling.
set status_on_top    # Status bar on top.
push <show-version>  # Shows mutt version at startup


ok.. finish.. sekarang coba buka mutt $ mutt dan ketik shift-1 (!) dan masukan perintah fetchmail -v ,

jika semua parameter benar.  nanti mail akan ke fetching semua..
ini adalah picture mutt yang udah jalan :

the working mutt
mutt mail client

selamat mencoba
Best Regards

Mail Client with Mutt

One thought on “Mail Client with Mutt

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s