Bug#696820: Acknowledgement (Error: open(/var/mail/USER) failed: Permission denied)

2013-01-14 Thread Jaldhar H. Vyas

On Sat, 5 Jan 2013, Norbert Veber wrote:


While I'm not 100% clear on how dovecot handles permissions, would the
fix not be to set mail_access_groups=mail?

Per http://wiki2.dovecot.org/Errors/ChgrpNoPerm

Otherwise your default mail_location can not work unless it writes the
files as root or something.  This doesnt seem to be the case judging
from the permission errors reported earlier.


We want to avoid setting mail_access_group=mail because then a user would 
be able to read everyone elses  mailbox.  It should not in theory matter 
is mail_location is set appropriately but it looks like I'll have to 
investigate it further.


--
Jaldhar H. Vyas 


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#696820: Acknowledgement (Error: open(/var/mail/USER) failed: Permission denied)

2013-01-05 Thread Norbert Veber
While I'm not 100% clear on how dovecot handles permissions, would the
fix not be to set mail_access_groups=mail? 

Per http://wiki2.dovecot.org/Errors/ChgrpNoPerm

Otherwise your default mail_location can not work unless it writes the
files as root or something.  This doesnt seem to be the case judging
from the permission errors reported earlier.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#696820: Acknowledgement (Error: open(/var/mail/USER) failed: Permission denied)

2012-12-29 Thread Norbert Veber
Actually it didnt exist, the directory is empty:
nveber@pyre[4761:~]$ ls -al /var/mail
total 8
drwxrwsr-x  2 root mail 4096 Jul  8  2010 .
drwxr-xr-x 13 root root 4096 Nov  4 22:22 ..
nveber@pyre[4762:~]$

It seems the default mail_location doesnt work for some reason at least
on my system.

On Fri, Dec 28, 2012 at 08:10:55PM -0500, Jaldhar H. Vyas wrote:
> Normally it would be a non-fatal error but your /var/mail/%u did
> exist but didn't have write permission.
> 
> Set mail_location appropriately and everything should work properly
> now and in the future.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#696820: Acknowledgement (Error: open(/var/mail/USER) failed: Permission denied)

2012-12-28 Thread Jaldhar H. Vyas

On Thu, 27 Dec 2012, Norbert Veber wrote:


So it seems my config had no mail_location set, and worked fine that
way.  Then when I installed -6 it decided to set one causing it to stop
working.  Once I comment out that line everythign works fine again.

I see README.Debian mentions something about this, but its supposed to
be a non-fatal error.  It seems it isnt?



Normally it would be a non-fatal error but your /var/mail/%u did 
exist but didn't have write permission.


Set mail_location appropriately and everything should work properly now 
and in the future.


--
Jaldhar H. Vyas 


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#696820: Acknowledgement (Error: open(/var/mail/USER) failed: Permission denied)

2012-12-27 Thread Norbert Veber
Hi,

So I downgraded to version -5 but the problem was still there.

Next I restored my old config files and found the following difference:
pyre:/etc# diff -r dovecot/ dovecot.restored/dovecot/
diff -r dovecot/conf.d/10-mail.conf
dovecot.restored/dovecot/conf.d/10-mail.conf
30c30
< mail_location = mbox:~/mail:INBOX=/var/mail/%u
---
> #mail_location =

So it seems my config had no mail_location set, and worked fine that
way.  Then when I installed -6 it decided to set one causing it to stop
working.  Once I comment out that line everythign works fine again.

I see README.Debian mentions something about this, but its supposed to
be a non-fatal error.  It seems it isnt?

On my system I use /home/user/Maildir maildir directories to store users
mail.

Thanks,

Norbert


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org