User Tools

Site Tools


start:howto:dovecot_plus_database_quota

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
start:howto:dovecot_plus_database_quota [2010/12/20 16:37]
aseques migrated as a howto
start:howto:dovecot_plus_database_quota [2012/01/09 11:36]
aseques
Line 1: Line 1:
-====== ​Replace Courier with Dovecot ​plus Database quota ======+**__ALERT: This is a document being rewritten, only experienced people should use this__** 
 + 
 +====== Dovecot ​modifications from default imscp install ​======
 This is an improved version from the original article in ispcp (http://​isp-control.net/​documentation/​howto:​mail:​replace_courier_with_dovecot) This is an improved version from the original article in ispcp (http://​isp-control.net/​documentation/​howto:​mail:​replace_courier_with_dovecot)
-It describes how to replace ​the courier-pop/​imap/​authdaemon/​maildrop with dovecot taking advantage ​of the features in dovecot 1.2+I stripped all the parts related ​to the default install (imscp already takes care of that) and focus to the functionality that is available only on doecot (instead of courier).
  
 ===== The improvements from the original document ===== ===== The improvements from the original document =====
Line 9: Line 11:
   * Following the installation is easier now.   * Following the installation is easier now.
  
-===== Introduction ​=====+===== Reasons to use dovecot ​=====
  
-What do you win by changing from courier to dovecot: 
   * You can do server-side filtering with sieve (for example saving spam to junk folder)   * You can do server-side filtering with sieve (for example saving spam to junk folder)
   * Reading your logs for problems will be easier   * Reading your logs for problems will be easier
Line 20: Line 21:
  
 Please report any bugs/​hints/​whatever in the following board thread: Please report any bugs/​hints/​whatever in the following board thread:
-http://www.isp-control.net/forum/​thread-6088-post-49018.html+http://forum.i-mscp.net/showthread.php?tid=61
  
-**NOTE:​** ​ispCP is already assigning 10MB quota to each mail account created, but currently it is not editable by default (ticket #2219). To be able to edit the quota from the control panel you will have to follow this thread, as a bonus you will see the current values.+**NOTE:​** ​i-MSCP ​is already assigning 10MB quota to each mail account created, but currently it is not editable by default (ticket #2219). To be able to edit the quota from the control panel you will have to follow this thread, as a bonus you will see the current values.
 http://​www.isp-control.net/​forum/​thread-8483.html http://​www.isp-control.net/​forum/​thread-8483.html
  
Line 28: Line 29:
  
 ===== Prerequisites ===== ===== Prerequisites =====
-==== Your system'​s hostname has to be resolvable ==== 
-You can check this by executing 
-  hostname 
-This should print your system'​s hostname. 
  
-==== Script for password verification ​==== +===== Replace Courier with Dovecot ​=====
-Somewhere in between rc6 and 1.0.0 password encryption was added and so passwords in clear text are no longer working. Grab the perl script written by sci2tech that handles the verification of passwords for Dovecot: http://​www.isp-control.net/​forum/​attachment.php?​aid=1185+
  
-Copy it to **/​var/​www/​ispcp/​engine/​ispcp-dovecot-mngr** ​and do a +You can do it by re-running the installer ​and changing the default imap server when asked you can choose between courier or dovecot.
-   chmod 0755 /​var/​www/​ispcp/​engine/​ispcp-dovecot-mngr +
- +
-===== Replace Courier with Dovecot =====+
  
-**Please replace every appearance of "​PASS_MAILRW"​ with your password!** 
  
 ==== 1. Create a new table in ispcp called quota_dovecot ==== ==== 1. Create a new table in ispcp called quota_dovecot ====
Line 61: Line 53:
   mysql> FLUSH PRIVILEGES;   mysql> FLUSH PRIVILEGES;
   mysql> quit;   mysql> quit;
- 
-==== 2. Stop Courier services ==== 
- 
-  /​etc/​init.d/​courier-pop stop 
-  /​etc/​init.d/​courier-imap stop 
-  /​etc/​init.d/​courier-authdaemon stop 
-  /​etc/​init.d/​saslauthd stop 
- 
-==== 3. Install Dovecot ==== 
- 
-  apt-get update 
-  apt-get install dovecot-common dovecot-imapd dovecot-pop3d 
  
 ==== 4. Configure Dovecot ==== ==== 4. Configure Dovecot ====
Line 409: Line 389:
 You can configure Dovecot to execute an external command if an user's quota exceeds a specified limit. In this example the user receives alert emails if his quota exceeds 80% / 95% percent. You can configure Dovecot to execute an external command if an user's quota exceeds a specified limit. In this example the user receives alert emails if his quota exceeds 80% / 95% percent.
  
-Append the following ​to your plugin section in **/​etc/​dovecot.conf**:​+Append the following ​in your plugin section in **/etc/dovecot/​dovecot.conf**:​
  
   quota_warning = storage=95%% /​usr/​local/​bin/​dovecot-quota-warning.sh 95   quota_warning = storage=95%% /​usr/​local/​bin/​dovecot-quota-warning.sh 95
/var/www/virtual/i-mscp.net/wiki/htdocs/data/pages/start/howto/dovecot_plus_database_quota.txt · Last modified: 2013/06/21 07:36 by aseques