Mutt is a small but very powerful text-based mail client for Unix operating systems.
In this tutorial, I configure mutt with yahoo to read mail account and send mails.
[root@desk mythcat]# dnf install mutt
Last metadata expiration check: 0:04:13 ago on Sat 10 Apr 2021 09:23:41 PM EEST.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mutt x86_64 5:2.0.5-1.fc33 updates 1.9 M
Installing dependencies:
tokyocabinet x86_64 1.4.48-16.fc33 fedora 506 k
urlview x86_64 0.9-28.20131022git08767a.fc33 fedora 31 k
Transaction Summary
================================================================================
Install 3 Packages
Total download size: 2.4 M
Installed size: 8.6 M
Is this ok [y/N]: y
...
Installed:
mutt-5:2.0.5-1.fc33.x86_64
tokyocabinet-1.4.48-16.fc33.x86_64
urlview-0.9-28.20131022git08767a.fc33.x86_64
Complete!
The
mutt should be compiled with support for tls, you can see all of these with this command:
[root@desk ~]# mutt -v | grep tls
Configure options: '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu'
...ode>
Let's create all settings for the
mutt software with
vi editor:
[root@desk mythcat]# vi ~/.muttrc
set imap_user = "catafest@yahoo.com"
set imap_pass = "your-generate-app-password"
set smtp_url = "smtp://catafest@yahoo.com@smtp.mail.yahoo.com:587"
set smtp_pass = "your-generate-app-password"
set from = "catafest@yahoo.com"
set realname = "Catalin George Festila"
set folder = "imaps://catafest@yahoo.com@imap.mail.yahoo.com:993"
set spoolfile = "+INBOX"
set postponed="+[Yahoo]/Drafts"
set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
set move = no
set sort = 'threads'
set sort_aux = 'last-date-received'
set imap_check_subscribed
set ssl_force_tls = yes
set abort_nosubject = no
set mail_check = 60
set timeout = 10
set sort = "reverse-date-received"
set signature = "~/.mutt/signature"
set copy = no
set imap_keepalive = 900
Then use this command to run it:
[root@desk ~]# mutt
See the result: