[Dovecot] rawlog without setting home in userdb
Hi all,
in my settup i decided to set mail_home in 10-mail.conf, and let dovecot do the hashing to a 2-level directory structure.
mail_location = mdbox:~/mdbox:ALT=/altstorage/%h/mdbox mail_home = /vmail/%1Mu/%2.1Mu/%u
In my userdb ist homedirectory not set and everythink works as expected, except when i use rawlog i get only logs in ~/dovecot.rawlog if home is set in userdb. In wiki http://wiki2.dovecot.org/Debugging/Rawlog it reads:
If you don't have the home directory and you can't or don't want to modify userdb configuration, you can add: mail_home = /home/%u # or temporarily even e.g. mail_home = /tmp/temp-home
Can you tell me, if my problem is the hashing-configuration or anything else?
Claus
can anybody help me?
Am 02.06.2013 10:11, schrieb Claus:
Hi all,
in my settup i decided to set mail_home in 10-mail.conf, and let dovecot do the hashing to a 2-level directory structure.
mail_location = mdbox:~/mdbox:ALT=/altstorage/%h/mdbox mail_home = /vmail/%1Mu/%2.1Mu/%u
In my userdb ist homedirectory not set and everythink works as expected, except when i use rawlog i get only logs in ~/dovecot.rawlog if home is set in userdb. In wiki http://wiki2.dovecot.org/Debugging/Rawlog it reads:
If you don't have the home directory and you can't or don't want to modify userdb configuration, you can add: mail_home = /home/%u # or temporarily even e.g. mail_home = /tmp/temp-home
Can you tell me, if my problem is the hashing-configuration or anything else?
Claus
On Sun, 2013-06-02 at 10:11 +0200, Claus wrote:
Hi all,
in my settup i decided to set mail_home in 10-mail.conf, and let dovecot do the hashing to a 2-level directory structure.
mail_location = mdbox:~/mdbox:ALT=/altstorage/%h/mdbox mail_home = /vmail/%1Mu/%2.1Mu/%u
In my userdb ist homedirectory not set and everythink works as expected, except when i use rawlog i get only logs in ~/dovecot.rawlog if home is set in userdb. In wiki http://wiki2.dovecot.org/Debugging/Rawlog it reads:
If you don't have the home directory and you can't or don't want to modify userdb configuration, you can add: mail_home = /home/%u # or temporarily even e.g. mail_home = /tmp/temp-home
Looks like the wiki was wrong, mail_home field can't work there. Updated it with a new suggestion about userdb { default_fields }.
Am 2013-06-13 04:41, schrieb Timo Sirainen:
On Sun, 2013-06-02 at 10:11 +0200, Claus wrote: Hi all,
in my settup i decided to set mail_home in 10-mail.conf, and let dovecot do the hashing to a 2-level directory structure.
mail_location = mdbox:~/mdbox:ALT=/altstorage/%h/mdbox mail_home = /vmail/%1Mu/%2.1Mu/%u
In my userdb ist homedirectory not set and everythink works as expected, except when i use rawlog i get only logs in ~/dovecot.rawlog if home is set in userdb. In wiki http://wiki2.dovecot.org/Debugging/Rawlog it reads:
If you don't have the home directory and you can't or don't want to modify userdb configuration, you can add: mail_home = /home/%u # or temporarily even e.g. mail_home = /tmp/temp-home
Looks like the wiki was wrong, mail_home field can't work there. Updated it with a new suggestion about userdb { default_fields }.
Thank's for your reply, i changed my configuration and did'nt set the mail_home but the homr in uderdb default_fieled now it works perfect for me.
A little extra question: why do you split in and out in rawlog?
participants (3)
-
Claus
-
claus.r@bayern-mail.de
-
Timo Sirainen