]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Wed, 15 Mar 2017 22:15:10 +0000 (00:15 +0200)]
auth: oauth2 - Make sure db_oauth2_request.req is set to NULL when it gets freed.
Doesn't fix anything, but makes it clearer that req->req must not be
aborted anymore after this stage, because it gets freed anyway.
Timo Sirainen [Wed, 15 Mar 2017 22:13:08 +0000 (00:13 +0200)]
auth: oauth2 - Fix aborting auth requests on deinit.
The auth_request needs to be finished by calling the callback.
Aki Tuomi [Mon, 6 Mar 2017 12:59:46 +0000 (14:59 +0200)]
auth: Do not double-expand key in passdb dict when authenticating
Broken by
79042f8c
Timo Sirainen [Thu, 9 Mar 2017 16:32:21 +0000 (11:32 -0500)]
*-login: Remove unused client.proxy_state
Timo Sirainen [Thu, 9 Mar 2017 15:48:33 +0000 (10:48 -0500)]
pop3-login: Remove usage of client.common.proxy_state
Timo Sirainen [Thu, 9 Mar 2017 15:46:36 +0000 (10:46 -0500)]
pop3-login: Log proxy state as human-readable string.
Timo Sirainen [Thu, 9 Mar 2017 15:41:52 +0000 (10:41 -0500)]
imap-login: Log proxy state as human-readable string.
Separate sent/received state and log them as strings.
Timo Sirainen [Thu, 9 Mar 2017 15:31:39 +0000 (10:31 -0500)]
*-login: Add client.proxy_get_state() for providing human-readable proxy state
If not implemented, it defaults to the old method of returning proxy_state
number.
Timo Sirainen [Tue, 7 Mar 2017 19:36:45 +0000 (14:36 -0500)]
pop3: Set process title before syncing mailbox.
The syncing could be taking a long time, so it's useful to have the username
in the process title during that.
Timo Sirainen [Wed, 8 Mar 2017 15:07:37 +0000 (10:07 -0500)]
imap: If unhibernation fails due to a mailbox error, log the mailbox name.
Timo Sirainen [Wed, 8 Mar 2017 14:28:14 +0000 (09:28 -0500)]
imap: When disconnecting due to FETCH failure, include "FETCH" in the log message.
Aki Tuomi [Tue, 7 Mar 2017 16:10:57 +0000 (18:10 +0200)]
lib-sasl: Fix xoauth2 data format
Authentication data was missing user=
Aki Tuomi [Tue, 7 Mar 2017 08:09:20 +0000 (10:09 +0200)]
db-oauth2: Make sure request is removed only once
Callback might be called twice.
Aki Tuomi [Tue, 7 Mar 2017 08:08:08 +0000 (10:08 +0200)]
lib-oauth2: Use http client destroy callback
Avoids freeing memory early.
Fixes signal 11 crash in auth
Aki Tuomi [Mon, 6 Mar 2017 11:16:12 +0000 (13:16 +0200)]
auth: Apply skips to first passdb
This is required to apply filters to first
passdb, so that mechanism filters can be
applied.
Stephan Bosch [Sun, 5 Mar 2017 18:45:04 +0000 (19:45 +0100)]
lib-http: test-http-server-errors: Fixed logically dead code.
Problem reported by Coverity.
Stephan Bosch [Thu, 2 Mar 2017 22:12:45 +0000 (23:12 +0100)]
lib-lda: smtp-client: Fixed memory leak of the error message string.
Stephan Bosch [Thu, 2 Mar 2017 22:51:45 +0000 (23:51 +0100)]
lib-lda: smtp-client: Fixed cleanup of LMTP client at end of transaction.
It was not deinitialized, causing a memory leak.
Stephan Bosch [Wed, 1 Mar 2017 23:42:13 +0000 (00:42 +0100)]
lib-smtp: lmtp-client: Fixed bug in timeout handling.
The timeout was erroneously stopped when lmtp_client_send() was invoked before a connection was established.
Once the connection finally got established, the timeout was removed.
This would cause the client to wait indefinitely.
Stephan Bosch [Wed, 1 Mar 2017 23:03:50 +0000 (00:03 +0100)]
lib-lda: smtp-client: Make sure only the first error determines the tempfail status.
The client is supposed to stop running the moment the first error occurs. However, there is a (very unlikely) possiblity that the encapsulated LMTP client issues both an RCPT and DATA error callback in sequence.
In that case, the second callback should not override the tempfail status of the first (the second likely is a tempfail).
If the server disconnects right after failing the last of at least two recipients, the lmtp-client would issue a DATA callback with a disconnection error.
The disconnect error would set the client->tempfail flag, which caused smtp_client_deinit*() to always return -1 in this scenario.
Aki Tuomi [Fri, 3 Mar 2017 06:31:50 +0000 (08:31 +0200)]
lib-oauth2: Add missing content-type header
Timo Sirainen [Thu, 2 Mar 2017 16:32:15 +0000 (18:32 +0200)]
example-config: Update deliver_log_format comment
Aki Tuomi [Thu, 2 Mar 2017 07:15:13 +0000 (09:15 +0200)]
lib-ssl-iostream: Ensure verify_remote_cert is true
Forgotten in
38424b8081a75be3ef93729fed4d30dbafca5885
Timo Sirainen [Wed, 1 Mar 2017 11:12:41 +0000 (13:12 +0200)]
imap-hibernate: Avoid using casts
Martti Rannanjärvi [Wed, 1 Mar 2017 10:29:17 +0000 (12:29 +0200)]
fts: Don't add NULL content disposition or type to HTTP header
Aki Tuomi [Wed, 1 Mar 2017 07:15:29 +0000 (09:15 +0200)]
trash: Read settings after namespaces are loaded
Fixes Panic: file mail-namespace.c: line 709 (mail_namespace_find): assertion failed: (ns != NULL)
Timo Sirainen [Mon, 27 Feb 2017 14:23:09 +0000 (16:23 +0200)]
master: Try to listen on master socket even if all services couldn't be listened to.
This could happen during a settings reload.
Timo Sirainen [Mon, 27 Feb 2017 14:22:52 +0000 (16:22 +0200)]
master: Add missing error logging for master socket listening failure.
Timo Sirainen [Mon, 27 Feb 2017 14:22:08 +0000 (16:22 +0200)]
master: Don't crash if master socket couldn't be re-opened after settings reload.
Aki Tuomi [Thu, 23 Feb 2017 09:47:20 +0000 (11:47 +0200)]
imap-hibernate: Support userdb in var_expand
Aki Tuomi [Mon, 27 Feb 2017 18:40:43 +0000 (20:40 +0200)]
doveadm: Add missing newline to proxy kick output
Aki Tuomi [Mon, 27 Feb 2017 18:38:43 +0000 (20:38 +0200)]
doveadm: Ensure -- is added to command line before positional arguments for non-mails commands as well
Was forgotten from
967efe37d1f10a28c0a086cc5919d4ce8917bed8
Aki Tuomi [Mon, 27 Feb 2017 17:12:32 +0000 (19:12 +0200)]
doveadm: Ensure -- is added to command line before positional arguments
This prevents parser from choking on dash.
Aki Tuomi [Mon, 27 Feb 2017 17:04:55 +0000 (19:04 +0200)]
doveadm: Fix allow-empty-mailbox-name handling
It was supposed to be handled for metadata commands only.
Broken in
26c41874cf6019c3e39f0ed630b2a07a92b2635f
Timo Sirainen [Mon, 27 Feb 2017 12:21:48 +0000 (14:21 +0200)]
doveadm move: Use mailbox_move() instead of copy+expunge
This allows for some optimizations to be done.
Martti Rannanjärvi [Mon, 27 Feb 2017 07:39:06 +0000 (09:39 +0200)]
master: add cassandra to printed build options
Timo Sirainen [Sun, 26 Feb 2017 13:37:36 +0000 (15:37 +0200)]
lib: Fix t_strf*time() unit tests
Timezone isn't part of the standard struct tm, so %z doesn't necessarily
expand as expected outside Linux.
Timo Sirainen [Sun, 26 Feb 2017 13:21:13 +0000 (15:21 +0200)]
dsync: Fix syncing attributes with large values.
This mainly meant that large Sieve scripts weren't synced properly, because
their last_change field was never deserialized, so it was set to 0.
Timo Sirainen [Sun, 26 Feb 2017 12:32:44 +0000 (14:32 +0200)]
lazy-expunge: Use mailbox_move() instead of mailbox_copy()
This allows some optimizations to be performed that are only possible when
moving messages.
It's slightly strange now that mail_expunge() is triggered twice for the
same source mail, but lazy_expunge plugin is called very early so most
plugins won't see it called twice. Currently only acl plugin sees it, and
it doesn't care.
Timo Sirainen [Sat, 25 Feb 2017 19:47:01 +0000 (21:47 +0200)]
lib-dcrypt: Replace #if OPENSSL_VERSION_NUMBER with more explicit checks
Timo Sirainen [Sat, 25 Feb 2017 19:41:03 +0000 (21:41 +0200)]
lib-dcrypt: Move most of the OpenSSL #if handling to macros
This avoids #if calls being littered all over the file.
This change can cause HMAC_CTX_free(NULL) to be called, but that seems to
work fine without crashing.
Timo Sirainen [Fri, 24 Feb 2017 10:27:02 +0000 (12:27 +0200)]
mail-filter: Add missing error handling in ostream-ext-filter
Timo Sirainen [Fri, 24 Feb 2017 10:17:21 +0000 (12:17 +0200)]
auth: Removed dead code from oauth2 mechanism
Timo Sirainen [Fri, 24 Feb 2017 10:13:36 +0000 (12:13 +0200)]
acl plugin: Fix Coverity warning
Just switch the MALLOC_ADD() parameters, so that arithmetic doesn't get
inside a sizeof().
Stephan Bosch [Thu, 23 Feb 2017 18:38:31 +0000 (19:38 +0100)]
lib-http: client: Fixed i_unreached() failure occurring when a host's list of IPs changes while a connection is still pending.
In that case, the IP of the pending connection may no longer be associated with that host.
If the IP was not found anymore, the i_unreached() error occurred.
Aki Tuomi [Thu, 23 Feb 2017 09:29:17 +0000 (11:29 +0200)]
auth: Export oauth2 pass_attrs to passdb reply
Timo Sirainen [Thu, 23 Feb 2017 10:41:26 +0000 (12:41 +0200)]
pop3c: Fix compiling due to typo in previous commit
Aki Tuomi [Mon, 20 Feb 2017 15:49:34 +0000 (17:49 +0200)]
global: Fix ssl_set usage
Remove verify_remote_cert, as it's always TRUE now.
Set allow_invalid_cert to TRUE if verification is
not required.
Aki Tuomi [Mon, 20 Feb 2017 07:32:15 +0000 (09:32 +0200)]
lib-ssl-iostream: Fix ambiguity with SSL settings
- lib-ssl-iostream as client: Use only allow_invalid_cert. If it's not set, verify the server cert.
- lib-ssl-iostream as server: If verify_client_cert=FALSE, don't ask for the client cert. Otherwise, ask for client cert but still allow it if allow_invalid_cert=TRUE.
Timo Sirainen [Wed, 22 Feb 2017 23:24:43 +0000 (01:24 +0200)]
virtual: Include virtual mailbox name in "Mailbox ID unexpectedly lost" error
Timo Sirainen [Wed, 22 Feb 2017 13:29:34 +0000 (15:29 +0200)]
lib-storage: Allow mail_storage_set_error() to use existing error_string
Fixes some code that may be attempting to copy an error from one storage to
another, but actually ends up trying to copy within the same storage.
Timo Sirainen [Wed, 22 Feb 2017 18:05:16 +0000 (20:05 +0200)]
maildir: Fix checking vsize caching decision in "is this pop3 user?"
If vsize extension is used, it's practically the same as if vsize's caching
decision was YES.
Timo Sirainen [Wed, 22 Feb 2017 18:04:28 +0000 (20:04 +0200)]
pop3c: Remove unnecessarily duplicated code setting vsize to cache
This is important now that the vsize can be added also to index's vsize
extension.
Timo Sirainen [Wed, 22 Feb 2017 18:03:43 +0000 (20:03 +0200)]
pop3c: Prefetched streams didn't call istream_opened() or set virtual_size
Timo Sirainen [Tue, 1 Nov 2016 16:43:57 +0000 (18:43 +0200)]
lib-mail: istream-attachment-connector now allows msg_size=-1 for "unknown".
Timo Sirainen [Tue, 1 Nov 2016 16:42:31 +0000 (18:42 +0200)]
lib-mail: Make sure istream-attachment-connector detects wrong mail size.
Timo Sirainen [Tue, 1 Nov 2016 16:35:48 +0000 (18:35 +0200)]
lib: Added i_stream_create_min_sized*()
Timo Sirainen [Tue, 1 Nov 2016 12:47:05 +0000 (14:47 +0200)]
lib: Added i_stream_create_sized_range()
This is just a small wrapper to i_stream_create_sized() to specify stream's
start offset.
Timo Sirainen [Wed, 22 Feb 2017 15:45:34 +0000 (17:45 +0200)]
trash plugin: Use correct hook for overriding mail_user vfuncs
This was always wrong to do, and it crashes after
f32382d2da479a4371e08c443679528db37ea988
Timo Sirainen [Wed, 22 Feb 2017 15:21:56 +0000 (17:21 +0200)]
expire plugin: Use correct hook for overriding mail_user vfuncs
This was always wrong to do, and it crashes after
f32382d2da479a4371e08c443679528db37ea988
Timo Sirainen [Wed, 22 Feb 2017 13:32:19 +0000 (15:32 +0200)]
lazy-expunge: Fix error handling for GUID lookups
If the mail is already expunged, the error should be ignored.
In other situations the original error string should be preserved as
part of the logged error message.
Timo Sirainen [Wed, 22 Feb 2017 14:09:07 +0000 (16:09 +0200)]
lib-storage: Add missing service_user ref when creating shared mailbox's user.
Was forgotten from
d1bf4ae66b8bf3b9e28df1823d6d4adda2b923b6
Fixes:
Panic: file mail-storage-service.c: line 1513 (mail_storage_service_user_unref): assertion failed: (user->refcount > 0)
Timo Sirainen [Wed, 22 Feb 2017 11:30:18 +0000 (13:30 +0200)]
lib-storage: Removed mail_storage_service_user_free() backwards compatibility
Used a separate commit so the macro can be left for v2.2 tree.
Timo Sirainen [Wed, 22 Feb 2017 11:30:00 +0000 (13:30 +0200)]
global: Replace mail_storage_service_user_free() with _unref()
Timo Sirainen [Wed, 22 Feb 2017 11:28:43 +0000 (13:28 +0200)]
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.
Timo Sirainen [Wed, 22 Feb 2017 11:02:27 +0000 (13:02 +0200)]
quota: Don't log "Internal quota calculation error"
It's not very informative and we can't give a better error message without
changing the APIs. The real error should have been logged already anyway,
so this is just duplication of an error. I think originally this was added
because some backend forgot to log an error.
Timo Sirainen [Wed, 22 Feb 2017 08:44:00 +0000 (10:44 +0200)]
lib-lda: Fix pigeonhole testsuite to not crash
Timo Sirainen [Tue, 21 Feb 2017 20:34:14 +0000 (22:34 +0200)]
lib: Fix again test-utc-mktime with 32bit time_t
Timo Sirainen [Tue, 21 Feb 2017 10:38:10 +0000 (12:38 +0200)]
lib-lda: Fix delivery logging when Sieve performs multiple actions
Previous code assumed that it would work like:
- save/copy
- transaction commit
- mail_deliver_ctx_get_log_var_expand_table()
- repeat for transaction 2
While it really works:
- transaction 1: save/copy
- transaction 2: save/copy
- transaction 1: commit
- mail_deliver_ctx_get_log_var_expand_table()
- transaction 2: commit
- mail_deliver_ctx_get_log_var_expand_table()
So the cache needs to be stored per transaction. This code still wouldn't
work correctly if Sieve saved mails multiple times within the same
transaction, but that doesn't happen (at least currently).
Timo Sirainen [Tue, 21 Feb 2017 10:36:52 +0000 (12:36 +0200)]
lib-lda: Refactor - mail_deliver_log_update_cache() doesn't need entire deliver_ctx
Timo Sirainen [Tue, 21 Feb 2017 10:34:59 +0000 (12:34 +0200)]
lib-lda: Refactor - Add struct mail_deliver_mailbox
Timo Sirainen [Tue, 21 Feb 2017 17:55:48 +0000 (19:55 +0200)]
lib: Fix test-utc-mktime with 32bit time_t
Martti Rannanjärvi [Tue, 21 Feb 2017 14:25:48 +0000 (16:25 +0200)]
lib-mail: Place input/output of message-date tests in one struct
Define both input and output of a message date test case in a single
struct so it is easier to follow and less error prone. Also add some
leap second tests.
Martti Rannanjärvi [Tue, 21 Feb 2017 15:00:14 +0000 (17:00 +0200)]
lib: Place input/output of utc_mktime tests in one struct
Define both input and output of a utc_mktime test case in a single
struct so it is easier to follow and less error prone.
Martti Rannanjärvi [Tue, 21 Feb 2017 14:25:25 +0000 (16:25 +0200)]
lib: Accept leap second in utc_mktime
Accept leap second at any time in utc_mktime since utc_mktime is being
used before applying the timezone offset everywhere.
Timo Sirainen [Tue, 21 Feb 2017 12:42:01 +0000 (14:42 +0200)]
imap: Fix error message in failed FETCH's NO reply.
This was broken only with the new imap_fetch_failure = no-after setting.
Timo Sirainen [Tue, 21 Feb 2017 13:44:09 +0000 (15:44 +0200)]
imapc: Error handling wasn't setting storage error everywhere.
This would have used the previous error, which might not have been correct.
Timo Sirainen [Tue, 21 Feb 2017 12:20:22 +0000 (14:20 +0200)]
lib-storage: Fix mail.access_type for search prefetches
Timo Sirainen [Tue, 21 Feb 2017 11:48:36 +0000 (13:48 +0200)]
lmtp: Fix lmtp_user_concurrency_limit when userdb changes the username
Anvil LOOKUP was done with the original username, while CONNECT/DISCONNECT
was done with the changed username. So LOOKUP always thought that there
were zero concurrent sessions for the user.
Timo Sirainen [Tue, 21 Feb 2017 09:55:55 +0000 (11:55 +0200)]
cassandra: Don't use i_error() from non-main thread
It will only cause crashes. This was done only if the internal
communication pipe couldn't be written to, which was pretty unlikely
to happen.
Timo Sirainen [Tue, 21 Feb 2017 11:08:59 +0000 (13:08 +0200)]
lib-storage: Fix assert-crash on corrupted dovecot.list.index with name_id==0
Fixes:
Panic: file hash.c: line 213 (hash_table_insert_node): assertion failed: (key != NULL)
Timo Sirainen [Mon, 20 Feb 2017 17:35:45 +0000 (19:35 +0200)]
lib-storage: Add asserts to make sure lookup_abort is being used correctly.
Timo Sirainen [Mon, 20 Feb 2017 17:34:25 +0000 (19:34 +0200)]
lib-storage, pop3-migration: Reset lookup_abort before continuing to search
This doesn't really fix anything right now, but it'll allow adding the
asserts in the following commit.
Aki Tuomi [Tue, 21 Feb 2017 09:52:59 +0000 (11:52 +0200)]
auth: Make sure tokeninfo or introspection URL is given
Aki Tuomi [Tue, 21 Feb 2017 09:21:19 +0000 (11:21 +0200)]
auth: Make tokeninfo optional
It is not supported by all OAuth2 solutions
Aki Tuomi [Tue, 21 Feb 2017 09:18:37 +0000 (11:18 +0200)]
lib-oauth2: Support basic authorization
Aki Tuomi [Mon, 20 Feb 2017 13:47:33 +0000 (15:47 +0200)]
lib-index: Unconstifty pointer array
clang complained about the extra const.
Aki Tuomi [Mon, 20 Feb 2017 13:35:02 +0000 (15:35 +0200)]
lib-index: Add missing initialization for chained hooks
Aki Tuomi [Mon, 20 Feb 2017 13:28:36 +0000 (15:28 +0200)]
lib,lib-storage: Move hook building code to lib
This allows it to be reused elsewhere
Aki Tuomi [Mon, 20 Feb 2017 12:50:39 +0000 (14:50 +0200)]
lib-lda: Do not involve mail-deliver plugin unnecessarely
If no mail delivery by LDA/LMTP is being done, do not
hook into the process.
Fixes signal 11 crash with lazy-expunge.
Aki Tuomi [Mon, 20 Feb 2017 12:34:25 +0000 (14:34 +0200)]
lib-index: Allow multiple hooks for transaction creation
Timo Sirainen [Mon, 20 Feb 2017 12:26:41 +0000 (14:26 +0200)]
lib-compression: Fix test-compression to build without zlib
Aki Tuomi [Mon, 20 Feb 2017 07:18:45 +0000 (09:18 +0200)]
pop3c: Add no pipelining pop3c feature
This should help with certain broken pop3c
servers that advertise that they support pipelining
but they really don't.
Stephan Bosch [Tue, 24 May 2016 23:57:08 +0000 (01:57 +0200)]
Partially implemented IMAP SEARCH=X-MIMEPART capability.
This capability is currently Dovecot-specific.
Timo Sirainen [Sun, 19 Feb 2017 23:24:09 +0000 (01:24 +0200)]
example-config: Add mail_sort_max_read_count setting.
Timo Sirainen [Sun, 19 Feb 2017 23:16:56 +0000 (01:16 +0200)]
example-config: Add mail_vsize_bg_after_count setting.
Timo Sirainen [Sun, 19 Feb 2017 23:00:05 +0000 (01:00 +0200)]
example-config: Add imap_fetch_failure setting.
Stephan Bosch [Sun, 19 Feb 2017 20:58:54 +0000 (21:58 +0100)]
auth: oauth2 mechanism: Fixed implicit boolean expression involving a pointer.
Found with Clang -Wstrict-bool.
Timo Sirainen [Sat, 18 Feb 2017 03:01:50 +0000 (05:01 +0200)]
lib-storage: Add explicit MAIL_ERROR_LOOKUP_ABORT error
The MAIL_ERROR_NOTPOSSIBLE was a bit too generic to assume to mean the same
thing. It doesn't look like there are any external plugins that break
because of this change.
Timo Sirainen [Fri, 17 Feb 2017 17:29:03 +0000 (19:29 +0200)]
lib-storage: Add mail.access_type