14cac26dcb71108abfdc95ea524e74be1f95774c |
|
31-Aug-2016 |
Phil Carmody <phil@dovecot.fi> |
Fix control flow and T_BEGIN/T_END hygiene
You mustn't goto, break, continue, or return from out of a
T_BEGIN {...} T_END block, as that will lose a t_pop().
This has been seen in the wild: Panic: Leaked t_pop() call
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
75aae86dfbad237872e214d595530ffa62a49fda |
|
30-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
director: Don't treat empty hostname the same as having it.
This could have caused "host not given" errors if an empty "host=" was sent
to login process, even though hostip was also sent.
Fixed this in two places, although either one should have been enough. |
db3b95d5a33ddce552d41136ae68d7331f8bf5fe |
|
13-May-2015 |
Timo Sirainen <tss@iki.fi> |
director: Added "authreply" socket type.
This allows defining a socket, which receives auth replies. Director then
adds the "host" field to it if it's missing and returns back the original
string. The idea is that eventually a director ring could be running
independently from Dovecot proxies. |
0388fd5e0bf6654ea25299fd63f2ee8e5ce2913f |
|
13-May-2015 |
Timo Sirainen <tss@iki.fi> |
director: Added a new DIRECTOR-LOOKUP command that auth connections can use.
The parameters are the same as what auth lookup would receive from auth
process. So the idea is that a proxy could do an auth lookup, then forward
the reply to director, which would return back the updated reply with the
host field added. |
0dc72981f5286d60ca9233f6ac7c444d393d24fb |
|
29-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
director: Implemented director_proxy_maybe passdb extra field.
This allows running director and backend in the same Dovecot instance. It
was implemented into director instead of login-common to allow doveadm and
lmtp proxying to work as well (although currently lmtp can't handle mixed
proxying and non-proxying destinations, which makes this a bit less useful). |
09060303d565e15d54e42b4ef722f9d3c26f5336 |
|
12-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
director: Added support for backend cluster "tags".
This allows using a single director ring for multiple backend clusters. By
default everything has an empty tag. A passdb lookup can return
"director_tag" field containing the wanted tag name. If there aren't any
backend servers with the wanted tag, it's treated the same as if there
aren't any backend servers available (= wait for 30 secs for a backend and
then return temporary failure).
Tags can be added to configuration by adding @tag suffix to IPs/hosts. For
example:
director_mail_servers = 10.0.0.100-10.0.0.110@name1 10.0.0.120@name2
"doveadm director add" can also add tags either with @tag suffix or with -t
parameter. "doveadm director status user@domain" requires giving the user's
correct tag with -t parameter or the results won't be correct (empty tag's
results are shown). Tags can't currently be changed for an existing host
without removing it first. |