LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 09-12-2006, 12:22 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Rep: Reputation: 47
Unable to open mail spool file /var/mail/root


hi

I have a problem with thunderbird on debian sarge stable.
I've created local users and for every user a Movemails account.

every user should login with his account, open his local mailbox,
but it doesn't work and everyone gets this error message:
Code:
Unable to open mail spool file /var/mail/root
Code:
# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
biff = no
config_directory = /etc/postfix
mailbox_command =
mailbox_size_limit = 51200000
mydestination = linux.mydomain.net, localhost.mydomain.net, localhost
myhostname = linux.mydomain.net
mynetworks = 127.0.0.1, localhost, 192.168.0.0/24
myorigin = /etc/mailname
recipient_delimiter = +
relayhost = 
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)

Last edited by cccc; 09-13-2006 at 05:24 PM.
 
Old 09-12-2006, 06:33 PM   #2
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Original Poster
Rep: Reputation: 47
Code:
# chgrp mail /var/spool/mail
# chmod 1777 /var/spool/mail/

Last edited by cccc; 09-13-2006 at 05:07 PM.
 
Old 09-13-2006, 05:11 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Original Poster
Rep: Reputation: 47
sorry, this problem is still not solved,
because every user gets only root mails now instead of his mails.

why thunderbird is looking by every user for /var/mail/root and not for /var/mail/user ?

MOVEMAIL settings:
Code:
Account Settings:
** Account Name = user@localhost
** Email Address & Reply to = user@localhost

Server settings:
** Server Type = Movemail 
** Server name = localhost
** User name = user

Outgoing server settings:
** ** Server name = localhost
** ** Use secure Connection = no
Code:
# cat /etc/aliases
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root

Last edited by cccc; 09-13-2006 at 05:23 PM.
 
Old 09-14-2006, 02:14 PM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Your mbox mailboxes may be in /var/spool/mail/%user% instead of /var/mail/%user%. Make sure that you mail delivery agent is pointing to the correct mbox directory.
If your mailbox root directory is /var/spool/mail then instead of modifying your program you can also make a symblic link by running:

rm -rf /var/mail
ln -s /var/spool/mail /var/mail

Then try it again. Be careful with the "rm -rf" command above, it will delete this entire directory before makingthe symbolic link.
 
Old 09-14-2006, 02:31 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Original Poster
Rep: Reputation: 47
Code:
# newaliases

# postmap /etc/aliases
postmap: warning: /etc/aliases, line 2: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 3: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 4: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 5: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 6: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 7: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 8: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 9: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 10: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 11: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 12: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 15: record is in "key: value" format; is this an alias file?

# postalias /etc/aliases
solved this problem.
 
  


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
Individual user's mail file in /var/spool/mail Swakoo Linux - General 1 09-07-2005 07:33 AM
/var/spool/mail/root mail message absalon Linux - General 1 07-04-2005 10:08 PM
How to read /var/spool/mail/root? neo_in_matrix Linux - Newbie 1 04-04-2005 09:49 PM
Spam in /var/spool/mail/root Nutska1 Linux - Networking 4 06-11-2004 03:35 PM
/var/spool/mail/root j-me Linux - Newbie 5 02-14-2003 07:48 AM


All times are GMT -5. The time now is 08:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration