Linux serverNETWORK ADMINISTRATIONSsmtp server liux

How to Configure MUTT Email Client With Gmail

Command Line Email Client
http://fosshelp.blogspot.in/2014/05/how-to-mutt-configure-gmail.html

a)
#sudo apt-get install mutt

b)
Create .muttrc file
#vim ~/.muttrc
—————————-
set from = “sajuptpm@gmail.com”
set realname = “Saju”
set imap_user = “sajuptpm@gmail.com”
set imap_pass = “xxxxxx”

##REMOTE GMAIL FOLDERS
set folder = “imaps://imap.gmail.com:993”
set spoolfile = “+INBOX”
set postponed =”+[Google Mail]/Drafts”
set trash = “+[Google Mail]/Trash”

##SMTP Settings to sent email
set smtp_url = “smtp://sajuptpm@smtp.gmail.com:587/”
set smtp_pass = “xxxxxx”

##LOCAL FOLDERS FOR CACHED HEADERS AND CERTIFICATES
set header_cache =~/.mutt/cache/headers
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates

##SECURING
set move = no #Stop asking to “move read messages to mbox”!
set imap_keepalive = 900

##Sort by newest conversation first.
set sort = reverse-threads
set sort_aux = last-date-received

##Set editor to create new email
set editor=’vim’

source

by ATOM

linux smtp client

19 thoughts on “How to Configure MUTT Email Client With Gmail

  • Fucking saved my life. Salute, sir.

  • Nice traffic you have on street lol. Thanks for tutorial and config, mail GUI from now deleted 😉 fast and simple. Cheer's!

  • Login failed….did all you said, plus all other solutions available, still can’t login successfully

  • What a great tutorial. Helped me get it working. Thanks

  • Thanks for the muttrc notes.
    Not sure if it is needed, but I added the following to the ~/.muttrc file.

    set ssl_starttls = yes
    set ssl_force_tls = yes

    Then I had to get an app-specific password for mutt. You can generate an app specific password here. https://security.google.com/settings/security/apppasswords

    I commented out the 'set record'. I was receiving duplicate emails. Gmail still records it in the Sent Mail.

    chmod 0600 ~/.muttrc

  • My .mutt folder is not getting created. What could be the possible source of error?

    P.S.: I have followed exactly the same steps as you have mentioned in the .muttrc file.

  • Thank you for this Saju. if you took Bitcoin, I would send you a tip!

  • Can't believe after a year and a half no one has commented.  Very useful video, sir.  Thank you.

Comments are closed.