Manoj Damor

Unlock the World of Coding with Coding Funda

How to Install and Configure Mutt on Ubuntu 22 /CentOS 9

3 min read
How to Install and Configure Mutt on Ubuntu 22 /CentOS 9

How to Install and Configure Mutt on Ubuntu 22 /CentOS 9

In the world of email clients, Mutt stands out as a powerful and versatile option for users who prefer a command-line interface. Mutt allows you to manage your emails efficiently, with features like support for multiple accounts, threading, and extensive customization options. In this guide, we’ll walk through the process of installing and configuring Mutt on both Ubuntu and CentOS 7.

How to Install and Configure Mutt on Ubuntu/CentOS 7

Email remains a crucial means of communication, especially in professional settings. While graphical email clients are popular, some users prefer lightweight, terminal-based email clients for efficiency and simplicity. Mutt, a powerful and versatile text-based email client, fits this niche perfectly. In this guide, we’ll walk through the process of installing and configuring Mutt on Ubuntu and CentOS systems.

Table of Contents

  1. Introduction to Mutt
  2. Prerequisites
  3. Installing Mutt
  4. Configuring Mutt
  5. Using Mutt
  6. Conclusion

Part 1: Installing Mutt

For Ubuntu:

  1. Update Package Lists: Before installing any new software, it’s a good practice to update your package lists:
sudo apt update

2. Install Mutt: Use the following command to install Mutt on your Ubuntu system:

For CentOS 7:

  1. Enable EPEL Repository: Mutt is available in the EPEL (Extra Packages for Enterprise Linux) repository. First, enable the EPEL repository on your CentOS 7 system:
sudo yum install epel-release

Install Mutt: Once the EPEL repository is enabled, install Mutt using the following command:

sudo yum install mutt

Part 2: Configuring Mutt

  1. Create Mutt Configuration Directory: Mutt’s configuration files are stored in the ~/.mutt directory. Create this directory if it doesn’t already exist:
mkdir -p ~/.mutt

2.Create Configuration File: Create a configuration file named muttrc within the ~/.mutt directory:

touch ~/.mutt/muttrc
  • Edit Configuration File: Open the muttrc file in a text editor and add the following basic configuration:
  • set realname = "Your Name"
    set from = "[email protected]"
    set imap_user = "[email protected]"
    set folder = "imaps://"
    set spoolfile = "+INBOX"
    set smtp_url = "smtp://[email protected]"
    set ssl_starttls=yes
    set ssl_force_tls=yes
    • Replace "Your Name" and "[email protected]" with your actual name and email address. Update the imap_user, folder, and smtp_url parameters with your IMAP server details.
    • Set Permissions: Make the muttrc file readable only by the owner:
    chmod 600 ~/.mutt/muttrc

    Part 3: Using Mutt

    1. Start Mutt: To start Mutt, simply run the following command in your terminal:

    Navigate Mutt: Once Mutt is running, you can navigate through your emails using the arrow keys. Press Enter to read an email, d to delete it, and q to quit Mutt.


    In conclusion, Mutt is a versatile and powerful command-line email client that offers efficient email management capabilities. By following the steps outlined in this guide, you can easily install and configure Mutt on both Ubuntu and CentOS 7 systems. Whether you’re a command-line enthusiast or simply looking for a lightweight and efficient email client, Mutt is an excellent choice for managing your emails with ease.

    By leveraging Mutt’s extensive customization options and intuitive interface, you can streamline your email workflow and stay organized without the need for a graphical email client. So why not give Mutt a try and experience the convenience of command-line email management firsthand?

    Check My Social Profile Links





    Android Application

    About The Author

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Follow by Email