Change index location problem
igord
igord at bra.in.rs
Wed Jun 11 14:41:51 UTC 2014
You are right, I forgot to mention part which is actually crucial here -
users (and their settings) are
being queried by userdb settings (from mysql), which will override default
dovecot.conf settings
(as described here <http://wiki2.dovecot.org/UserDatabase> ):
...
userdb {
args = /etc/dovecot/sql.conf
driver = sql
}
...
And in /etc/dovecot/sql.conf I have:
user_query = SELECT concat('/var/vmail/', maildir) as home,
concat('maildir:/var/vmail/', maildir) as mail, 101 AS uid, 12 AS gid,
concat('maildir:storage=', quota) AS quota FROM mailbox WHERE username =
'%u' AND active = '1'
So I modified it to:
user_query = SELECT concat('/var/vmail/', maildir) as home,
concat('maildir:/var/vmail/', maildir, ':INDEX=/media/ephemeral0/%u') as
mail, 101 AS uid, 12 AS gid, concat('maildir:storage=', quota) AS quota FROM
mailbox WHERE username = '%u' AND active = '1'
.. and now it started creating indexes in /media/ephemeral0/%u !
Thank you for assistance
--
View this message in context: http://dovecot.2317879.n4.nabble.com/Change-index-location-problem-tp48468p48475.html
Sent from the Dovecot mailing list archive at Nabble.com.
More information about the dovecot
mailing list