How to setup mailx in Ubuntu?
Just type mailx on the command prompt to start the utility, if you get the Cannot open mailbox /var/mail/imaginelinux: Permission denied No mail for imaginelinux error as you are running this command for the first time and the user mailbox is not setup.
How to use mailx in Ubuntu?
mailx command by default opens the current user's system mailbox (/var/mail/<user>), so just Open the Unix/Linux terminal and type mailx without any parameters on the command prompt to read emails. First, you get a summary like a User Mailbox, Total Messages, Total new and unread email, etc.