bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
cb3f509b91af4e9cb65ce7acbbba8a335494d6d6 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director ring status: Add more fields related to connection status |
20b6e495f623955c680db65447e3f6a8b4c6222f |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director: Parse timestamp parameters with str_to_time() |
c300d63f279be299ed07d749c4de7a3443278117 |
|
18-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director: Improve logging unexpected disconnections from director socket
Previously it just logged "failed", which wasn't very understandable. |
44a31b74084a66492154dd03f349b73c8aa57c7d |
|
13-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director kick: Fix -f parameter to work
It already worked as --passdb-field, but now it matches the usage string. |
351233c8101128366f83c6f9688f0f67538f7c9e |
|
18-Aug-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Actually use resolved IP address(es) in director flush
It left the IP variable unitialized which caused host parameter
to be left empty causing flush all. Flushing with IP address
was not affected. |
0896246f4648151fe846215190ee92cefbcfb8b8 |
|
10-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director map: Fix checking if host parameter is required |
91879fbefda4e049ae37e6443a7806b0afddda86 |
|
17-Jan-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm direcor add: Fix checking number as hostname.
521c0460fe705f32ea6899c8b1f101043fe0898c was completely broken. |
521c0460fe705f32ea6899c8b1f101043fe0898c |
|
17-Jan-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm direcor add: Don't accept number as a valid hostname.
This is usually a mistake. For example "doveadm director add -t host 100"
shouldn't be adding a new IP 100 (0.0.0.100) |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
5898bb384d351ea32f1714da072485c71ca909ad |
|
13-Dec-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-director: Show tag field from response
Fix off-by-one in doveadm director dump |
a2532003186d63337e1cbf9ba8f8f7ec401dea58 |
|
15-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-director: Include tag in add line |
0f5dc4da3982053036be65190e44bf28a67b1ca2 |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: API change - var_expand*() now returns error string.
This allows callers to fail properly if the format string is invalid. |
ccf5e99d0285da8679dee6e0b68fa9ea99a4ddfa |
|
01-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director: Fix memory leaks if hostname lookup fails. |
3cbc0cb7c454ad5132dd335a7ae47bd6f5da2aa6 |
|
25-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director dump: Fixed output to include LFs
Otherwise all the output will be mixed up in the same line. |
b79120aa36d1b7935c9aef8b0a7cf3f1045a36ca |
|
25-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director flush: Added --max-parallel parameter. |
3d76809be2f9f3b5b4110e58eae8613e7c1d6fb7 |
|
25-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director: Invalid parameters cause doveadm to fail silently.
doveadm_cmd_context.cmd doesn't point directly to doveadm_cmd_director. |
7a60e1dc9e93ef3f7c7fe1af6385a0bfa1e31bc3 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Replaced t_strsplit_tab() calls with t_strsplit_tabescaped()
This is useful especially in auth code to support LFs in extra fields.
Other pieces of code were also tab-escaping strings, but never unescaping
them. Usually it didn't matter, because nobody would use the escaped
characters. Still, the code wasn't exactly behaving correctly.
One downside to this change is that it's now possible to pass through TABs,
CRs and LFs through the various protocols. In theory this shouldn't cause
any problems, but combined with other bugs this could trigger some security
problems. |
bfef6891565ff9018ac92add6eae401e9352c657 |
|
10-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director kick: Added -f <passdb field> parameter.
This works for all the user_* passdb fields. |
26f4264ece463fa14795c2d4a11fcc9875f544a1 |
|
10-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm director kick: Escape username properly.
This only mattered if the username contained \001, TAB or LF characters,
which isn't normal. |
23bdbb7b1831785c6ba6df190f6369da882d2b9d |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Require comparisons to be strict boolean expressions
* No implicit integer -> boolean or pointer -> boolean conversions
* !expr can be used only if expr is boolean type
These were checked with a patched clang. It found various actual bugs,
which were fixed by the previous commits. |
c224fff79d18480a65e9b4504b891b8ea176f5b1 |
|
03-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use hash_table_update() instead of _insert() where necessary. |
5d16ff58f96527093b49597e8d6168f833e0a52e |
|
30-May-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-director: Fix commands so that they compile |
264a0f242067fb14df778d2fef181ad0045ad0ea |
|
30-May-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-director: Convert to ver2 infra |
0f3d4fbcf88e2ffd674893aed8cc1288fe17d290 |
|
18-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use [io]_stream_get_error() insted of %m |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
e307e0fcc31ab7b3d062f6ff4b7d48d8b1b2f7b8 |
|
09-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm director update: Tag can't be changed - don't allow -t parameter |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
a4502a71879d6018bd2c64f13614bb619911dd9f |
|
03-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm director update command added.
The difference to "doveadm director add" is that if the IP doesn't already
exist, it's not added. |
009217abb57a24a4076092e8e4e165545747839e |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Changed type of internet port values to in_port_t everywhere.
Created special SET_IN_PORT setting type for internet port values.
Created net_str2port() for parsing internet port values.
Removed several atoi() invocations in the process. |
a5ddfd7a8b473f73135b93d5e081e470a87f0f7e |
|
18-May-2015 |
Timo Sirainen <tss@iki.fi> |
director: Added "up" vs "down" states and doveadm director up/down commands.
These commands are intended to be used by automated watchdogs that detect if
backends are up or down. This way the vhost count doesn't get forgotten
after server goes down. It also means that admin can manually take down a
server by setting its vhost count to 0 without the watchdog automatically
bringing it back up. |
db8ca445e2082fe0b17d593f1f842cf8c40dd6a2 |
|
15-May-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm director flush: Unless -F parameter is used, do the flush by moving users.
User moving causes the users to be properly kicked out of the old backends
before new connections are made to the new backends. This way the user isn't
accessed simultaneously by different backends. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
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. |
ad404d294fedf792619aed432ed8de5174e9ce7c |
|
12-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
doveadm director ring status shows now more information |
0c9ba05543eb9f468be18556f9f58c8fcf10e765 |
|
21-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
doveadm ring status: Help text was shown for wrong command. |
bace943c67e6cd14ce6c994f533d82a3caad5bf1 |
|
13-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
Use the new [io]_stream_create_fd_*autoclose() functions wherever possible. |
550d2fe097e95f12e8fa60ef52753ea7fe53d4ea |
|
02-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
doveadm director kick command added.
The kick gets sent to all the proxies within the director ring. |
e256ae453eb7b4495b3491062bce7c66f2fb1d81 |
|
23-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
doveadm director map -u: Don't connect to director socket, it's not needed. |
3957200d949c6e96c4184db2395444d723950583 |
|
23-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
doveadm director map: Added -h and -u parameters to quickly map between username and hash. |
cac19595c35d7477f7b911805da60a7f6c898bcb |
|
23-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
doveadm director map: Show also the username hash. |
e1550f6a31306246a8499f5c9ca876096cbbeae9 |
|
27-Mar-2014 |
Timo Sirainen <tss@iki.fi> |
doveadm director move/map: Use director_username_hash setting for calculating hashes. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
8ae72ad7d0c69e972cfa65d1e2ce4e3e9a8b765c |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Replaced all -1U and (unsigned int)-1 with UINT_MAX.
It's somewhat clearer this way. Also clang's -fsanitize=integer gives
runtime errors about -1U (but not about explicit casts, so no need to change
(type)-1 casts). |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
bdd36cfdba3ff66d25570a9ff568d69e1eb543cf |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed network.[ch] to net.[ch].
The function prefixes already started with net_ instead of network_.
And icecap wants to use network.h for other purpose. :) |
a75d470c9223a75801418fcdda258885c36317e0 |
|
20-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Reverted "support for non-pointers" part of the hash table API changes.
Originally I wrote it using clang, which didn't give as many warnings as gcc
did. I guess this way is safer anyway.. |
678d0463849ba777106eb7875f27db07a5d8e3df |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Hash table API is now (mostly) type safe. |
7536dca18968a279b69c685eedda205bee228fd4 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
hash_table_create(): Removed table_pool parameter.
Every single caller was using default_pool there, so there's no point in
having it. |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
e4194f4703eeec32b432371ae30fc8f25ab720d8 |
|
19-May-2012 |
Timo Sirainen <tss@iki.fi> |
director: Implemented ability to remove directors from a running ring.
Also added doveadm command for adding a new director to a running ring. |
3c296d819c54e21ce05c3d2eeeedc79be42ac593 |
|
19-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
Use t_strsplit_tab() wherever possible |
5fbccc935e3f7b916aa7c6e302a212821072e83a |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
doveadm: Improved error handling. Failures should now always have non-zero exit code.
doveadm now uses sysexits.h exit codes in most places, although there are
still a lot of places where it simply returns EX_TEMPFAIL even though
something else might be better. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
6176f3618240943f3cb41cb7063ecef56b1dd7df |
|
01-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added flag to specify which column table formatter expands.
The default also was changed to last column, not first. |
665e9d14c005b65d95eae0baaa471c51e5caca73 |
|
23-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
lib-auth: auth_master_user_list_init() now takes user_mask and info parameters.
These are passed to auth process, which may use them to limit what usernames
are returned. |
d3af9043837e4bf0e87a9150fedc9e94908e6f82 |
|
29-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added "director ring status" command. |
15ab2452b0220a115f4351ad9d7fd5ec70ae7966 |
|
23-May-2011 |
Timo Sirainen <tss@iki.fi> |
director: Added support for moving user to another server with "doveadm director move". |
8b16d3b00f051401c97568697ccdbba48663759a |
|
03-May-2011 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added "director dump" command.
It outputs doveadm director commands to add/remove the current host
configuration, so if all directors are stopped, their state can be easily
restored by running the commands. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
eee73872e8d975f7b2d48a5a1b34a94588331ec5 |
|
04-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director map/add/remove: Fixed handling IP address as parameter.
Only host names were working correctly. |
378603cc3f3e0bf238347e7e972383d549661272 |
|
20-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
Make static analyzer happier. |
f6bf269b74e128decd45b6ab01f425e5d3c13894 |
|
20-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director map: Print also records for unknown users. |
224414073c72d77a09a77b4dd71500ada5690802 |
|
19-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director: Give up waiting for handshake after 5 seconds. |
bde78a7bf5f9000f1ae4dc7ce6cabd012e1f8b79 |
|
16-Jul-2010 |
Pascal Volk <user@localhost.localdomain.org> |
doveadm: Removed long usage from doveadm commands.
It's no longer needed since manual pages are displayed. |
d21e8a23c8cf2113c4deda949fd8eb63ac731a85 |
|
16-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director map: Fixed -f parameter crash |
0591dbf3c6edb9ad502df0e57a0a458896e632a1 |
|
16-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director map: Added -f parameter to alternatively get a list of usernames. |
2ea9c5da50bbcb67de03c91ef4cf7778d1e57a22 |
|
15-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director map: Support looking up a hostname.
Also fixed director remove to work properly with multiple IPs. |
caa1fa99c79c568ce2e42477bc169e7024fb220b |
|
15-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added "director map" command to list user -> host mappings. |
bd34ea7951c478b0565334055a0c36dcf0fc17b4 |
|
14-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director flush: Fixed giving correct usage. |
91770f85d9b2ac3e91b7aa74f57149412ae33c4c |
|
12-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director/penalty/who: Support also communicating via TCP sockets. |
4074caeff651a922131d53e2d8f83585d1b07433 |
|
12-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director status: "users" column header was wrong. |
68787d48554f497e711ff66a087ab31f990a11e9 |
|
11-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director status: Print output using the print API, not printf. |
8338066be35c696b59fa9aefdc07042cb0797197 |
|
17-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director: Make sure write()s send everything.
--HG--
branch : HEAD |
f158d9a303bb15a6848ca276c9391c7ca52e452b |
|
02-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Added version_string_verify() and removed code duplication with it.
--HG--
branch : HEAD |
5f4a009a7763f62afe0245a9735931f95a89804d |
|
27-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Minor help text change.
--HG--
branch : HEAD |
1c7b846a17612b1fe7dcee797d0d8115201e58f4 |
|
20-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Look up sockets from base_dir rather than hardcoded PKG_RUNDIR.
--HG--
branch : HEAD |
5e9bb72de1209cd39fdf3e95bdb26e047cc5594e |
|
20-May-2010 |
Timo Sirainen <tss@iki.fi> |
Added doveadm director flush command for dropping user associations from memory.
This should probably mainly be used for testing.
--HG--
branch : HEAD |
edd318d5866ac3fbc6e8df28fb24a4dfef93c884 |
|
20-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director status user: Show more ways of what user's potential hosts are.
--HG--
branch : HEAD |
b2024fa4e6ed39f9b5b6bb6c051f6d535fc0e011 |
|
20-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm director status username now returns which server the user is assigned to.
--HG--
branch : HEAD |
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fb |
|
19-May-2010 |
Timo Sirainen <tss@iki.fi> |
Added initial implementation of a director process (for NFS users).
There are still some unimplemented features and bugs. Also changing mail
server list doesn't yet make sure that other directors won't assign the
same user to a different server at the same time.
--HG--
branch : HEAD |