
There is a list of all emails with the sequence number, status, date received, size and subject. Mailx command by default opens the current user’s system mailbox (/var/mail/), so just Open the Unix/Linux terminal and type mailxwithout any parameters on the command prompt to read emails.įirst, you get a summary like a User Mailbox, Total Messages, Total new and unread email, etc. Covering all aspects of this command is beyond the scope of this article.Īll the examples mentioned below are tested with GNU mailx on Ubuntu 18.04 and Ubuntu 20.04 Linux Distro. We are going to cover the basics of mailx for practical purposes.

It has hosts of features even though it is command-based. You can use mailx command to read, write, reply, delete messages. Just use –help option to quickly get help. Those who are interested to learn more about mailx utility, visit mailutilis documentation page or run man command as shown below. Note:- All parameters to this command are optional. This displays details of delivery on the user’s terminal -c – send carbon copies to list of users.-b – send blind carbon copies to list of users.-a – attach the given filename to message.Mention it in double-quotes if it contains space We will see how to read, send and delete emails using the mailx unility. You can use this article which should help you to install mailx. Mailx should not be availalble on your system unless you install it. Caching and disconnected operation for IMAP.Extensions for MIME, IMAP, POP3, SMTP, and S/MIME are also available.

This is based on Berkeley Mail 8.1 and provides the complete functionality of the POSIX mailx command. You can use it to send and receive emails. Mailx is an character-based, intelligent mail processing system.
