[Dovecot] Trying to use "deliver" as a LDA
Hello,
I'm trying to use "deliver" as a LDA for some users. I found the page http://wiki.dovecot.org/LDA where i read that i can use the ".forward" file in the user HOME directory. However, when i try, i get the following error in the maillog file :
... deliver(...): mbox: We need root IMAP folder, but can't find it or HOME environment ...deliver(...): Failed to create storage for 'user' with mail 'mbox:/var/mail/user'
where "user" is the user login.
How can i fix this error ? My aim by using "deliver" as a LDA is to force a quota for the mailbox user. Is this the right thing to do to achieve this ?
My configuration is the following :
OS : FreeBSD 6.1 Dovecot 1.0.r7
Thank you for your help.
Regards, Stephane.
Stéphane LEGRAND Pôle Système d'Information - Développement informatique CCI du Loiret - 23 place du Martroi - 45044 ORLEANS CEDEX 1 Tél : 02 38 77 77 55 - Mél : stephane.legrand@loiret.cci.fr - Fax : 02 38 42 15 61
On Monday 09 October 2006 11:49, Stéphane Legrand wrote:
I'm trying to use "deliver" as a LDA for some users. I found the page http://wiki.dovecot.org/LDA where i read that i can use the ".forward" file in the user HOME directory. However, when i try, i get the following error in the maillog file :
... deliver(...): mbox: We need root IMAP folder, but can't find it or HOME environment ...deliver(...): Failed to create storage for 'user' with mail 'mbox:/var/mail/user'
where "user" is the user login.
How can i fix this error ? My aim by using "deliver" as a LDA is to force a quota for the mailbox user. Is this the right thing to do to achieve this ?
I am using Dovecot as an LDA on a FreeBSD 6.1 system; however, I start it directly from Postfix. In addition, you may run into a permission problem. I got around it by setting /var/mail to '1777'. I am still working on refining the solution further though. It probably requires Dovecot to either run as root to deliver the mail, or switch to the mailbox users credentials.
-- Gerard Seibert gerard@seibercom.net
There is no sincerer love than the love of food.
George Bernard Shaw
On Mon, 2006-10-09 at 17:49 +0200, Stéphane Legrand wrote:
Hello,
I'm trying to use "deliver" as a LDA for some users. I found the page http://wiki.dovecot.org/LDA where i read that i can use the ".forward" file in the user HOME directory. However, when i try, i get the following error in the maillog file :
... deliver(...): mbox: We need root IMAP folder, but can't find it or HOME environment ...deliver(...): Failed to create storage for 'user' with mail 'mbox:/var/mail/user'
Well, two things:
You shouldn't use mbox:/var/mail/user. It works only as long as the user file exists. If it ever is removed, this fails because Dovecot then assumes it points to a directory. I think I should just make Dovecot give error message directly instead of having it half-work..
As it says, Dovecot needs to know where its index files and such are stored. Since it's started from .forward, it looks like the $HOME environment isn't set and Dovecot doesn't know where to find it.
One easy solution would be to change default_mail_env to:
default_mail_env = mbox:/home/%u/mail:INBOX=/var/mail/%u
Le lundi 09 octobre 2006 à 19:44 +0300, Timo Sirainen a écrit :
On Mon, 2006-10-09 at 17:49 +0200, Stéphane Legrand wrote:
Hello,
I'm trying to use "deliver" as a LDA for some users. I found the page http://wiki.dovecot.org/LDA where i read that i can use the ".forward" file in the user HOME directory. However, when i try, i get the following error in the maillog file :
... deliver(...): mbox: We need root IMAP folder, but can't find it or HOME environment ...deliver(...): Failed to create storage for 'user' with mail 'mbox:/var/mail/user'
Well, two things:
You shouldn't use mbox:/var/mail/user. It works only as long as the user file exists. If it ever is removed, this fails because Dovecot then assumes it points to a directory. I think I should just make Dovecot give error message directly instead of having it half-work..
As it says, Dovecot needs to know where its index files and such are stored. Since it's started from .forward, it looks like the $HOME environment isn't set and Dovecot doesn't know where to find it.
One easy solution would be to change default_mail_env to:
default_mail_env = mbox:/home/%u/mail:INBOX=/var/mail/%u
Ah, ok. It works now. Thank you very much for your help.
-- Stéphane LEGRAND Pôle Système d'Information - Développement informatique CCI du Loiret - 23 place du Martroi - 45044 ORLEANS CEDEX 1 Tél : 02 38 77 77 55 - Mél : stephane.legrand@loiret.cci.fr - Fax : 02 38 42 15 61
participants (4)
-
Gerard Seibert
-
LEGRAND Stéphane
-
Stéphane Legrand
-
Timo Sirainen