Pages

Wednesday, June 28, 2017

Mutt – A Command Line Email Client to Send Mails from Terminal

As a System admin, sometimes we need to send mails to users or someone else from the server and for that we used to go with a web based interface to send email, is it really that handy ? Absolutely No.
Linux Mutt Command
Mutt Command Line Email Client
Here in this tutorial, we’ll be using the mutt (a terminal email client) command to send email from command line interlace.

What is Mutt?
Mutt is a command line based Email client. It’s a very useful and powerful tool to send and read mails from command line in Unix based systems. Mutt also supports POP and IMAP protocols for receiving mails. It opens with a coloured interface to send Email which makes it user friendly to send emails from command line.
Mutt Features
Some other important features of Mutt is as follows:
  1. Its very Easy to install and configure.
  2. Allows us to send emails with attachments from the command line.
  3. It also has the features to add BCC (Blind carbon copy) and CC (Carbon copy) while sending mails.
  4. It allows message threading.
  5. It provides us the facility of mailing lists.
  6. It also support so many mailbox formats like maildirmboxMH and MMDF.
  7. Supports at least 20 languages.
  8. It also support DSN (Delivery Status Notification).

How to Install Mutt in Linux

We can install Mutt Client in our Linux box very easily with any package installers as shown.
# apt-get install mutt (For Debian / Ubuntu based system)
# yum install mutt (For RHEL / CentOS / Fedora based system)
Configuration files
Configuration files of Mutt Email client.
  1. Main Configuration file: To make changes globally for all users For mutt, you can make changes in its mail configuration file “/etc/Muttrc“.
  2. User Configuration file of Mutt : If you want to set some specific configuration for a particular user for Mutt, you can configure those settings in ~/.muttrc or ~/.mutt/muttrc files.
Basic Syntax of mutt command
mutt options recipient
Read Emails with Mutt
To read emails of the user with you are currently logged in, you just need to run “mutt” on the terminal, it will load the current user’s mailbox.
[root@tecmint ~]#  mutt
Read Mail from Command Line
Read Mail from Terminal
To read the emails of a specific user, you need to specify which mail file to read. For example, You (as root) wants to read mails of user “John“, you need to specify his mail file with “-f” option with mutt command.
      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
                                                    ► Read more: http://adf.ly/1nBRjT
      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

No comments:

Post a Comment