Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-19-2013, 06:35 PM
|
#1
|
LQ Newbie
Registered: Mar 2013
Posts: 12
Rep: 
|
Cannot open mailbox /var/mail/USER: Permission denied No mail for USER
When i run the command. su - fmaster then i type mail to check emails for this box
I get the error:
PHP Code:
Cannot open mailbox /var/mail/fmaster: Permission denied No mail for fmaster
I tried to execute this (solution) that i found in other forums but i still get the same error..
PHP Code:
sudo touch /var/mail/$USER sudo chown $USER:mail /var/mail/$USER sudo chmod o-r /var/mail/$USER sudo chmod g+rw /var/mail/$USER
I need help im stuck at this point plz any idea is appreciated
Thanks,
Last edited by stimpack; 10-19-2013 at 06:37 PM.
|
|
|
10-19-2013, 11:22 PM
|
#2
|
Senior Member
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
|
Quote:
Originally Posted by stimpack
I need help im stuck at this point plz any idea is appreciated
|
Give us more information. What distro/version do you run? Do you run with SELinux enabled (if so then restorecon)?
|
|
|
10-20-2013, 04:28 AM
|
#3
|
LQ Newbie
Registered: Mar 2013
Posts: 12
Original Poster
Rep: 
|
im using UBUNTU 10.04 LTS, and i didnt use SELinux.
|
|
|
10-20-2013, 10:31 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,708
|
Quote:
Originally Posted by stimpack
When i run the command. su - fmaster then i type mail to check emails for this box
I get the error:
PHP Code:
Cannot open mailbox /var/mail/fmaster: Permission denied No mail for fmaster
|
Maybe, there is NO MAIL for that user, as the error message tells you???
Quote:
I tried to execute this (solution) that i found in other forums but i still get the same error..
PHP Code:
sudo touch /var/mail/$USER
sudo chown $USER:mail /var/mail/$USER
sudo chmod o-r /var/mail/$USER
sudo chmod g+rw /var/mail/$USER
I need help im stuck at this point plz any idea is appreciated
|
When you executed those commands, did you replace the $USER with the name of the user? Such as 'fmaster'??? And please spell out your words.
Last edited by TB0ne; 10-20-2013 at 10:32 AM.
|
|
|
10-20-2013, 06:00 PM
|
#5
|
LQ Newbie
Registered: Mar 2013
Posts: 12
Original Poster
Rep: 
|
Quote:
Originally Posted by TB0ne
Maybe, there is NO MAIL for that user, as the error message tells you???
When you executed those commands, did you replace the $USER with the name of the user? Such as 'fmaster'??? And please spell out your words.
|
Yes i have replaced $USER with the name of the user.
By the way i have followed this guide
PHP Code:
https://help.ubuntu.com/community/PostfixBasicSetupHowto
which create new user with this command
PHP Code:
sudo useradd -m -s /bin/bash fmaster sudo passwd fmaster
then when they check mails with fmaster they just type mail and works fine.. i have followed the same steps but in vain .
The second thing that i want to mention is that the gmail fail to send an email to fmaster@mydomain.com due to this
PHP Code:
maildir delivery failed: create maildir file /home/fmaster/Maildir/tmp/1382311225.P9809.mail.mydomain.com: Not a directory
Last edited by stimpack; 10-20-2013 at 06:24 PM.
|
|
|
10-21-2013, 10:42 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,708
|
Quote:
Originally Posted by stimpack
Yes i have replaced $USER with the name of the user.
By the way i have followed this guide
PHP Code:
https://help.ubuntu.com/community/PostfixBasicSetupHowto
which create new user with this command
PHP Code:
sudo useradd -m -s /bin/bash fmaster
sudo passwd fmaster
then when they check mails with fmaster they just type mail and works fine.. i have followed the same steps but in vain .
The second thing that i want to mention is that the gmail fail to send an email to fmaster@mydomain.com due to this
PHP Code:
maildir delivery failed: create maildir file
/home/fmaster/Maildir/tmp/1382311225.P9809.mail.mydomain.com: Not a
directory
|
Right. Again, that user HAS NO MAIL...you didn't mention that you wanted to set up a mail server to accept incoming emails from an external source in your previous posts. Have you configured anything to let email through your firewall from external sources?? Have you tried sending local mail on the system to that user? Unless you have some sort of relay host/MX records/other-pieces that are REQUIRED for email to be sent/received correctly, things won't work.
http://www.linux.com/learn/tutorials...ix-mail-server
http://www.howtoforge.com/forums/showthread.php?t=24595
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 06:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|