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
Robert Schetterer
2012-Sep-11 09:58 UTC
[Dovecot] Expire plugin with multiple mail servers
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.