[Dovecot] dovecot trying to update my sieve directory
Hello,
i got an error in maillog, dovecot trying tu update my sieve directory :
2012-11-23T11:01:33.943047+00:00 localhost dovecot: imap(mathieu@400iso.net): Error: stat(/srv/vmail/400iso.net/mathieu@400iso.net/.dovecot.sieve/tmp) failed: Not a directory
this cause no problem but i probably misconfigured something... here is my dovecot.conf :
protocols = imap pop3 sieve
mail_home = /srv/vmail/%d/%u mail_location = maildir:~ mail_plugins = $mail_plugins quota
ssl_cert = </etc/ssl/private/server.crt ssl_key = </etc/ssl/private/server.key
service auth { unix_listener auth-client { group = postfix mode = 0660 user = postfix } user = root }
passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql }
userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql }
protocol lda { mail_plugins = $mail_plugins sieve postmaster_address = postmaster@400iso.net hostname = 400iso.net }
managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve # sieve_global_dir = /srv/vmail/sieve/ quota = fs:vm quota quota_rule = *:storage=5G }
protocol imap { mail_plugins = $mail_plugins imap_quota }
-- Mathieu Rousseau http://400iso.net/
Am 23.11.2012 um 12:13 schrieb "Mathieu R." <mathieu@400iso.net>:
2012-11-23T11:01:33.943047+00:00 localhost dovecot: imap(mathieu@400iso.net): Error: stat(/srv/vmail/400iso.net/mathieu@400iso.net/.dovecot.sieve/tmp) failed: Not a directory
mail_home = /srv/vmail/%d/%u mail_location = maildir:~
This is caused by "blending" the maildir structure with non-maildir files rather than using separate roots, e.g. mail_location = maildir:~/Maildir
http://wiki2.dovecot.org/VirtualUsers/Home http://wiki2.dovecot.org/MailLocation/Maildir
Regards Thomas
Le 23/11/2012 12:42, Thomas Leuxner a écrit :
Am 23.11.2012 um 12:13 schrieb "Mathieu R." <mathieu@400iso.net>:
2012-11-23T11:01:33.943047+00:00 localhost dovecot: imap(mathieu@400iso.net): Error: stat(/srv/vmail/400iso.net/mathieu@400iso.net/.dovecot.sieve/tmp) failed: Not a directory
mail_home = /srv/vmail/%d/%u mail_location = maildir:~
This is caused by "blending" the maildir structure with non-maildir files rather than using separate roots, e.g. mail_location = maildir:~/Maildir
Thank you. can i safely :
- close dovecot
- move files to ~Maildir
- change the config in docecot.conf
- and then restart dovecot ?
-- Mathieu Rousseau http://400iso.net/
Am 23.11.2012 um 12:48 schrieb Mathieu R. <mathieu@400iso.net>:
Thank you. can i safely :
- close dovecot
- move files to ~Maildir
- change the config in docecot.conf
- and then restart dovecot ?
Yes. You are able to move the Maildir structure (cur|new|tmp) like this. Not sure the location is also overridden in your SQL queries. If so, you also need to return the new "home" in the queries.
Regards Thomas
Le 23/11/2012 12:59, Thomas Leuxner a écrit :
Am 23.11.2012 um 12:48 schrieb Mathieu R. <mathieu@400iso.net>:
Thank you. can i safely :
- close dovecot
- move files to ~Maildir
- change the config in docecot.conf
- and then restart dovecot ?
Yes. You are able to move the Maildir structure (cur|new|tmp) like this. Not sure the location is also overridden in your SQL queries. If so, you also need to return the new "home" in the queries.
Regards Thomas
As i'm very newbie at sql stuff, here is my current dovecot-sql.conf :
driver = mysql
connect = host=localhost dbname=postfix_db user=postfix_user
password=mypass
# The new name for MD5 is MD5-CRYPT so you might need to change this
depending on version
default_pass_scheme = MD5-CRYPT
# Get the mailbox
user_query = SELECT '/srv/vmail/%d/%u' as home,
'maildir:/srv/vmail/%d/%u' as mail, 5000 AS uid, 5000 AS gid,
concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username
= '%u' AND active = '1'
# Get the password
password_query = SELECT username as user, password, '/srv/vmail/%d/%u'
as userdb_home, 'maildir:/srv/vmail/%d/%u' as userdb_mail, 5000 as
userdb_uid, 5000 as userdb_gid FROM mailbox WHERE username = '%u' AND
active = '1'
# If using client certificates for authentication, comment the above
and uncomment the following
#password_query = SELECT null AS password, '%u' AS user
i think i can change it for :
driver = mysql connect = host=localhost dbname=postfix_db user=postfix_user password=mypass # The new name for MD5 is MD5-CRYPT so you might need to change this depending on version default_pass_scheme = MD5-CRYPT # Get the mailbox user_query = SELECT '/srv/vmail/%d/%u' as home, 'maildir:/srv/vmail/%d/%u/Maildir' as mail, 5000 AS uid, 5000 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND active = '1' # Get the password password_query = SELECT username as user, password, '/srv/vmail/%d/%u' as userdb_home, 'maildir:/srv/vmail/%d/%u/Maildir' as userdb_mail, 5000 as userdb_uid, 5000 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1' # If using client certificates for authentication, comment the above and uncomment the following #password_query = SELECT null AS password, '%u' AS user
maybe can somebody confirm before i mess up everything ?
-- Mathieu Rousseau http://400iso.net/
participants (2)
-
Mathieu R.
-
Thomas Leuxner