Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

error like this:

[user1@fedora ~]$ mail
No mail for user1

but that is appear Maildir(mailbox) in /home/user1.

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Most versions of mail (there are several) do not support the Maildir format, only the older Mailbox format. Use a more sophisticated mail client such as Mutt.

share|improve this answer
    
+1 mutt is great! Try mutt -f /the/maildir/folder I used it at the time I was running my own email server solution. Advice: Try mutt on a dumb account before using it on a "real life email inbox". –  tiktak Mar 28 '12 at 15:48
add comment

Send yourself an email

demo_user@box:/> mail

No mail for demo_user

demo_user@box:/> mail -s "Test mail" demo_user@box

Test

EOT

Note: once you hit enter after your mail address for user1@fedora type something in and press CTRL+D (hold Control key and press D key)

demo_user@box:~> mail
Heirloom mailx version 12.2 01/07/07.  Type ? for help.
"/var/spool/mail/demo_user": 1 message 1 new
>N  1 demo_user@box Mon Mar 26 09:54   20/983   Test mail
? 

One you send the email you should be able to enter your account. There might be a better way to do this but it will work. Also, if you don't have a mail file it will generate one.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.