816d20be0cf95fc4eb1a8aa716639e73b8ba525e |
|
12-Feb-2018 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Add restrict_access_flags enum to use with restrict_access[_by_env]()
Swap parameter locations in the functions to make sure plugins are
updated to use the new api. |
677b75f90d81eafe742896d6570a2f63ce501d05 |
|
19-Jan-2018 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: don't cast NULL to void *
NULL is guaranteed to be a void * thanks to
dd6043c05e32a8e8db1233ed711a2c74d1477a89. |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
dd19de9b6382c9a47b65df6b2396789df37a19fb |
|
25-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Show number of incoming USERs/sec in ps title |
16a5712c1a774b7bd3bbf22032b61ccc9398499e |
|
07-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
director: Limit max kicking count |
3e0c0a269390de8495e8f6ecaed59a823221480e |
|
07-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
director: Add kick_callback to director
This callback gets called whenever director has performed
a kick. |
9dd8a75971a2d9e46fb0c80feddc0aaec1181def |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Allow proxy-notify to optionally be a socket
Dovecot isn't using this currently, but it can be useful if external
services want to send notifications. |
57d65ae19a2339d1303a522e680c30ee1ef68d6d |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Support multiple proxy-notify connections |
5754fa860405e9af20c38981942f6aa97ce3158d |
|
06-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Show in process title how many users are being kicked. |
4dc8d682c855ca78db8874e04302e885465c1d65 |
|
06-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Show in process title how many requests are being delayed. |
47a5a7e8296f3b8f2fac9a0659d4de3f2723ba4a |
|
06-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Use PRI* macros and %zu instead of casting |
0d1b8b6bec79746c5d89d57dd8c1688946bd9237 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on timeout_remove(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- timeout_remove(&E);
- }
+ timeout_remove(&E); |
5a444fdfabcc0c75708c21e84dc8b87eddab7335 |
|
18-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Avoid "ring sync timeout" errors when all backends are down
doveadm commands were failing with it. Also pending request failures were
logged as failing due to ring sync timeout, instead of because no hosts. |
e2fdcdb4ee53ab769123e27997713aaea34910e1 |
|
14-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Log info line for every incoming/outgoing connection
This can help with debugging problems. |
6ecc5475f7efd4dcdf4ce727191693de24c5cf51 |
|
25-Aug-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: doveadm HOST-* commands now wait for ring sync before returning OK
This should make it easier for tests and maybe for scripts in general, so
they won't think the command failed when it just takes a while to finish. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
b44033e45e9f48f8a6e1ac5905234fec5de6d6cc |
|
08-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
director: Keep per-tag directory |
faa01447c2f699b63ceccf129430a9ed46458083 |
|
25-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Avoid assert-crash at deinit if user moves are still being added.
Fixes:
Panic: file user-directory.c: line 312 (user_directory_deinit): assertion failed: (array_count(&dir->iters) == 0) |
8cafec427a378daf68c253929232d498509d548c |
|
25-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Code cleanup - global director is no longer needed. |
11ee3b40320a31669bd717fecbe1e332dad4fd84 |
|
25-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: HOST-RESET-USERS moves users more slowly now.
By default only 100 users can be moved in parallel. This can be overridden
with HOST-RESET-USERS parameter.
This delaying is especially useful when director_flush_socket is used to
avoid huge floods to the script service. Even without the socket it's still
good for avoiding unnecessary load spikes when all users are kicked at once
and they reconnect back at the same time. |
d3bae1f9d2448e5c398145ea250849ec12583845 |
|
25-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Show in process title how many users are being moved. |
ffedd89747e11373c0dd3a172d3e94e0cf724fd7 |
|
25-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Call state_change_callback on user move timeout. |
958e5ae51a755558b6d022a39b194614726b4225 |
|
21-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Fix shutdown_clients=no to not break
The director process must shut down even with with shutdown_clients=no.
Otherwise the two director processes will try to keep competing with each
others and log errors like:
director: Warning: Director 10.0.0.123:9090/right disconnected us with reason: Replacing with new incoming connection
director: Warning: Director 10.0.0.123:9090/right disconnected us with reason: Replacing with 10.0.0.124:9090 |
c3a2a487e23a282e59254b82deb9344ed0306bb2 |
|
04-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Throttle user move/kill failure errors after 100/sec.
If it happened to a lot of users, they can take a lot of space in logs. |
c1d01419ffbeb0e00f86a653db70bfd47110e7fc |
|
18-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
director: Compiler warning fix |
5545acdd3aa90a6e0cca2b665f909ec4c2fb2513 |
|
18-Apr-2016 |
Baofeng <baofeng.wang@dovecot.com> |
director: Remove director_doveadm_port
the flag is obsoleted by inet_listener doveadm name.
And listener_get_socket_type_fallback() will fallback to token ring
when socket name is missing. |
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/' |
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. |
973c8fc1d7e9f982f7caf6385adb78dfacd9fb80 |
|
14-May-2015 |
Timo Sirainen <tss@iki.fi> |
director: UNIX auth sockets were wrongly detected as doveadm or ring sockets.
A workaround would be to use login/director-auth socket name instead of
login/director. |
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. |
4ae5f4a10f80de061e03d6823f5c14ff020306c4 |
|
13-May-2015 |
Timo Sirainen <tss@iki.fi> |
director: Removed accidentally committed debug log message |
6468191d64827a2d1481c091ec499874583c834e |
|
13-May-2015 |
Timo Sirainen <tss@iki.fi> |
director: Cleanup for director socket type configuration.
It's now possible to use any type of a socket for inet listeners by
specifying the name for the listener. The available types are: auth
(default), userdb, ring (= director<->director connection), admin/doveadm.
This change should be backwards compatible with previous configuration.
This setting also deprecates director_doveadm_port setting. |
ece0a20249ce26208db3415ba2e79423678856f8 |
|
13-May-2015 |
Timo Sirainen <tss@iki.fi> |
director: Include useful statistics in process title. |
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. |
5b4d189a01d248458496068f838128f1bafdcf2e |
|
12-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
director: Don't restart request timeout when director state changes.
If the state keeps changing all the time we'll never return timeouts for the
requests. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
d6b3cfd855c0eebed68be50d3111de1b5a6afeb0 |
|
13-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
Call master_service_init_finish() only after all of the initialization is done.
This way if the init crashes, the master process will throttle a buggy
service. |
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. |
1df39b899804fd1dbc560f75382364822935c857 |
|
22-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
director: -D parameter now enables extensive debug logging. |
4ee00532a265bdfb38539d811fcd12d51210ac35 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch] |
e34d170f8f0e084bd94bfbc1a7085ece67e508df |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes. |
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. |
b6b9c99fefbbc662bd9a0006566133c4480bf0e8 |
|
08-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
director: Avoid user getting redirected to different servers near its expiration.
Fixes a problem when user is logging in at the same time on director1 which
thinks the user is expired, and on director2 which thinks the user expires
only in 1 second. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
2efe19d9045768d985a3bd549cff12f65ba40cc8 |
|
08-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
director: Fixed potential assert crash when moving a user to another backend. |
69b22a0c0c84087e5bdeec71faae7ea77295240f |
|
17-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
director: Drop privileges only after adding hosts.
This allows reading files from /etc/ before chrooting. |
c4900d31385344bfadaee53a897daeafdb3063d8 |
|
17-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
director: Find director's own IP earlier in init. |
faec0abfd648c647030027e86de2ce8911df683b |
|
29-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
Use master_service_connection.name for determining listener type. |
fb35b9f2c80954da842c20d5128b5e506835d93e |
|
08-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
director: Don't explicitly use base_dir. We're already chdired there, use relative paths. |
7ee226c2a66aa4dce7f13e8b17687db285c981bd |
|
19-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
director: Moved all i_fatal()s to preinit stage.
This avoids a wrongly configured director process from rapidly respawning. |
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. |
412b772c337428b72149605c1410524c2353e5d4 |
|
03-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
director: Show number of connections in process title if verbose_proctitle=yes |
fa87f0ef3636fa52ce42513533ee500c0bf29910 |
|
02-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
director: inet_listener port finder should ignore doveadm's port. |
5801ce4da7d807ab85d02051ece5969e7175eeba |
|
23-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
director: Fixed director_doveadm_port setting to actually work. |
861f53be0cc2fa5665f3c107a7576e2a53bb2eb0 |
|
22-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
director: Added director_doveadm_port for accepting doveadm TCP connections. |
b4ddb5b3c3722620a8fef387dd8c47bb411a5643 |
|
02-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
director: Added support for LMTP proxying.
--HG--
branch : HEAD |
0a53eb0283d7ec28c6105f61e118b96fce8ecb95 |
|
24-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
director: Lots of fixes. It should be pretty stable now.
--HG--
branch : HEAD |
ae46f6ba5bb9eee8900254d3042e89d490023be0 |
|
24-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
director: Compiling fix for Solaris.
--HG--
branch : HEAD |
f9f77e06a148fd0816004e0e1b0f585307148a7d |
|
21-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
director: Don't kill ourself when idling.
--HG--
branch : HEAD |
242abe3ad2423776e9cf05e1304eb8fda4831b23 |
|
18-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
director: A lot of fixes.
--HG--
branch : HEAD |
00e7c3010f7da4a49881a7feb05e413af353af0a |
|
17-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
director: Added initial testing framework and some debugging output.
--HG--
branch : HEAD |
db693bf6fcae96d834567f1782257517b7207655 |
|
27-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master API changed to avoid accidentally leaking client connections.
This change also fixes many such leaks.
--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 |
cf9d67e4a9bfee31cf3be05244555d51a3d1b9fe |
|
20-May-2010 |
Timo Sirainen <tss@iki.fi> |
director: Code cleanup - keep mail hosts in a struct rather than in static variables.
--HG--
branch : HEAD |
8dd76854cc680053986142d5f5e823f637447929 |
|
19-May-2010 |
Timo Sirainen <tss@iki.fi> |
director: Crashfix at exit if proxy-notify fifo hadn't been used yet.
--HG--
branch : HEAD |
3f3ad16ff74d694796d22501250a9a29997c0729 |
|
19-May-2010 |
Timo Sirainen <tss@iki.fi> |
director: Use auth-login socket, not login/login so it works as non-root.
--HG--
branch : HEAD |
300e4e43ed1ca46d0614459161ca2fb460ef661a |
|
19-May-2010 |
Timo Sirainen <tss@iki.fi> |
director: Tell login proxy to notify director of open connections every director_user_expire/2 secs.
--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 |