4d074a5c4cdf7cc5962f9629e81eeaa8fe0a2a64 |
|
02-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Fix mail_hosts_dup() to duplicate tags correctly.
The host->tag pointed to the old hosts list. Also the new hosts list's tags
array wasn't filled.
This fixes USER-LOOKUP to return host with default configuration, which fixes
doveadm director status <user> to not show "Initial config" as empty. |
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. |
570153aa925e893dae97d7e097d95eac3a982b86 |
|
23-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
director: With director_consistent_hashing=yes hosts_hash wasn't always calculated right.
If different servers had added hosts in different order, the hosts_hash
would have become different, which caused errors and resyncs. |
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. |