Cannot open mailbox /var/mail/my-name: permission denied

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 11.2.30.2
How are you able to access your server: Direct access via physical keyboard/screen
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no

Describe your issue

I have only one user: my-name.
system displays: you have new mail in /var/mail/my-name.

type command

mail

replies: cannot open mailbox /var/mail/my-name: permission denied. No mail for my-name.

type command:

sudo mail

replies: No mail for root

How could I access my-name’s mail?

Share relevant logs or error messages

no

Solved by

mail my-name

and sent a mail to my-name@localhost

1 Like