LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-19-2013, 06:35 PM   #1
stimpack
LQ Newbie
 
Registered: Mar 2013
Posts: 12

Rep: Reputation: Disabled
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/fmasterPermission 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
-/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.
 
Old 10-19-2013, 11:22 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Quote:
Originally Posted by stimpack View Post
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)?
 
Old 10-20-2013, 04:28 AM   #3
stimpack
LQ Newbie
 
Registered: Mar 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
im using UBUNTU 10.04 LTS, and i didnt use SELinux.
 
Old 10-20-2013, 10:31 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,844

Rep: Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008
Quote:
Originally Posted by stimpack View Post
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/fmasterPermission 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
-/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.
 
Old 10-20-2013, 06:00 PM   #5
stimpack
LQ Newbie
 
Registered: Mar 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
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 --/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 failedcreate maildir file
    
/home/fmaster/Maildir/tmp/1382311225.P9809.mail.mydomain.comNot a
    directory 

Last edited by stimpack; 10-20-2013 at 06:24 PM.
 
Old 10-21-2013, 10:42 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,844

Rep: Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008Reputation: 8008
Quote:
Originally Posted by stimpack View Post
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 --/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 failedcreate maildir file
    
/home/fmaster/Maildir/tmp/1382311225.P9809.mail.mydomain.comNot 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.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No mailbox for the user in /var/mail after wheezy install? shams Debian 0 06-21-2012 01:15 AM
read mail from /var/mail/user with thunderbird cccc Debian 4 09-11-2006 07:53 AM
spam_buttons move from /var/spool/mail/user to $HOME/mail/Junk paul_mat Linux - Software 0 05-25-2006 02:07 AM
Individual user's mail file in /var/spool/mail Swakoo Linux - General 1 09-07-2005 06:33 AM
Permission denied @ /var/log/mail Thorsten Linux - Software 1 11-03-2003 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration