Artisan Développeur

Qualité, amélioration continue, agilité.

Permission denied creating inbox file in /var/mail – dovecot

Hi !

this morning I have seen this error :

Permission denied creating inbox file in /var/mail

I have done a basic setup of dovecot + postfix.
At the time to test my new mailbox, after added a new user, no luck, and this message in the log.

Solution is really simple, as the mailboxes are owned by the user, and the group is set to « mail »

-rw-------  1 amavis    mail    836 Jun 19  2015 amavis
-rw-------  1 jenkins   mail 442270 Sep 30 00:00 jenkins
-rw-------  1 root      mail 634190 Sep 30 00:12 root
-rw-------  1 technique mail      0 Sep 30 14:43 technique

You just need to add your user to the « mail » group :

addgroup technique mail

Where « technique » is my username.

That’s all !


Leave a reply

Your email address will not be published.

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.