[Dovecot] Expire plugin with multiple mail servers
Hello we are running Dovecot 2.1.9 and I want to configure expire plugin. We have 2 proxies with director and 4 mail servers.
I have configured expire plugin on a single mail server and it works Ok. I don't konw how to configure with 4 mail servers and 2 proxies. My first idea is create on each mailserver one sqlite database and configure the expire plugin on proxy, but I don't know if this is a good idea. I don't know if the database should be in one proxy, and I don't know which server has to do the "doveadm expunge" command Do you have any idea how is the best way to configure expire plugin on this scenario?
Thanks in advance.
-- Ramon Frontera Gallardo Universitat de les Illes Balears
Am 11.09.2012 11:41, schrieb Ramón Frontera:
Hello we are running Dovecot 2.1.9 and I want to configure expire plugin. We have 2 proxies with director and 4 mail servers.
I have configured expire plugin on a single mail server and it works Ok. I don't konw how to configure with 4 mail servers and 2 proxies. My first idea is create on each mailserver one sqlite database and configure the expire plugin on proxy, but I don't know if this is a good idea. I don't know if the database should be in one proxy, and I don't know which server has to do the "doveadm expunge" command Do you have any idea how is the best way to configure expire plugin on this scenario?
Thanks in advance.
-- Ramon Frontera Gallardo Universitat de les Illes Balears
i use one mysql setup for all servers http://wiki2.dovecot.org/Plugins/Expire
and doing cron jobs on every server i.e doveadm expunge -A mailbox Trash savedbefore 30d
fit the cron times and expunge times and folders to your needs prepare for cron mail messages what got expunged
if you have lots off acounts there may be better ways
Best Regards MfG Robert Schetterer
On 11.9.2012, at 12.41, Ramón Frontera wrote:
Hello we are running Dovecot 2.1.9 and I want to configure expire plugin. We have 2 proxies with director and 4 mail servers.
I have configured expire plugin on a single mail server and it works Ok. I don't konw how to configure with 4 mail servers and 2 proxies. My first idea is create on each mailserver one sqlite database and configure the expire plugin on proxy, but I don't know if this is a good idea.
The backend servers need to be the ones actually doing the expunges. Director servers are the only ones that know which backend server to run each expunge on. Expire plugin works by limiting the users iterated by "doveadm expunge -A", which is run on director. So the director server where you run this command needs to have access to the full expire database. This pretty much means one shared SQL server between all servers.
Hello, I have configured mysql on one server and each mail server use this database for expire plugin. I have configured each mail server as explains on:http://wiki2.dovecot.org/Plugins/Expire
But now I have a question; How i configure director server to use the database? I need to configure expire plugin on the director server?
thanks in advance.
-- Ramon Frontera Gallardo Universitat de les Illes Balears
El 11/09/2012, a las 15:34, Timo Sirainen escribió:
On 11.9.2012, at 12.41, Ramón Frontera wrote:
Hello we are running Dovecot 2.1.9 and I want to configure expire plugin. We have 2 proxies with director and 4 mail servers.
I have configured expire plugin on a single mail server and it works Ok. I don't konw how to configure with 4 mail servers and 2 proxies. My first idea is create on each mailserver one sqlite database and configure the expire plugin on proxy, but I don't know if this is a good idea.
The backend servers need to be the ones actually doing the expunges. Director servers are the only ones that know which backend server to run each expunge on. Expire plugin works by limiting the users iterated by "doveadm expunge -A", which is run on director. So the director server where you run this command needs to have access to the full expire database. This pretty much means one shared SQL server between all servers.
participants (3)
-
Ramón Frontera
-
Robert Schetterer
-
Timo Sirainen