]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Tue, 26 Jul 2016 17:53:56 +0000 (13:53 -0400)]
auth: Fixed caching to support %{passdb} and %{userdb}
Timo Sirainen [Tue, 26 Jul 2016 17:52:44 +0000 (13:52 -0400)]
auth: Set userdb_lookup flag correctly for blocking userdb lookups.
This caused at least userdb-related logging to log the passdb instead.
Timo Sirainen [Tue, 26 Jul 2016 17:52:20 +0000 (13:52 -0400)]
auth: Code cleanup - use const for struct auth_request.
Timo Sirainen [Mon, 25 Jul 2016 18:09:38 +0000 (14:09 -0400)]
lazy-expunge: If lazy-expunge transaction failed already, stop further expunges.
Most importantly if the lazy-expunge mailbox opening fails, we don't now
retry opening the mailbox for each expunged mail.
Timo Sirainen [Sun, 24 Jul 2016 22:26:50 +0000 (18:26 -0400)]
lib: Potential compiling fix.
STATIC_ARRAY apparently requires that the parameter is named in some gcc
versions? In any case doesn't hurt.
Stephan Bosch [Wed, 13 Jul 2016 07:46:08 +0000 (09:46 +0200)]
Calling i_stream_next_line() on a chain stream would sometimes erroneously use the stream->w_buffer.
It used the wrong check to assess whether the w_buffer is usable.
The chain stream only uses the w_buffer when partial stream data needs to be merged. Otherwise, a parent stream's buffer is used directly. However, this does not mean that w_buffer will be NULL in that case, which is what i_stream_next_line() assumed.
Timo Sirainen [Mon, 11 Jul 2016 17:27:48 +0000 (20:27 +0300)]
lib-dcrypt: Allow flushing ostream multiple times.
The first time flushes the encryption and the following times just flush the
parent stream.
Timo Sirainen [Mon, 11 Jul 2016 17:27:14 +0000 (20:27 +0300)]
lib-dcrypt: Improved error message when istream isn't encrypted.
Timo Sirainen [Tue, 19 Jul 2016 15:28:06 +0000 (18:28 +0300)]
master: Don't leak master socket to child processes.
Timo Sirainen [Sun, 17 Jul 2016 19:51:05 +0000 (13:51 -0600)]
fts: Fixed fts_autoindex when no fts_autoindex_exclude settings existed.
Timo Sirainen [Sat, 16 Jul 2016 16:30:39 +0000 (11:30 -0500)]
lib-dict: Added DICT_COMMIT_RET_WRITE_UNCERTAIN
Timo Sirainen [Sat, 16 Jul 2016 16:23:52 +0000 (11:23 -0500)]
lib-dict: Added enum dict_commit_ret.
Timo Sirainen [Sat, 16 Jul 2016 14:31:04 +0000 (09:31 -0500)]
lib-sql: Added error_type to commit callback.
Timo Sirainen [Fri, 15 Jul 2016 21:40:31 +0000 (16:40 -0500)]
cassandra: Support returning SQL_RESULT_ERROR_TYPE_WRITE_UNCERTAIN
Timo Sirainen [Fri, 15 Jul 2016 21:40:05 +0000 (16:40 -0500)]
lib-sql: Added sql_result_get_error_type().
For now the only special error type is SQL_RESULT_ERROR_TYPE_WRITE_UNCERTAIN.
Aki Tuomi [Fri, 15 Jul 2016 08:31:25 +0000 (11:31 +0300)]
auth: Remove i_assert for credentials scheme
Stephan Bosch [Thu, 14 Jul 2016 18:53:46 +0000 (20:53 +0200)]
Added LIBDOVECOT_PUSH_NOTIFICATION_INCLUDE to dovecot.m4.
Timo Sirainen [Thu, 14 Jul 2016 21:16:52 +0000 (16:16 -0500)]
dict: Fixed crash on iteration handling.
Timo Sirainen [Thu, 14 Jul 2016 12:22:04 +0000 (07:22 -0500)]
dict-client: Improved logging for slow queries.
Especially commits now say what the first query within the commit was.
Timo Sirainen [Thu, 14 Jul 2016 11:53:54 +0000 (06:53 -0500)]
doveadm fetch: Fixed body.snippet.
Timo Sirainen [Wed, 13 Jul 2016 20:10:57 +0000 (15:10 -0500)]
dbox: Initialize pop3-uidl header on INBOX creation.
This way we don't add any UIDLs to dovecot.index.cache on the first POP3
UIDL access. We'll assume that pop3-uidl header is updated whenever any
backend UIDLs are added, which should happen nowadays.
Timo Sirainen [Wed, 13 Jul 2016 19:07:02 +0000 (14:07 -0500)]
lib-storage: Initialize pop3-uidl header also when no backend UIDLs exist.
The first time POP3 UIDL command is used, set the header even when there are
no backend UIDLs to prevent any further UIDL caching.
Aki Tuomi [Mon, 11 Jul 2016 11:56:41 +0000 (14:56 +0300)]
auth: Fail request if last passdb is noauthenticate
Aki Tuomi [Mon, 11 Jul 2016 11:56:25 +0000 (14:56 +0300)]
gssapi: Add missing PASSDB_RESULT_NEXT clause
Timo Sirainen [Mon, 11 Jul 2016 13:13:28 +0000 (16:13 +0300)]
lib-fs: Added fs_metadata_init_or_clear() helper
Aki Tuomi [Mon, 11 Jul 2016 11:18:36 +0000 (14:18 +0300)]
passdb: Skip credentials handling for noauthenticate
Aki Tuomi [Thu, 7 Jul 2016 05:59:18 +0000 (08:59 +0300)]
lib-dovecot: Turn on RELRO
Timo Sirainen [Mon, 11 Jul 2016 08:28:10 +0000 (11:28 +0300)]
lib-storage: Fixed crash on subscription listing if subscription refresh fails.
Aki Tuomi [Sat, 9 Jul 2016 17:11:45 +0000 (20:11 +0300)]
auth: Skip authentication with noauthenticate
Timo Sirainen [Mon, 11 Jul 2016 08:55:34 +0000 (11:55 +0300)]
mdbox: Fixed crash when saving POP3 UIDLs to a non-empty mailbox.
Fixes assert:
Panic: file mdbox-save.c: line 337: unreached
Timo Sirainen [Mon, 11 Jul 2016 08:40:41 +0000 (11:40 +0300)]
pop3c: Fixed crash in syncing when local indexes existed but UIDL wasn't cached.
Timo Sirainen [Mon, 11 Jul 2016 07:22:06 +0000 (10:22 +0300)]
lmtp: Don't send double-DISCONNECT to anvil.
Happened with lmtp_user_concurrency_limit > 0. Fixes errors like:
Error: connect limit: disconnection for unknown pid 123 + ident lmtp/username
Timo Sirainen [Wed, 6 Jul 2016 20:41:18 +0000 (23:41 +0300)]
Compiler warning fix
Aki Tuomi [Wed, 6 Jul 2016 12:11:54 +0000 (15:11 +0300)]
m4: Include BINARY_*
Aki Tuomi [Tue, 19 Apr 2016 13:02:38 +0000 (16:02 +0300)]
Add PIE and RELRO to binaries
Aki Tuomi [Tue, 19 Apr 2016 11:52:56 +0000 (14:52 +0300)]
configure: Check for hardening flags
Timo Sirainen [Fri, 1 Jul 2016 00:08:31 +0000 (03:08 +0300)]
global: Removed redundant corking in ostream flush callbacks.
Timo Sirainen [Fri, 1 Jul 2016 00:03:02 +0000 (03:03 +0300)]
lib: ostream-file now automatically corks during flush callback.
Timo Sirainen [Tue, 5 Jul 2016 15:15:55 +0000 (18:15 +0300)]
fs-sis*: Use fs_wrapper_*() wherever possible
Timo Sirainen [Tue, 5 Jul 2016 15:12:33 +0000 (18:12 +0300)]
fs-sis*: Minor error handling function cleanups.
We don't really need to go to the parent fs, so just use what is easiest.
Timo Sirainen [Tue, 5 Jul 2016 15:03:36 +0000 (18:03 +0300)]
fs-sis*: Removed unnecessary error copying.
It was probably needed in the beginning, but nowadays the parent-most fs
keeps the error. There's no need to copy it around.
Timo Sirainen [Tue, 5 Jul 2016 14:59:08 +0000 (17:59 +0300)]
fs-metawrap: Use fs_wrapper_*() wherever possible
Timo Sirainen [Tue, 5 Jul 2016 14:55:12 +0000 (17:55 +0300)]
fs-compress: Use fs_wrapper_*() wherever possible
Timo Sirainen [Tue, 5 Jul 2016 14:52:00 +0000 (17:52 +0300)]
lib-fs: Implement all lib-fs functions as wrappers to parent stream.
Timo Sirainen [Wed, 6 Jul 2016 10:15:22 +0000 (13:15 +0300)]
lib-dcrypt: istream-decrypt now differentiates between temporary errors and corruption.
Timo Sirainen [Wed, 6 Jul 2016 10:11:50 +0000 (13:11 +0300)]
lib-dcrypt: Set stream_errno on istream-decrypt read failures.
Fixes assert-crashes that would happen otherwise.
Timo Sirainen [Wed, 6 Jul 2016 10:31:12 +0000 (13:31 +0300)]
lib: Updated istream's stream_errno comments.
Timo Sirainen [Wed, 6 Jul 2016 10:24:03 +0000 (13:24 +0300)]
lib-compression: istream-zlib/lzma now differentiates between temporary errors and corruption.
Timo Sirainen [Tue, 5 Jul 2016 17:58:29 +0000 (20:58 +0300)]
lib-storage: Clarify that mail_namespace_find_inbox() never returns NULL.
If namespaces==NULL, this function isn't even supposed to be called.
Aki Tuomi [Tue, 5 Jul 2016 11:41:41 +0000 (14:41 +0300)]
passdb-static: Support password scheme
This allows password argument to provide scheme instead of
defaulting to plain. If no scheme is provided, plain is
defaulted.
Aki Tuomi [Mon, 4 Jul 2016 15:25:23 +0000 (18:25 +0300)]
doveadm-pw: Use debug value when loading modules
Aki Tuomi [Mon, 4 Jul 2016 15:06:56 +0000 (18:06 +0300)]
configure: Fix static array check
Martti Rannanjärvi [Mon, 4 Jul 2016 08:57:43 +0000 (11:57 +0300)]
lib-dcrypt: tell in error_r that RSA key has to be converted to pkey
Timo Sirainen [Mon, 4 Jul 2016 12:05:00 +0000 (15:05 +0300)]
master: Add master socket's io listener later.
Most importantly this fixes startup failure with kqueue:
Panic: kevent(EV_ADD, READ, 56) failed: Bad file descriptor
kqueue doesn't survive a fork(), so this change delays its creation until
after fork().
Timo Sirainen [Mon, 4 Jul 2016 11:44:40 +0000 (14:44 +0300)]
master: Make sure stdout isn't closed on startup failures.
closing master_fd might have tried to close(0) since it wasn't initialized
to -1.
Timo Sirainen [Fri, 1 Jul 2016 14:42:29 +0000 (17:42 +0300)]
dict-client: Attempt to connect to dict socket for 1 second before failing.
Timo Sirainen [Fri, 1 Jul 2016 13:37:09 +0000 (16:37 +0300)]
lib-http: Clarify response message when retries have happened.
"1 attempts" sounds like 1 attempt in total, while this was actually the
second attempt.
Timo Sirainen [Fri, 1 Jul 2016 13:36:31 +0000 (16:36 +0300)]
dict-client: Make sure query's start_time is up-to-date.
Timo Sirainen [Fri, 1 Jul 2016 13:34:26 +0000 (16:34 +0300)]
dict-client: Don't log slow background async commit/iteration replies.
If a caller has already finished iteration, or does async commit without a
callback, it means that it started the query without caring when it
finishes. The caller may already have been doing blocking work while
waiting for the dict reply. We don't want to log a warning, because it
could be completely wrong.
Timo Sirainen [Fri, 1 Jul 2016 13:31:52 +0000 (16:31 +0300)]
cassandra: Added debug_queries connect setting.
This logs all the queries and how long they took, without having to log all
the other Cassandra library debug messages.
Timo Sirainen [Fri, 1 Jul 2016 13:31:19 +0000 (16:31 +0300)]
cassandra: If query fails, include how long the reply took in the error message.
Timo Sirainen [Fri, 1 Jul 2016 13:30:06 +0000 (16:30 +0300)]
cassandra: Warn if queries take too long (default 5 secs)
Can be changed with e.g. "connect = ... warn_timeout=30s"
Timo Sirainen [Fri, 1 Jul 2016 13:27:30 +0000 (16:27 +0300)]
LAYOUT=index: Make sure error is preserved if created mailbox can't be added to list index.
mailbox_delete() could overwrite the error.
Aki Tuomi [Fri, 1 Jul 2016 12:13:55 +0000 (15:13 +0300)]
man: Provide usage for doveadm mailbox update
Timo Sirainen [Fri, 1 Jul 2016 09:23:59 +0000 (12:23 +0300)]
lib-storage: Fixed mailbox_delete_empty() error message when mails exist
Timo Sirainen [Fri, 1 Jul 2016 08:56:46 +0000 (11:56 +0300)]
dict-client: When skipping connect() due to earlier failure, preserve the original error.
Timo Sirainen [Fri, 1 Jul 2016 08:41:51 +0000 (11:41 +0300)]
dict-client: If commit fails to send BEGIN, don't try sending anything else.
Fixes memory leak and also fixes overwriting the original error message.
Timo Sirainen [Fri, 1 Jul 2016 08:12:03 +0000 (11:12 +0300)]
lib-storage: Autoexpunging should ignore nonexistent mailboxes.
The check was done too late after recent changes.
Timo Sirainen [Fri, 1 Jul 2016 08:07:47 +0000 (11:07 +0300)]
doveadm mailbox update: Avoid assert-crash on errors.
Timo Sirainen [Thu, 30 Jun 2016 23:49:32 +0000 (02:49 +0300)]
login-proxy: cork+uncork in flush callbacks
Potentially reduces latency at the end of a larger data transfer.
Timo Sirainen [Thu, 30 Jun 2016 22:14:34 +0000 (01:14 +0300)]
lib-dcrypt: Removed dead code.
Timo Sirainen [Thu, 30 Jun 2016 22:11:15 +0000 (01:11 +0300)]
lib: Fix to compiling STATIC_ARRAY in C++ code
Timo Sirainen [Thu, 30 Jun 2016 17:24:34 +0000 (20:24 +0300)]
configure: Check if C99 "static" keyword is supported for array sizes.
Stephan Bosch [Thu, 30 Jun 2016 20:35:59 +0000 (22:35 +0200)]
lib-http: client: Fixed potential segfault problem in http_client_connection_server_close().
Used wrong variable: it is set to NULL by http_client_request_unref() before it is used.
Problem found by Coverity.
Timo Sirainen [Thu, 30 Jun 2016 15:13:52 +0000 (18:13 +0300)]
lib-dcrypt: Compiling fix
Timo Sirainen [Thu, 30 Jun 2016 13:21:40 +0000 (16:21 +0300)]
imap: Fixed reading LDA settings from config.
Timo Sirainen [Thu, 30 Jun 2016 11:08:24 +0000 (14:08 +0300)]
master: Stopping didn't close dead-pipes early enough.
This caused stopping to be too slow. Broken by
0153cf542 .
Timo Sirainen [Thu, 30 Jun 2016 09:10:29 +0000 (12:10 +0300)]
lmtp: Removed assert, which triggers if anvil connect fails.
Timo Sirainen [Thu, 30 Jun 2016 09:08:19 +0000 (12:08 +0300)]
lmtp: Fixed pipelining of commands after RCPT TO
We should stop while waiting for anvil reply. Broken by
ced943b0a .
Aki Tuomi [Thu, 30 Jun 2016 08:57:19 +0000 (11:57 +0300)]
auth-request: Whitespace fix
Aki Tuomi [Thu, 30 Jun 2016 07:03:18 +0000 (10:03 +0300)]
auth-request: Correctly allocate mech_password and credentials_scheme
Aki Tuomi [Thu, 30 Jun 2016 06:29:26 +0000 (09:29 +0300)]
dcrypt: Free keys in test-stream
Aki Tuomi [Thu, 30 Jun 2016 06:06:51 +0000 (09:06 +0300)]
dcrypt: Add tests for 0 and 1 byte data
Aki Tuomi [Thu, 30 Jun 2016 06:06:33 +0000 (09:06 +0300)]
dcrypt: Fix bugs in 0 and 1 byte payload files
Timo Sirainen [Wed, 29 Jun 2016 22:27:37 +0000 (01:27 +0300)]
lib-ssl-iostream: Compiler fix to previous commit
Timo Sirainen [Wed, 29 Jun 2016 22:15:38 +0000 (01:15 +0300)]
lib-ssl-iostream: Disable "CRYPTO_set_mem_functions() was called too late" for now
It always happens at least with Ubuntu 16.04.
Timo Sirainen [Wed, 29 Jun 2016 20:56:18 +0000 (23:56 +0300)]
auth: delay_until can optionally now have +<max random secs> suffix.
Timo Sirainen [Wed, 29 Jun 2016 20:54:46 +0000 (23:54 +0300)]
auth: Fixed checking if delay_until is too large
Timo Sirainen [Wed, 29 Jun 2016 19:29:20 +0000 (22:29 +0300)]
dsync: When full resync is wanted in a stateful sync, output empty state.
This continues
3d49dc64d , which didn't actually work because
brain->require_full_resync was either cleared earlier or it was never
even set in this brain.
Timo Sirainen [Wed, 29 Jun 2016 18:09:48 +0000 (21:09 +0300)]
doveadm: Read settings with service=doveadm
This was done for mail commands while initializing the mail user, but
other commands weren't using it. This meant that doveadm was using only
global settings instead of protocol doveadm { .. } settings for everything
except mail commands.
Timo Sirainen [Wed, 29 Jun 2016 17:44:37 +0000 (20:44 +0300)]
doveadm user: Avoid potential crashes when running via doveadm-server
Timo Sirainen [Wed, 29 Jun 2016 16:22:51 +0000 (19:22 +0300)]
dict-sql: Treat NULL value the same as "key not found"
Timo Sirainen [Tue, 28 Jun 2016 20:12:03 +0000 (23:12 +0300)]
doveadm: Added "service stop" command to stop specific services.
Timo Sirainen [Sun, 26 Jun 2016 20:04:00 +0000 (23:04 +0300)]
master: Allow stopping specific services via master socket.
Timo Sirainen [Tue, 28 Jun 2016 20:38:48 +0000 (23:38 +0300)]
master: Added service_monitor_stop_close() to stops service and close its listeners.
Timo Sirainen [Tue, 28 Jun 2016 20:38:11 +0000 (23:38 +0300)]
master: Added support for stopping specific services.
We need to have a per-service fd for detecting a dead master.
Timo Sirainen [Wed, 29 Jun 2016 16:12:58 +0000 (19:12 +0300)]
lib-storage: Fixed search arg initialization tracking for INTHREAD
Timo Sirainen [Wed, 29 Jun 2016 15:49:57 +0000 (18:49 +0300)]
virtual: Fixed error handling when matching mailboxes by metadata.
Timo Sirainen [Wed, 29 Jun 2016 15:34:07 +0000 (18:34 +0300)]
maildir: Improved "Filename keeps changing" error handling/logging
Timo Sirainen [Wed, 29 Jun 2016 15:33:48 +0000 (18:33 +0300)]
maildir: Code comment update