e0dae5d76ea0a4aef849602750ce73dfae995bc8 |
|
12-Feb-2018 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Flip MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT to ..._ALLOW_ROOT |
57316ab705807ac3a433e2ec9b8b6ff5d090c3d7 |
|
12-Feb-2018 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: Flip disallow_root in service_drop_privileges() |
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. |
de0034cc6bb52585bc82289801435418a7ee7298 |
|
12-Feb-2018 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Flip drop_setuid_root in restrict_access_settings |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
677cc0d62b41c7506246bf1b992a400a11896474 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mail_user.event and give parent event in mail_user_alloc*() |
d2729522f8b4754b66be7e16548ede39b033fb04 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mail_storage_service_user.event and use it as the global event
The event is set in the same place as where the user's default logging
prefix is changed. |
c4995cea83e7bf065a45ff1ac4dc59ac3261b75b |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Remove mail_storage_service_io_deactivate()
We now require that ioloop context is always properly deactivated, so
there's no need for the function. |
cafe72dae0fd4dc48025e0c8dc189bf4901e9f70 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: mail_storage_service_io_[de]activate_user() - [de]activate the whole ioloop context |
b758c60275e9862515510949939aba7a15c6e296 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: mail_storage_service_user_unref() - deactivate user before removing callbacks
Otherwise the next commit won't work correctly. |
0f8663fcdbb10c162113c76b53a309b59b3bd500 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Create ioloop context regardless of logging settings
This will be needed by the following commits. |
211caf3c233d562b0c8137e5eefae3cb1ef13003 |
|
11-Dec-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-storage: mail-user: Added more information about the client connection.
Submission service will need it to pass to the backend MTA in XCLIENT and for creating the "Received:" header. |
ff4ba036fcdf28d4a1a7e3c1c6c0c71793547bd6 |
|
11-Dec-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-storage: mail-user: Changed mail_user_set_vars() to accept struct mail_user_connection_data, rather than individual fields. |
24ff040448e018738515f7bfcc6f1a6e5d08c10d |
|
07-Aug-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
lib-storage: added settings updating function for the mail_storage_service user |
38cf8e6fc69413632af2f27702acf2b36449c62f |
|
31-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: MAIL_STORAGE_SERVICE_FLAG_NO_PLUGINS wasn't working correctly
Especially with "doveadm user" it still triggered running the plugins,
because doveadm loads all the plugins early. |
baf97389e203e105b97a8183b2893740691f8c63 |
|
24-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: If userdb returns chdir extra field, chdir() there instead of home
This can avoid unnecessary home directory accesses if indexes are stored
outside the home and there's no other reason to chdir() to home. |
1fe027b2cac9fd227e7bf639cf0dcba27b47f65c |
|
24-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: If chdir(home) fails due to EACCES, don't log two errors. |
2092da86f3a332e8d7eae1300a3b9852fed8f2f8 |
|
06-Jul-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
lmtp: Fix for wrong session id of mail user when saving mail, quota checking on
When quota is checked mail user is allocated with custom ":quota" session id
suffix without incrementing service user session id counter |
646817f0cfb39b0e0eb545900f1566b76a851b20 |
|
23-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Replace MAIL_STORAGE_SERVICE_FLAG_AUTOEXPUNGE with explicit mail_user_autoexpunge()
This allows better control of which users are being autoexpunged. This
patch changes behavior at least in two ways now:
1) After shared folder access, the owner user isn't autoexpunged at deinit.
Although this is a bit questionable of whether it should be or not.
2) LMTP's quota check at RCPT TO stage doesn't trigger autoexpunging. |
d1bf4ae66b8bf3b9e28df1823d6d4adda2b923b6 |
|
22-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Use refcounting for mail_storage_service_user
doveadm import was freeing the user too early, which resulted
mail_user._service_user pointing to freed memory. More importantly,
after 34512eaad8b1b2f929e6d6e3a2f7252c29fba97b user->set was pointing
to already freed memory. |
073353fe5b7ddbc44fd2b099e023b84254041083 |
|
19-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: mail_storage_init/deinit() is now reference counted.
This allows calling them multiple times and only the final deinit frees the
data. |
34512eaad8b1b2f929e6d6e3a2f7252c29fba97b |
|
06-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Don't duplicate service user's settings into mail_user
The mail_storage_service_user.user_set isn't used afterwards, so it can be
directly used to avoid wasting memory. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Change string position/length from unsigned int to size_t
Mainly to avoid truncating >4GB strings, which might potentially cause
some security holes. Normally there are other limits, which prevent such
excessive strings from being created in the first place.
I'm sure this didn't find everything. Maybe everything could be found with
compiler warnings. -Wconversion kind of does it, but it gives way too many
unnecessary warnings.
These were mainly found with:
grep " = strlen"
egrep "unsigned int.*(size|len)" |
30b849c26358317b4e25b19ced4b7deb55f59c0a |
|
18-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mail_storage_service_user_get_pool() |
096e109f9f332bc758ca5e22ec64337379c5f231 |
|
18-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Replace some settings_parse_line() calls with settings_parse_keyvalue() |
c73ede1a6685975eb21eecf2fb5af79854867f9b |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Fix previous var_expand() change. |
bcf1cf2afb9692b0db555e6ecf662a2fbd19793d |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: API change - var_expand_func_table.func() can now return error.
None of the existing functions were changed to return errors (yet). |
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. |
acfda38b75d0f0e899ef692fef01593bd56ed85e |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Try to initialize var_expand_tab[] directly.
This avoids accidents with the array numbering being wrong. |
4b1781e4c64be52e25b5994e5242dbe696cc7d29 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use i_strchr_to_next() wherever useful. |
761585b5c8798d39fbb2fb6a72667719a47bef6f |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
%{auth_domain} shouldn't include the leading '@' |
a020eb653b2620a989e4795adceb6136037327b2 |
|
10-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Added mail_user.session_create_time and .session_restored |
79fff45046397ba48c8693d5f37a1fd93096987f |
|
13-Sep-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Fix potential crash when userdb-returns "key+=value" for a nonexistent setting.
type would have also happened to be initialized to SET_STR for the crash to
happen. |
8c81109dca287f1830aac57bae61e57260248941 |
|
09-Sep-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Fixed accessing user as root when user has no uid.
This shouldn't normally be done, but might as well fix it. Fixes:
Fatal: mail-storage-service: seteuid(4294967295) failed: Invalid argument |
2e441a8e3d694820a82d887dcdc4d2d568e428a8 |
|
16-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: If chdir to home doesn't work, chdir to root instead.
Most importantly this fixes unlink_directory() when current directory
after dropping privileges can't be open()ed. |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
3d1ef0818c9b14a79d130fd5a2f3c4e9f6e760c9 |
|
31-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Fixed error_r with mail_storage_service_lookup_next()
We no longer want to hide the actual error message. |
0175d37a5ae5a4d146ca41b684bd38d9b03683cb |
|
30-May-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
Remove t_malloc in favour of t_malloc_no0
Using either t_malloc_no0 or t_malloc0 makes it clear whether the
allocated memory is zeroed or not. |
61d3fd14828b68d789f3df73d1dbed56e37b7931 |
|
30-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: mail_storage_service_next() now returns error string. |
6dc2060d6e0261e4bfd453f1eb1c165cc8d905c1 |
|
30-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: mail_storage_service_lookup() now returns the full error. |
a7b9a392af1ee67134ac63435601d6abb819beee |
|
26-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Remove unused mail_storage_service_all_init() |
55e04e5659b27c520633835d3f04e2eca7f21117 |
|
26-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Added mail_storage_service_all_init_mask()
This allows providing a usermask hint to the userdb iteration lookup. For example
with LDAP this allows setting the base based on the @domain. |
c977ee6ce06cbc0b4668fde1ec34f2f5e1773684 |
|
25-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Don't use same session ID for multiple mail_storage_service_next() calls.
dsync does multiple mail_storage_service_next() calls for the same
mail_storage_service_user. This causes stats plugin to send the same
session ID to stats process, which complains about duplicates. Solved this
in a generic way by having the following mail_storage_service_next() calls
append :counter to session ID. |
6cb874b7e9239922e509fc91c0567cd266904a4c |
|
07-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Changed separator between session_id_prefix and unique part to be ':'
Although '-' wasn't used by default either, it's much more likely that
custom session IDs might contain it. ':' is hopefully less likely to be used.
This allows log parsers that actually want to find out the original session's
all log lines to cut out everything after the initial ':'. |
11120acd01d43973cd504952d691a2ae1c546ee2 |
|
11-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm-auth: Added missing code forgotten from commit 208754367 |
32223e1a31b6f060ab3abcc26a630e7cca0abc89 |
|
29-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Use getuid() instead of geteuid() for checking if we're running as root.
This fixes running multiple doveadm commands for different users. Running
mail_storage_service_init() + _deinit() multiple times left euid non-root,
which dropped the MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP flag. |
07448eb01d5111f050a0940534111f5a938bd20d |
|
24-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Verify settings only after applying settings from userdb
This is especially important to verify() functions that parse the settings
and store data permanently based on them, e.g. pop3_delete_flag or
imap_client_workarounds, which effectively couldn't be overwritten by userdb. |
38dac3030bdd74acba0a60edd54b2db6d914fde2 |
|
10-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Added missing %{userdb:*:default} handling |
d23dfc385f22d7a2c466d29501c9e0ce5a243dee |
|
10-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Deduplicate %{userdb:*} handling for mail_user and mail_storage_service_user |
8cca3b43b28365cfee4dc733c00caaeab8ecd2ad |
|
20-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Enable autoexpunge only when MAIL_STORAGE_SERVICE_FLAG_AUTOEXPUNGE is set. |
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/' |
1959accd3886d99efccd9f98247f21e8fd54da66 |
|
18-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_storage_service_input.session_id_prefix
This should make it easier to pass through the original session_id to worker
process sessions. Especially if these sessions are somewhat short-lived it
can be useful to assign them a unique session ID while still being able to
match it to the parent's session ID. |
c85e266e4d7214adb6f7c65fbbc7d312c5a35dcb |
|
18-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Create ioloop context for users even if log prefix changing is disabled.
This fixes stats plugin to work with lmtp, imap-urlauth and doveadm-server. |
265cb53cf8d5cb35edd4c4ff086ca6165605b708 |
|
09-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Support %{userdb:*} variables in mail_home and mail_chroot settings. |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
691f802ef6ec2105079d420ba26b21088402c6da |
|
06-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Store pointer to mail_storage_service_user to mail_user if it exists. |
95dcc0f8e80cc8c9278c904c3cd06dcc4a6d2d33 |
|
06-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_storage_service_user_get_service_ctx() |
c93aca832ee532010ead91b85fa9f614132e1be2 |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Removed all invocations of atoi(). |
23152672e3ad7f3512c11df43e8dabba4fe6407d |
|
28-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added %{userdb:*} expansion to mail settings. |
192488b417fd4411210c616eaf50f6e8c0c5f916 |
|
24-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail_storage_service_user_free() needs to update log prefix if current user is freed. |
d6601a0bc4fd60e58bedbddf2481abd82cba76d7 |
|
24-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: If session_id isn't given, generate a new one.
This is useful for tracking logs written by services that aren't directly
related to any specific user session. |
351668ae6972c9f55059501ddb2ed6e70afa2f31 |
|
06-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Use module_dir_try_load_missing() to load user plugins. |
a48ccadf62d342063d0fff00fadc791423cc915f |
|
06-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Previous log prefix changing code started accessing freed memory. |
39f5c2b2143842ff6f827b7198cae8853b8c5bba |
|
06-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Set the user log prefix earlier when initializing user.
So the full prefix with session and other useful information is included in
the log message as early as possible. Some fatal/panic errors wouldn't even
have shown the username. |
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> |
85779ec11f23eb8efeb8993b1e0b9aad62c4122a |
|
25-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Allow calling storage service's ioloop activate/deactivate functions manually. |
85b14555888acec410734a16561f2d79c626cad9 |
|
25-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
lib: Code cleanup - check io_loop_context_add/remove_callbacks() callback parameters. |
33bd898e7756b289e65f43133312d9637afc1371 |
|
25-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
Avoid logging warnings about increasing memory pool/data stack with DEBUG on.
These could have a minor effect on memory usage, but shouldn't be much. |
1e40531c1de45bc87e72a9d5866ff2af79b63ceb |
|
15-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_user_dup() |
330096f204a221d8b8beb7f408a03d28c7572537 |
|
25-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Set mail_user->session_id before calling mail_user_init() |
bff606130fa332dbf837569f922028b68f45fd61 |
|
09-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added struct mail_user.session_id |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
2f90189c6ee66a17f7bf838a8eb8a69868630fb8 |
|
14-Jan-2014 |
Timo Sirainen <tss@iki.fi> |
auth, login, mail: Added %{auth_user}, %{auth_username} and %{auth_domain}
They expand to the SASL authentication ID. So if master user login is done,
it expands to the master user. If username changes during authentication, it
expands to the original username. Otherwise %{user} and %{auth_user} are
equal. |
5a9912dcadfd467c5ea54bdc3331eef359f0b1c5 |
|
08-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_user->admin flag.
The previous admin-flag used to mix up "admin user" and "admin tool", while
this new purpose only means "admin user". |
50b9773bebe5c66485728e21e4da6e99db388c92 |
|
18-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_storage_service_set_auth_conn() |
d2ca20a479e76af8557b4a74b0b51e4de0e3c9e3 |
|
21-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't create a settings cache for initial global settings read.
This fixes at least doveadm -A so that it doesn't connect to config process
for each user. |
49621bf0ef1d55aaaa2dc7d76011cbfeabdcfbe1 |
|
05-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Use a separate auth-userdb connection for iterating through users.
This is required because the auth-userdb connection is also wanted in the
middle of the iteration to do USER lookups. |
20dca965f48c1d7600a268d380c0b5fb5f1011d5 |
|
01-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Improved seteuid() error messages a bit. |
49fd8c950e3da2ed32506e617a4b1480a07f874f |
|
01-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: If settings can't be read because of permission denied, restart process. |
1cb065514fcfe00b684ee274239e3f0390c7fc47 |
|
01-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Ignore MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP if service user isn't root. |
984e5c91288139f8a2582be705ee7ef0d157a3f6 |
|
30-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: With temporary privilege dropping, switch to root before doing config lookup.
This fixes the problem of not having enough permissions to connect to the
config socket. |
4dc81fe17cc3aca2e8e9ccb988f90bae12ca2ad0 |
|
12-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail_storage_service_all_init() no longer returns total number of users.
In preperation for removing the count functionality, since it requires
reading all the users into memory for it to work.
This also required removing the /total from verbosity counter with
doveadm -A. |
b9dc21a94401638c00e40b695998875e1563ce77 |
|
16-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail_storage_service_lookup() ignored input->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. |
6494ec1398bbc56e63beba727e2c4538ba5521a7 |
|
03-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Crashfix when doing userdb lookup. |
3482fee0e3733456512ba110780824e6daa7ff9f |
|
29-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_storage_service_save_userdb_fields() |
ca4526e3b5fbf5ea3dd477a2098522a44c9ac52c |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
i_set_failure_prefix() now takes printf-like parameters.
This avoids using t_strdup_printf() with it, which was done very commonly. |
bd63b5b860658b01b1f46f26d406e1e4a9dc019a |
|
11-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Plugin ABI version checking improvements.
Previously the plugin version was checked against the version string
returned by the currently running Dovecot master process, not necessarily
the same as the binary. Also version_ignore=yes setting skipped the version
check entirely.
Now there's a new DOVECOT_ABI_VERSION macro that can (at least in theory) be
updated only when the ABI actually changes. The version is in format
"2.2.ABIv1(2.2.15)", where the (2.2.15) would be the actual Dovecot version
number that gets ignored when comparing the strings.
Also now the plugin version is compared to the actually running binary's
ABI, not the master's version, and it can't be ignored with a setting. |
2984b6b095294c50c4626aef74a02d2e04472640 |
|
11-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Decrease minimum memory allocations.
This is mainly to avoid wasting settings-related memory for IMAP processes.
Probably something more radical should be done at some point. |
3c932c0a21349f23dd38c50c12b3a24717dfbc28 |
|
19-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Verify that the shared library's version matches the binary's version. |
32b78da5dfbbf6a06b3dbdc9278c60b55714f9bc |
|
19-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Read SSL settings only if service has SSL sockets or MASTER_SERVICE_FLAG_USE_SSL_SETTINGS. |
ab90f702ceedb7ba445a9a592be0b213b27cbafa |
|
14-Sep-2012 |
Stephan Bosch <stephan@rename-it.nl> |
Added support to perform token-based service process authentication.
Creates hidden SASL method DOVECOT-TOKEN. This method is not available on
the normal auth login socket and thus never presented to clients.
Creates new auth socket type 'tokenlogin'. This otherwise normal login
socket only offers authentication using the DOVECOT-TOKEN mechanism.
Creates new token-login directory in base_dir to separate token logins from
normal logins. This directory is otherwise completely identical to the
normal login dir, i.e. it contains sockets for the service backends, used
to chroot login processes to, etc.
Makes default login socket configurable.
Performs some minor changes to src/login-common to build very sparse
protocols, e.g. avoid the need to implement methods that are not needed. |
544a946df4de398125bafb51f26d5e3697bde649 |
|
04-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_storage_service_user_get_mail_set() |
9d002e700183db29073954db349913e5e025e8a9 |
|
28-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added and used MASTER_SERVICE_INTERNAL_SET_PARSERS macro. |
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 |
e438c85a6b0f77889e25913bbbba808d6078282d |
|
02-Jun-2012 |
Stephan Bosch <stephan@rename-it.nl> |
Adds 'anonymous' field to struct mail_user; derived indirectly from userdb extra fields.
Depends: none |
c56500d4363beba4ffa954069ab30f4401849156 |
|
19-May-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: If chroot is used and mail_debug=yes, log the chroot path. |
50a1b4437ee899c597af9133206055e5ae1e06e4 |
|
19-May-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Sort userdb fields before importing them.
This avoids requiring manual sorting in some situations, such as when
defining new namespaces. |
b55f914c0ade77252cfd798ea8eb9a84bda56315 |
|
07-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
Added a "session ID" string for imap/pop3 connections, available in %{session} variable.
The session ID passes through Dovecot IMAP/POP3 proxying to backend server.
The same session ID is can be reused after a long time (currently a bit
under 9 years). |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
4c261fb48e6e36570a0841aa51ca483024d6a0a6 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: "Invalid userdb input" showed wrong input in the error message. |
19cadcc25c26af7afea1355d78e20ad64eaad263 |
|
17-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_storage_service_get_var_expand_table(). |
13b063ba3ea51256fd97d7fa883f14cb08842b0d |
|
12-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Handle %{uid} and %{gid} expansion without relying on process's euid/egid. |
a2150da2dc906c26a26219cbefbe28a119aafee2 |
|
10-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added separate %{gid} expansion to mail_user.
The default %{gid} probably works also, but it's more reliable to do this
explicitly. |
8abe071cb14a622b9d84b00a9269f96d01a576f6 |
|
08-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: If client_limit=1, send user's log prefix to log process. |
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. |
27ca6cb0548c6478005c77d04be641356ec7d83c |
|
16-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added local/remote port to struct mail_storage_service_input for userdb lookups. |
feccf3f8679807f25d105521d5f6ddce6df7cdce |
|
20-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
Increased initial memory pool sizes. |
5a64a89abacd1580cf12cd5001d23f2c6c0b1185 |
|
13-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
Removed unnecessary code. |
f2d3c2be0986024329f442a6a6824ec86e75df54 |
|
08-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Error handling fix for key+=value when key isn't of string type. |
417642ddac19708bea6dd2c2bbeaf6a9578d521b |
|
06-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: When mail_debug=yes logs userdb fields, hide values of all whose key contains "pass". |
ae800c8a965688ab17415397dbc759a429e78199 |
|
24-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
liblib: io_loop_context_remove_callbacks() now requires also callbacks. |
0575fb54461688783ce2eb9eff0e37f9687806d1 |
|
18-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
Increased initial memory pool size. |
6727b100f6afdde039efc755a7cf45c93362f347 |
|
16-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT crashed after previous ioloop change. |
1388b590dbd85245b591346f860bc1319953318a |
|
16-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
Replaced "ioloop log" with a more generic "ioloop context".
The context can call multiple callbacks that can do anything they want,
including setting the log prefix. |
e30b9e07f9657c35ca09ac36d57d60cbe2ebbc66 |
|
30-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed /chroot/./home style chrooting from userdb home. |
7af5f78e9fee296e42430d94ef252ff0333d8024 |
|
28-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Changed userdb +key=value to key+=value |
1f5597beba229acd914e30a6da3c0e62d83b6e8f |
|
22-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed +key=value support to actually work. |
47569a4b2b4d3cc55e786177798c922c3c44233d |
|
08-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Allow appending to existing settings via userdb extra fields.
"foo=bar" replaces the setting, while "+foo=bar" appends to the setting. |
b00c511e4675c4a1270d92924fc445cfb8631cf3 |
|
07-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed mail_chroot to work when process was already chrooted there. |
8d5c97bf940e43e8ec6e9f1ec8655f3b20edafbe |
|
10-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed crash in mail_storage_service_all_init()
(doveadm .. -A) |
b9b841558c5f91db7f5fc71c0ac62aad1bbf6418 |
|
08-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Allow each user lookup to override global mail_storage_service_flags. |
0992011130e9d0a498ca860ddbe4028398a530c5 |
|
08-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
Changed wiki.dovecot.org links to wiki2.dovecot.org |
303e375b7e76278f4ec541f49af0476d3e4ee710 |
|
22-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added MAIL_STORAGE_SERVICE_FLAG_NO_NAMESPACES flag. |
70afae43cc78ea6ecca83f6c587072c442a15ec1 |
|
17-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Replaced all getpw/gr*() to use i_getpw/gr*() with improved error handling. |
216cd45a5f47c9bd46fe67c1b3bd6b1a42f6e39c |
|
12-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: When uid/gid is invalid, tell if it's from setting or userdb lookup. |
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. |
44fea1d434a885f08b399459748b001a89f61c77 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: MAIL_STORAGE_SERVICE_FLAG_DEBUG didn't do anything. |
7a330e74e5bc071f1264aeba47e88edbf3565c28 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: MAIL_STORAGE_SERVICE_FLAG_DEBUG didn't do anything. |
d5eb47a791ec56149fd711cd8e44efc8babeaae5 |
|
10-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
Added import_environment setting.
This also cleans up different places in code where TZ and other environments
are preserved. If it's not in the import_environment setting, it's not
preserved. |
f3e17726502b6cf1912f30aae7e283b5d31ea69c |
|
07-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Give restrict_access() uid/gid source (userdb or mail_u/gid setting). |
ba02cf1dae8acbe439f79085603bb93a870cce34 |
|
20-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed handling chroot/home for services that don't really chroot (lmtp). |
97333cbaa7893be8bac7b5741e328ebfff0aeab0 |
|
03-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Use ioloop log prefix automation.
This properly fixes imap/pop3 when using with client_limit>1. |
002179a890bf4f1942cad6463787719eaa9fd6c0 |
|
16-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
Fixed home=/home/./user style chrooting to work again. |
762e17079d29d9f1838114ff5fec9ceaba8eb6a8 |
|
18-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added no_userdb_lookup flag to storage service lookups. |
50349cd047ca9e7c100cbeb70acfe26672649959 |
|
28-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lda: If doveconf fails, make it exit with EX_TEMPFAIL. |
7f472e15b5f19a3536634863950c80a88079da23 |
|
24-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
lda: Don't fail with "mail_uid/mail_gid not set" error when running without -u. |
13295d1c3b0062b932ad0b62d3320361f5cfda6e |
|
20-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't complain about missing UID/GID when running as root is allowed (standalone). |
0139fcb57a88f6ed27a1bb4a1bd537b04fd2b5d6 |
|
20-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Give better error message if user is missing UID/GID |
1503ac7619d97193d6690292b5f9523552c5d6ce |
|
20-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Preserve permission settings in master's service blocks.
Most importantly preserve extra_groups setting. |
98c3aa2587ad3e81e1548a3a4f79b2a24566cec3 |
|
30-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
If module can't be loaded due to missing dependency, suggest a setting how to do it. |
5e751dbaecf7c337abc149f328c4a13ee5c15134 |
|
09-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
Increased some initial mempool sizes.
--HG--
branch : HEAD |
12797080b552a3c1727b73b61cc7427bec0c7472 |
|
07-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
mail-storage-service: Initialize logging with proper settings a bit earlier.
--HG--
branch : HEAD |
8552b0cad8ffe9ccb8270577ba28b8010c89af11 |
|
07-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
imap plugins now give a nicer error if tried to be loaded for non-imap binary.
--HG--
branch : HEAD |
3c652e7a569c2623d22b4ab30279aebddce4d396 |
|
13-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Fixed chroot handling.
--HG--
branch : HEAD |
9261dbf0675204898c6557591c7aa376e23a52b2 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Started using str_to_*() functions instead of libc's ones.
--HG--
branch : HEAD |
9b78c0d5e13141f4df6c6e483f854e5acb861288 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Fixed memory leak when parsing settings.
--HG--
branch : HEAD |
b879ed8dd4b5850987e6b89a92f794d87c6be7d7 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Small code changes to make static analyzer happier.
--HG--
branch : HEAD |
c07d7eb3ca9754367697c98f5e66a3982a45d142 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
mail storage service: -o parameter now overrides userdb settings too.
--HG--
branch : HEAD |
8bb360f9e5de1c25e4f875205bb06e8bf15dae14 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Removed dead code.
--HG--
branch : HEAD |
3b22894b8805b186c73d8b754001e8d7e944be85 |
|
31-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Added support for userdb lookup to fail with a reason (many API changes).
--HG--
branch : HEAD |
2adf14967d2e62d2a1afbdf0c19081048f86391d |
|
29-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Dynamic setting allocation was still a bit wrong.
--HG--
branch : HEAD |
dbe06905918a415a34c5621b9fdf45be0b9c8e64 |
|
27-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Dynamic settings parser allocation logic was wrong.
Default setting structures were being cleared after settings parser pool was
freed.
--HG--
branch : HEAD |
faca2afa3576c50caf28e0f009555325d2a49e0b |
|
17-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mail_storage_service_read_settings() avoided execing doveconf too aggressively.
--HG--
branch : HEAD |
5fffa07efe1cc9472ded8445f9cf8e5f59ae566a |
|
16-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mail_storage_service_lookup_next() returns -2 for if _next() fails.
--HG--
branch : HEAD |
63fc74d46d781e87edb6388e51a5bf942c5f8eab |
|
16-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mail_storage_service_next() didn't always set error string.
--HG--
branch : HEAD |
57ff998a443881c8959a8e65f6325cf19fefc1d0 |
|
16-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mail_storage_service_lookup*() now separates userdb lookup and user setting errors.
--HG--
branch : HEAD |
c06d6ea0766d0520af1a93e6000c0e73f350e0a2 |
|
16-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mail_storage_service_next() now only returns -1 if user's privileges are invalid.
--HG--
branch : HEAD |
446ffe2f7c6a783b09f88bf31ce6d0ae60f975b5 |
|
16-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Make sure we never exec doveconf when looking up config.
--HG--
branch : HEAD |
72f2a851238e5661695c63bff0e9a9e800ba577a |
|
09-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mail storage service: mail_debug=yes now logs what happens to userdb settings.
--HG--
branch : HEAD |
d7ec773d995888b09c4d8c88a4b0b134a2002361 |
|
09-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Only some userdb extra fields were used.
--HG--
branch : HEAD |
38f227941bcf673e0e523c1ac7267bca9cbcd2c4 |
|
08-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Exported modules as mail_storage_service_modules.
--HG--
branch : HEAD |
674f541b16689c0ed090dac32db94463c5af3977 |
|
08-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Fixed crashing when iterating through all users.
--HG--
branch : HEAD |
878a83a906e1be6354b563ead096955a22ad5fbe |
|
28-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Memory leak fixes.
--HG--
branch : HEAD |
84fd5bbb0d852ff0ead6ca9c49d3e1a107fb5826 |
|
22-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
config reading: Don't crash if caller specified module=NULL or service=NULL.
--HG--
branch : HEAD |
5d03d9f439e41c90215a3c938ffebe4c2a8ae257 |
|
20-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added support for caching config lookups.
Currently caching won't work if config has any remote {} blocks.
--HG--
branch : HEAD |
4c1deab456fe8877bf025d11843167ac1f36327a |
|
09-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Increased initial memory pool sizes.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
abb9b8f14e83baca887cf12210bfe480f6cde7a6 |
|
16-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
mail storage service: When duping settings, they need to be also checked.
The checking part may also parse some settings and store data to the
structures.
--HG--
branch : HEAD |
705f6fbad395e6f014838e797b7dbcaceafd2f1d |
|
16-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Some flag enums were missing FLAG_ in the middle.
--HG--
branch : HEAD |
c5a6a6565be93224fc26522eda855b0990f256e8 |
|
16-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Idle-disconnecting auth master connections is now optional. LMTP no longer does it.
--HG--
branch : HEAD |
714d59900e44e6e2dd744bd7b76862e1d11a4f61 |
|
14-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Added setting aliases: mail for mail_location, both of them for namespace location.
Removed special case handling for changing mail to mail_location in userdb.
--HG--
branch : HEAD |
62fc2fe221eccc834ac6b11b94b55335d5027cd1 |
|
14-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Added mail_storage_service_restrict_setenv().
--HG--
branch : HEAD |
b7835adbfddd8c92b51d6653fb759f963302fa78 |
|
14-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Mail storage service: Added MAIL_STORAGE_SERVICE_NO_PLUGINS flag.
--HG--
branch : HEAD |
9ba7e76c20be775f368254e3059a6189fe789f16 |
|
07-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
module_dir_load*() API changed to take settings struct, with debug field.
Fixed debug logging to also go from info log to debug log.
--HG--
branch : HEAD |
48ada47cce07fb7195a3437224c7c25f542326b0 |
|
07-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added support for per-user plugins.
--HG--
branch : HEAD |
9aceb071780a949f4e8bf41d3cf80735d9ac7fdf |
|
25-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
mail_privileged_group was parsed as user, not group.
Patch by Apple.
--HG--
branch : HEAD |
abf015c9682f0f723db87a7c97bc284ef814818f |
|
23-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
mail storage service: And added missing #include for previous change.
--HG--
branch : HEAD |
0ee3fdb5e94ae6f34cb873ca3c9858342621e55f |
|
23-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
mail storage service: If chdir() fails with EACCES, give a better error message.
--HG--
branch : HEAD |
263946a65b625fd4198619a8626db0f36bbafd66 |
|
19-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS: Also chdir() to home dir.
--HG--
branch : HEAD |
95d9395d15540b3a96f75c7f9fd73e6d8ad5e897 |
|
19-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
mail-storage-service: Added MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS flag.
--HG--
branch : HEAD |
608bdb7f008cd5cd332d727018a9e8173abec998 |
|
18-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Added mail_storage_service_user_get_settings_parser().
--HG--
branch : HEAD |
7e95ba7f38b9b421287d36c6152f8a9e6b9f225b |
|
11-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Forgot to commit mail_storage_service_user_get_input().
--HG--
branch : HEAD |
97180ea9c26c4de0807daaad21e03c80643b09fd |
|
09-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Added mail_storage_service_init_settings().
--HG--
branch : HEAD |
8f5b34c22e4c3bfb35ca13c4744867eb5ddbd3d6 |
|
06-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Added MAIL_STORAGE_SERVICE_NO_LOG_INIT flag.
--HG--
branch : HEAD |
26e80a4bb6244b3a65ea4eaf5c772c85b229a704 |
|
05-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Create auth master connection if necessary when returning it.
--HG--
branch : HEAD |
7744586e3e0fd60158abfbb03a233d3bd8d6c48b |
|
24-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Changed all settings related structs to const and changed APIs to make it work.
--HG--
branch : HEAD |
88b315f36ba082708ab6f53ea1924c54d9be0aef |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Fixed iterating through all users.
--HG--
branch : HEAD |
542e28b384a6b26695f3e8de38fd5727d06f3333 |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Returning "nice" from userdb again changes process priority.
--HG--
branch : HEAD |
2fb9ae42f9e36388ec6db24188b9108434043fd0 |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Changed APIs to fix reading settings for multiple users.
--HG--
branch : HEAD |
4da8c6cdefabd31262318c32da3c13de1d9ea953 |
|
22-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Merged single and multi mail_storage_service_*() functions.
--HG--
branch : HEAD |
ca24b1d6eb7cead0ee6a4c4609abc890cb7e9f24 |
|
21-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
mail_storage_service_multi*() didn't use userdb lookup results.
--HG--
branch : HEAD |
f38485358ffc04c3466b917770575e29deef24c3 |
|
21-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
mail_chroot can now contain %variables.
--HG--
branch : HEAD |
5d2a93f2dd0392193b790bf94b8c22b0c2feae3a |
|
21-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Don't allow relative home directory paths.
--HG--
branch : HEAD |
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3 |
|
20-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Redesigned how login process passes connections to mail processes and changed related APIs.
Master process is no longer in the middle.
--HG--
branch : HEAD |
9f10cc61ec303351b43e54155c86699ef53cb8be |
|
19-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Changed auth_master_user_lookup() API.
--HG--
branch : HEAD |
e5acc283bf030b0b5c79ca4e52d315c516a299fa |
|
16-Oct-2009 |
Pascal Volk <user@localhost.localdomain.org> |
Log debug-level messages with i_debug().
--HG--
branch : HEAD |
15a772a036234a9065ed0717983ea47384b08f3b |
|
06-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Process permissions weren't properly dropped.
--HG--
branch : HEAD |
18c209a06941ef583b08b173dadfbe4571995bf9 |
|
01-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Crashfix.
--HG--
branch : HEAD |
e0740628f6ca05f4bc79a9d8a90b650f4d38d4d0 |
|
09-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
Removed mail_log_max_lines_per_sec setting and related code.
It's pretty unnecessary and there's really no good way to implement it with
shared log pipes.
--HG--
branch : HEAD |
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75 |
|
31-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Added auth_master_pass_lookup() and changed auth_master_used_lookup() API.
User lookup can now send local/remote IPs and ports to auth process.
--HG--
branch : HEAD |
02a6291366caff79793db35d479e2a062bec2af4 |
|
24-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
mail storage service: Added MAIL_STORAGE_SERVICE_FLAG_NO_CHDIR.
--HG--
branch : HEAD |
c3a636e4c9ae776e0eed06b6d7ad1ccfb6003afd |
|
22-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Mail storage service processes now sleep/die if time moves backwards.
--HG--
branch : HEAD |
2eb0402a28bd0422e0170160808c67d6c7274689 |
|
04-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Avoid wasting data stack usage.
--HG--
branch : HEAD |
573085b4b25b0bbae8d27969df2c91702eefa23e |
|
30-May-2009 |
Timo Sirainen <tss@iki.fi> |
mail_storage_service*() chdired to base_dir instead of user's home dir.
--HG--
branch : HEAD |
c99fe55d4535d839a6ad0735c4719e076a1adb2c |
|
15-May-2009 |
Timo Sirainen <tss@iki.fi> |
Memory leak fixes.
--HG--
branch : HEAD |
fa2433aebcf3fccfa30ca9eed9b1a9166cf92ee2 |
|
15-May-2009 |
Timo Sirainen <tss@iki.fi> |
mail storage multi service: Added support for iterating through all users.
--HG--
branch : HEAD |
1358e2c58ce29231485a5cfa454756d429ad3d2c |
|
12-May-2009 |
Timo Sirainen <tss@iki.fi> |
config handling fixes and improvements. Separated module/service lookups. Added support for per-lip/rip settings.
--HG--
branch : HEAD |
44aac2d461b4cb8e05e8c07f2f209372997a8719 |
|
06-May-2009 |
Timo Sirainen <tss@iki.fi> |
mail processes now specify user/lip/rip in config requests.
--HG--
branch : HEAD |
f934b271c69c7b3e5e3bca23ff9b3ab6187262c2 |
|
29-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
mail-storage-service: Callmaster_service_init_finish().
--HG--
branch : HEAD |
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76 |
|
24-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for v2.0 master rewrite. Several features are still missing.
--HG--
branch : HEAD |
d1fff80640050631b06bfab904a34b2ad24601e8 |
|
21-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Pass remote/local IPs to mail_users. Standalone mail programs now log with mail_log_prefix.
--HG--
branch : HEAD |
47e9fdee55c2074425cf0316f4f64fbbb790301c |
|
17-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
mail-storage-service: Fixes to handling multiple users.
--HG--
branch : HEAD |
367e28a16854ee9f7247b2518f36f5e9163fcc10 |
|
15-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
mail_storage_service_multi*() API change and fixes.
--HG--
branch : HEAD |
812883e7758a86f615b9508ef10df1339123da83 |
|
15-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
mail_storage_service_init*() can now take multiple set_roots.
--HG--
branch : HEAD |
d896b20f276a4fe2b291b238c2ba580c58c8d186 |
|
13-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
mail-storage-service: Don't do userdb lookups to get a missing home if it's not wanted.
--HG--
branch : HEAD |
2eb2cf8eeb763bd5ca9b6848dce32f0303e88ec1 |
|
13-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Added master_service_set().
--HG--
branch : HEAD |
1b04762685272a53643ac2179939537a44c7c044 |
|
12-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
imap and pop3 now use mail-storage-service API.
--HG--
branch : HEAD |
b34fdb68d376d85b4880da4a4bdf67ae726a381b |
|
12-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Assume unknown settings returned by userdb lookup are plugin settings.
--HG--
branch : HEAD |
fa2a11210f20fb8998ed656f75e163191c8047e6 |
|
10-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed problems with getting home directory.
--HG--
branch : HEAD |
3e564425db51f3921ce4de11859777135fdedd15 |
|
10-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Added mail_storage_purge() for dbox. dbox no longer calls it automatically at logout.
--HG--
branch : HEAD |
8d3278a82b964217d95c340ec6f82037cdc59d19 |
|
10-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Added lib-master and mail-storage-service code that makes it easier to build new Dovecot binaries.
Currently only the standalone applications (e.g. deliver) uses this.
--HG--
branch : HEAD |