On Wed, 9 Feb 2005, Timo Sirainen wrote:
With 1.0-tests you can create server { .. } blocks so there's only one dovecot master process, but still multiple login processes. I'm thinking about removing this feature and rather create a separate configuration process which allows dynamic configuration based on different rules. For example in your case you'd set cert file based on target IP address.
I'm not really sure how that dynamic configuration lookup would work. At least with SQL it would be pretty simple because you can put the rules into the SQL queries, but I'm not sure if I should support anything else..
you could include config file fragements from the fs...
specifically suppose %a expands to the local ip address, %p the local port, and %d the reverse dns result... then you could have a vhosts config element like this:
vhosts = /etc/dovecot/vhosts/%a.%p:/etc/dovecot/vhosts/%a
which would look for .../a.b.c.d.port first, if that fails then look for .../a.b.c.d ...
-dean