Koozali.org: home of the SME Server

Changing Dovecot Index Location

Offline lancej

  • 2
  • +0/-0
Changing Dovecot Index Location
« on: August 02, 2016, 10:14:30 AM »
Good day,

I'm trying to find out how to change the location of user's dovecots indexes.

The reason is that I have user directories hosted on separate file server and mounted with NFS. 

Due to an issue with the file server, occasionally I get timeout errors while dovecot waits for a lock:

Code: [Select]
Error: Timeout while waiting for lock for transaction log file /home/e-smith/files/users/user1/Maildir/dovecot.index.log

I would like to have the index files stored locally on the server. 

How do achieve this?

Thanks

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Changing Dovecot Index Location
« Reply #1 on: August 02, 2016, 10:37:53 AM »
You need to create a custom template to override /etc/e-smith/templates/etc/dovecot/dovecot.conf/25mail and specify the INDEX location in the mail_location directive. See http://wiki.dovecot.org/MailLocation
C'est la fin du monde !!! :lol:

Offline lancej

  • 2
  • +0/-0
Re: Changing Dovecot Index Location
« Reply #2 on: August 02, 2016, 10:42:20 AM »
Thanks for the reply,

I mistakenly posted this question to SME 9.x Contribs;

The server is actually running SME 8.0. 

I'll re-ask the question in the correct forum.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Changing Dovecot Index Location
« Reply #3 on: August 02, 2016, 10:46:28 AM »
no need for it, I'll move this 3ad to SME 8 section and delete the other one