1 (edited by mr.cocco 2012-02-23 08:26:12)

Topic: Upgrade 0.6.1 -> 0.7.0 mailMessageStore error

==== Provide required information to help troubleshoot and get quick answer ====
- Linux/BSD distribution name and version: Centos 5
- iRedMail version and backend (LDAP/MySQL): IredMail 0.6.1 LDAP
- Any related log? Log is helpful for troubleshooting.

Feb 23 00:40:12 IMAP(g.bacci@flagmail.it): Error: mkdir(/var/flagmail.it/g/./b/g.bacci-2011.08.05.17.54.09//Maildir/cur) failed: Permission denied (euid=500(vmail) egid=500(vmail) missing +w perm: /var)
====

Dear Support,
I've just upgrade my iredmail from 0.6.1 to 0.7.0 but know my imap client and my webmail does not work.
In phpLdapMyAdmin I have this mailMessageStore: vmail/flagmail.it/g/./b/g.bacci-2011.08.05.17.54.09/ and this not work.
If I modify mailMessageStore in: flagmail.it/g/./b/g.bacci-2011.08.05.17.54.09/ it works.
All my server account have vmail/ in front of messagestore.
What's wrong?

2

Re: Upgrade 0.6.1 -> 0.7.0 mailMessageStore error

If use user_attrs old value in dovecot-ldap.conf it works again.
the outpout of command "postconf virtual_mailbox_base" is: virtual_mailbox_base = /var/vmail

# This is old value.
user_attrs      = storageBaseDirectory=home,mailMessageStore=mail=maildir:~/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$

# This is new value.
#user_attrs      = homeDirectory=home,mailMessageStore=mail=maildir:/var/vmail/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$

But the guide say that Dovecot IMAP share folder doesn't work with default LDAP query.

Please consider I'm planning to migrate to the last release of iredmail, but for this night I stop here. I need to resolve this problem. Tomorrow if possible I'll upgrade to 0.7.x

3

Re: Upgrade 0.6.1 -> 0.7.0 mailMessageStore error

Please keep old setting first.

Could you please paste LDIF data of this account? I need some LDAP attributes for troubleshooting. REMOVE/HIDE sensitive information before posting.

4

Re: Upgrade 0.6.1 -> 0.7.0 mailMessageStore error

ZhangHuangbin wrote:

Please keep old setting first.

Could you please paste LDIF data of this account? I need some LDAP attributes for troubleshooting. REMOVE/HIDE sensitive information before posting.

dn: mail=mr.cocco@domain.it,ou=Users,domainName=domain.it,o=domains,dc=domldap,dc=net
accountStatus: active
amavisLocal: TRUE
cn: Mr. Cocco
enabledService: mail
enabledService: deliver
enabledService: smtp
enabledService: smtpsecured
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: internal
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
homeDirectory: /var/vmail/domain.it/m/r/./mr.cocco-2012.02.23.11.38.40/
mail: mr.cocco@domain.it
mailMessageStore: vmail/domain.it/m/r/./mr.cocco-2012.02.23.11.38.40/
mailQuota: 0
memberOfGroup: support@domain.it
memberOfGroup: info@domain.it
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
sn: mr.cocco
storageBaseDirectory: /var
uid: mr.cocco

5

Re: Upgrade 0.6.1 -> 0.7.0 mailMessageStore error

You should use below setting as user_attrs:

user_attrs = homeDirectory=home,mailMessageStore=mail=maildir:/var/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$

it's /var, not /var/vmail.

6

Re: Upgrade 0.6.1 -> 0.7.0 mailMessageStore error

ZhangHuangbin wrote:

You should use below setting as user_attrs:

user_attrs = homeDirectory=home,mailMessageStore=mail=maildir:/var/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$

it's /var, not /var/vmail.

Ok this evening I'll try this solution. Perhaps I should have seen this solution!

Thanks for your cooperation,
Giuliano Bacci.

7

Re: Upgrade 0.6.1 -> 0.7.0 mailMessageStore error

Thank you,
problem solved!

Giuliano Bacci.