mail command not working

Asked by srihari

I have installed postfix.
when i type mail,
it gives this

rudra@Rudra-home:~$ mail
The program 'mail' can be found in the following packages:
 * mailx
 * mailutils
Try: sudo apt-get install <selected package>
bash: mail: command not found
rudra@Rudra-home:~$

Does it require to install above pkgs even after installing postfix.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

yes

do sudo apt-get install mailx

and sudo apt-get install mailutils

to run mail command

Regards

Revision history for this message
Hemanth (hemanth-hm) said :
#2

Do as Bhavani Shankar said :

Type these lines in the terminal

1. sudo apt-get install mailx (it will ask your password type it )

2.sudo apt-get install mailutils

3. type 'mail' command

Revision history for this message
LarryE (cppljevans) said :
#3

Unfortunately, I did the mailx install, but then when I tried the install of
mailutils, it uninstalled mailx. However, the command mail still worked,
as shown below in an emacs eshell session:

<--cut here--
~/howto/Mail $ which mail
mail is an interactive autoloaded Lisp function in `sendmail'
~/howto/Mail $ mail <email address hidden>
Cc:
Subject: using mail from pkg mailutils
using mail from pkg mailutils.

.
~/howto/Mail $
>--cut here--

However, so far, I'm not able to retrieve that message with
thunderbird.

Why not?

Can you help with this problem?

Provide an answer of your own, or ask srihari for more information if necessary.

To post a message you must log in.