[Dovecot] IMAP proxy configuration
tss at iki.fi
Sat Mar 13 23:17:16 EET 2010
On Thu, 2010-03-11 at 09:27 -0300, Leonardo Rodrigues wrote:
> # Get the password
> password_query = select endereco as user, password, '/var/spool/mail/%u'
> as userdb_home, 'maildir:/var/spool/mail/%u' as userdb_mail, 8 as
> userdb_uid, 12 as userdb_gid, concat('*:storage=', quota) as
> userdb_quota_rule, 'Trash:storage=100M' as userdb_quota_rule2 from
> emails where endereco = '%u' and ativa = '1'
> [root at correio dovecot]#
> i've read several docs about configuring proxy on dovecot but all
> of them says about proxying specific users .... i'm interested on
> proxying some domains. I couldnt find a way to configure that nor some
> howto similar to that.
Basically add to your password_query something like:
.., domains.host as host, 'Y' as proxy_maybe, ..
from emails, domains where domains.domain = '%d', ..
So it's really exactly the same as per-user quota, except you're just
returning it per-domain in the query.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20100313/120315e6/attachment.bin
More information about the dovecot