LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Unable to open mail spool file /var/mail/root (https://www.linuxquestions.org/questions/debian-26/unable-to-open-mail-spool-file-var-mail-root-482777/)

cccc 09-12-2006 11:22 AM

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)


cccc 09-12-2006 05:33 PM

Code:

# chgrp mail /var/spool/mail
# chmod 1777 /var/spool/mail/


cccc 09-13-2006 04:11 PM

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


ramram29 09-14-2006 01:14 PM

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.

cccc 09-14-2006 01:31 PM

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.


All times are GMT -5. The time now is 08:37 PM.