Upgrade/iRedMail/0.7.3-0.7.4

From iRedMail

(Difference between revisions)
Jump to: navigation, search
(Add INDEXes for Amavisd database)
(Fix incorrect calculation of mailbox quota)
Line 56: Line 56:
user_attrs = mail=user,homeDirectory=home,[...OMIT OTHER SETTINGS HERE...]
user_attrs = mail=user,homeDirectory=home,[...OMIT OTHER SETTINGS HERE...]
</pre>}}
</pre>}}
 +
 +
= MySQL backend special =
 +
 +
== Store mailbox quota in seperate SQL table ==

Revision as of 11:22, 23 November 2011

Contents



WORKING IN PROGRESS, DO *NOT* APPLY IT.


General

Fix incorrect per-user sieve_dir setting in Dovecot

Note: This fix only works for Dovecot-1.x.

In /etc/dovecot.conf or /etc/dovecot/dovecot.conf, remove the last slash (/) in setting sieve_dir = like below:

File: dovecot.conf
# Original setting:
#sieve_dir = /var/vmail/sieve/%Ld/%Ln/

# Change to:
sieve_dir = /var/vmail/sieve/%Ld/%Ln              # <-- Remove the last slash.

Add INDEXes for Amavisd database

Terminal:
$ mysql -uroot -p
mysql> USE amavisd;
mysql> ALTER TABLE maddr ADD INDEX maddr_idx_email (email);
mysql> ALTER TABLE maddr ADD INDEX maddr_idx_domain (domain);
mysql> ALTER TABLE msgs ADD INDEX msgs_idx_content (content);
mysql> ALTER TABLE msgs ADD INDEX msgs_idx_content_time_num (content, time_num);
mysql> ALTER TABLE msgs ADD INDEX msgs_idx_mail_id (mail_id);
mysql> ALTER TABLE quarantine ADD INDEX quar_idx_mail_id (mail_id);

[Debian and Ubuntu special] Assign Apache daemon user to group "adm"

Note: This fix is applicable to only Debian and Ubuntu.

Assign Apache daemon user to group "adm" to avoid Awstats cron job issue.

Terminal:
# usermod -g adm www-data

OpenLDAP backend special

Fix incorrect calculation of mailbox quota

There's a bug in iRedMail-0.7.3 and all earlier versions: Mailbox quota gets calculated per user and per user alias (shadowAddress), so both emails gets their own quota. Here's solution to fix it.

  • Open /etc/dovecot-ldap.conf (RHEL/CentOS/Scientific Linux) or /etc/dovecot/dovecot.conf (Debian/Ubuntu/openSUSE) or /usr/local/etc/dovecot-ldap.conf (FreeBSD), prepend mail=user, in both user_attrs = and pass_attrs = like below:
File: dovecot-ldap.conf
# Original settings:
#pass_attrs = userPassword=password
#user_attrs = homeDirectory=home,[...OMIT OTHER SETTINGS HERE...]

# Changed:
pass_attrs = mail=user,userPassword=password
user_attrs = mail=user,homeDirectory=home,[...OMIT OTHER SETTINGS HERE...]

MySQL backend special

Store mailbox quota in seperate SQL table

Personal tools