I have Mail client installed on my Ubuntu server. I know how to send email from terminal and I know how to read email, if I get it. But - how can I enter in Mail client if I don't have any new mail. To be more understandable - I want to enter the part where can I see commands like alias, alt, copy, cd, ch, dec, delete ... Or maybe - how can I find (read) all sent mails?
UPDATE: I use Mail (GNU Mailutils 2.99.99). If I have a new mail and write "mail" then it opens a program where I can read an email (with inserting a number written before name and subject). I can also type "?" to get more help, where I can see many options (write, save, send, delete ...). This is ok. But - if I don't have any email waiting for me and if I write "mail" in terminal, I get only message "No mail for xxxx". It stays in Linux terminal, but I'm sure, it can open a Mail program somehow.
To show the messages sent to the username which you logged in with from the terminal simply type
mail
however mail needs to be configured in order to receive messages from local users. The easiest way to configure mail is to install sendmail withsudo apt-get sendmail
and the sendmail program will work for 3 to 5 minutes when it is being installed and it will configure mail automatically.Then type
mail
to start the program and after the?
prompt type the number of a message to read it in the terminal. It can take a few minutes to get a notification that you have received a new message after it is sent.The way to indicate the end of a message when composing a message in mail is to type a newline at the end of the message containing only the . character and press Enter.