1

Topic: iRedMail 0.7.4 -> 0.8.0 Upgrade procedure Inquiry

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: 0.8.0
- Linux/BSD distribution name and version: CentOS 6.2 OpenLDAP
- Any related log? Log is helpful for troubleshooting.
====

In the upgrade procedure for 0.7.4 to 0.8.0, I noticed some errors which did not work on my machine.

Here is the following commands that are suggested in the upgrade tutorial for RHEL 6.x / CentOS 6.x. I am running CentOS 6.2 specifically.

# chown dovecot:dovecot /etc/dovecot/dovecot-used-quota.conf /etc/dovecot/dovecot-share-folder.conf
# chmod 0500 /etc/dovecot/dovecot-used-quota.conf /etc/dovecot/dovecot-share-folder.conf

When I run this command I receive:

[root@mail ~]# chown dovecot:dovecot /etc/dovecot/dovecot-used-quota.conf /etc/dovecot/dovecot-share-folder.conf
chown: cannot access `/etc/dovecot/dovecot-used-quota.conf': No such file or directory
chown: cannot access `/etc/dovecot/dovecot-share-folder.conf': No such file or directory


It appears the filenames you advertise do not exist in CentOS 6.2. I have not modified or deleted anything since I ran the install script for 0.7.4.

When I perform an "ls -ltr" on the /etc/dovecot directory, here are the files that exist:

[root@mail dovecot]# ls -ltr
total 24
-rw-r--r-- 1 root root 3774 Feb  9 12:32 dovecot.conf.rpmnew
-rw-r--r-- 1 root root 3672 Mar  5 07:24 dovecot.conf.2012.03.05.07.17.46
-rw-rw-r-- 1 root root 4045 Mar  5 07:24 dovecot.conf
-r-x------ 1 root root  988 Mar  5 07:24 dovecot-ldap.conf
-rw-r--r-- 1 root root  497 Mar  5 07:24 used-quota.conf
drwxr-xr-x 2 root root 4096 Mar 28 23:23 conf.d
[root@mail dovecot]#

It looks like used-quota.conf is the filename instead of dovecot-used-quota.conf. and the dovecot share folder.conf doesn't seem to exist AT ALL.

Is this normal, or is there something wrong with my installation? I am using dovecot v2 btw. I confirmed with a dovecot --version at command line.

I just want to ensure I don't lose functionality but not having one of these files, and the other file is listed differently.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail 0.7.4 -> 0.8.0 Upgrade procedure Inquiry

Dear juvix,

Thanks very much for your feedback.

Fixed moment ago, and mentions the file name on different Linux/BSD distributions may be different, it should be dovecot-used-quota.conf or used-quota.conf. Hope it helps.

We don't have share-folder.conf in iRedMail-0.7.4 and earlier versions, so i removed it.

3

Re: iRedMail 0.7.4 -> 0.8.0 Upgrade procedure Inquiry

Thanks Zhang!

4

Re: iRedMail 0.7.4 -> 0.8.0 Upgrade procedure Inquiry

Zhang,

You may need to update it again. Another typo.

# chown dovecot:dovecot /etc/dovecot/used-quota.conf
# chmod 0500 /etc/dovecot/dovecot-used-quota.conf

See the second line. It has dovecot again. It should be used-quota.conf

5

Re: iRedMail 0.7.4 -> 0.8.0 Upgrade procedure Inquiry

juvix wrote:

See the second line. It has dovecot again. It should be used-quota.conf

Fixed. smile

6 (edited by hata_ph 2012-05-11 11:51:12)

Re: iRedMail 0.7.4 -> 0.8.0 Upgrade procedure Inquiry

Not wanting to hijack thread but should it dovecot-share-folder.conf be change the file permission too? It also contain SQL password...

[root@iredos etc]# ls -all | grep dovecot
-rw-rw-r--   1 root    root     10322 Jan 10 08:25 dovecot.conf
-rw-r--r--   1 root    root     51276 May 14  2011 dovecot.conf.2011.05.14.20.17.33
-r-x------   1 root    root      1000 Jan 10 08:32 dovecot-ldap.conf
-rw-r--r--   1 root    root       431 May 14  2011 dovecot-share-folder.conf
-rw-r--r--   1 root    root       497 May 14  2011 dovecot-used-quota.conf

btw, should it not all dovecot related config file change ownership to dovecot?

7

Re: iRedMail 0.7.4 -> 0.8.0 Upgrade procedure Inquiry

hata_ph wrote:

should it dovecot-share-folder.conf be change the file permission too? It also contain SQL password...

Yes.

hata_ph wrote:

should it not all dovecot related config file change ownership to dovecot?

No, just the files contains SQL password.

8

Re: iRedMail 0.7.4 -> 0.8.0 Upgrade procedure Inquiry

ZhangHuangbin wrote:
hata_ph wrote:

should it dovecot-share-folder.conf be change the file permission too? It also contain SQL password...

Yes.

hata_ph wrote:

should it not all dovecot related config file change ownership to dovecot?

No, just the files contains SQL password.

Ok. Noted. smile

9 (edited by okoetter 2012-05-14 20:47:19)

Re: iRedMail 0.7.4 -> 0.8.0 Upgrade procedure Inquiry

On my Debian Squeeze machine it is /etc/dovecot/dovecot-used-quota.conf, not used-quota.conf, so you may want to update the upgrade notes.

Edit: Just read your note, so please ignore my comment:

NOTE: The file name on different Linux/BSD distributions may be different, it should be dovecot-used-quota.conf or used-quota.conf.

BTW: Why chmod 500 and not 400? I don't think conf files are executable? ;-)

10

Re: iRedMail 0.7.4 -> 0.8.0 Upgrade procedure Inquiry

okoetter wrote:

BTW: Why chmod 500 and not 400? I don't think conf files are executable? ;-)

As far as i can remember, 0400 doesn't work at all during my testing. but you can give it a try if you want. smile