]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Karl Fleischmann [Wed, 24 Apr 2024 15:35:44 +0000 (17:35 +0200)]
lib-index: mail-index-map - Remove modseq map from index record map
Karl Fleischmann [Wed, 24 Apr 2024 15:20:50 +0000 (17:20 +0200)]
lib-index: mail-index-modseq - Remove modseq map from sync context
Karl Fleischmann [Wed, 24 Apr 2024 14:29:26 +0000 (16:29 +0200)]
lib-index: mail-index-modseq - Remove session-based modseq tracking flag
Karl Fleischmann [Wed, 24 Apr 2024 13:00:44 +0000 (15:00 +0200)]
lib-index: mail-index-modseq - Explicitly track whether modseqs have been enabled in an index
Karl Fleischmann [Wed, 24 Apr 2024 12:48:15 +0000 (14:48 +0200)]
lib-index: mail-index-modseq - Clarify whether modseq tracking was requested in session
Timo Sirainen [Mon, 24 Jul 2023 22:10:57 +0000 (01:10 +0300)]
lib-storage, global: Remove unnecessary MAILBOX_SYNC_FLAG_FULL_WRITE
It was only set by IMAP CHECK and POP3 QUIT commands, which made no sense.
Also it only changed the behavior for mbox format.
Markus Valentin [Wed, 3 Apr 2024 10:53:08 +0000 (12:53 +0200)]
fs-api: fs_iter_init_with_event() - Initialize iter->event also if iter_init is not implemented
Aki Tuomi [Tue, 9 Apr 2024 10:07:04 +0000 (13:07 +0300)]
fts: Adding setting for maximum message body size
Solr maximum message size for indexing Set a limit fts_message_max_size
on message body size. Messages are capped at the maximum size for indexing.
This Defaults to zero which means no limit (the existing behaviour).
Example setting:
fts_message_max_size = 10M
Based on work by John Fawcett <john@voipsupport.it>
John Fawcett [Wed, 3 Jan 2024 13:48:43 +0000 (14:48 +0100)]
fts-solr: Limit fetches to SOLR_MAX_MULTI_ROWS
Solr place upper bound on number of rows to be returned from solr for single
mailbox search When dovecot sends a search to solr it uses the rows parameter.
For multiple mailbox search the value used is SOLR_MAX_MULTI_ROWS , hardcoded to
100000. For single mailbox search the value used is uidnext. This patch
introduces an upper limit for single mailbox search using the same upper bound
as for multiple mailbox searches, SOLR_MAX_MULTI_ROWS, while leaving the
existing functionality of sending the uidnext value if it is smaller. This is
just to place a more reasonable upper bound since uidnext can get much larger
than 100000. The following url points to the Solr documentation for query
parameters that describes the rows parameter:
https://solr.apache.org/guide/solr/latest/query-guide/common-query-parameters.html
John Fawcett [Wed, 3 Jan 2024 13:42:51 +0000 (14:42 +0100)]
fts-tika: Allow username and password in fts_tika
Allows specification of username and password in the fts_tika setting for basic
auth against tika server. For example
fts_tika = https://user:password@tika_server:443/tika
Timo Sirainen [Mon, 22 Apr 2024 09:01:07 +0000 (12:01 +0300)]
imapc, lib-imap-client: Add imapc_features=no-qresync to disable QRESYNC
This can be used to silently work around the Zimbra bug of not sending
[CLOSED] imap-resp-code.
Timo Sirainen [Mon, 22 Apr 2024 08:05:09 +0000 (11:05 +0300)]
lib-imap-client: Handle better when QRESYNC capable server doesn't send CLOSED imap-resp-code
QRESYNC RFC specifies that the [CLOSED] imap-resp-code MUST always be sent
if server advertises CONDSTORE or QRESYNC capability. However, at least some
Zimbra versions don't do this. Workaround by reconnecting to the server
automatically.
Timo Sirainen [Mon, 22 Apr 2024 07:59:37 +0000 (10:59 +0300)]
lib-imap-client: Fix automatic reconnecting with delayed logins
reconnect_command_count was always set to 1, because there was always
the command that triggered the connection. It was never reset to 0,
which caused reconnects to never happen.
Timo Sirainen [Tue, 9 Apr 2024 13:00:32 +0000 (16:00 +0300)]
fs-metawrap, fs-compress, fs-crypt: fs_set_metadata() - Pass metadata to both parent files
These fses have a "super_read" file, which is used for some purposes.
The metadata should be also passed to them, so they get the same useful
internal metadata that can be used to optimize reads.
Timo Sirainen [Thu, 11 Apr 2024 09:07:46 +0000 (12:07 +0300)]
lib-sql: cassandra - Add log_retries setting to enable logging retry policy
Timo Sirainen [Thu, 11 Apr 2024 08:41:19 +0000 (11:41 +0300)]
lib-sql: cassandra - Differentiate between requested and received consistency in log messages
They should normally be the same.
Timo Sirainen [Thu, 11 Apr 2024 08:37:13 +0000 (11:37 +0300)]
lib-sql: cassandra - Add "consistency" and "error_consistency" fields to sql_query_finished event
Timo Sirainen [Thu, 11 Apr 2024 08:29:16 +0000 (11:29 +0300)]
lib-sql: cassandra - If query isn't sent, don't include confusing details in error message
When query isn't sent, there is no time for how long the query took and
especially the consistency is not set.
Marco Bettini [Tue, 9 Apr 2024 08:52:06 +0000 (08:52 +0000)]
doveadm: doveadm_mail_next_user() - Restore privileges before returning
Marco Bettini [Tue, 9 Apr 2024 08:51:25 +0000 (08:51 +0000)]
lib-storage: mail_storage_service_restore_privileges() - Allow also for restore to non root euid(s)
Marco Bettini [Tue, 9 Apr 2024 08:49:33 +0000 (08:49 +0000)]
lmtp: lmtp_local_data() - Split off mail_storage_service_restore_privileges()
Timo Sirainen [Mon, 8 Apr 2024 04:06:29 +0000 (07:06 +0300)]
lib-storage: Fix leaking internal error messages to clients on failed list index rebuild
Timo Sirainen [Tue, 9 Apr 2024 11:49:59 +0000 (14:49 +0300)]
fs-metawrap, fs-compress, fs-crypt: fs_read_stream() - return parent stream error immediately
Earlier behavior was to delay until i_stream_read() was called, which caused
problems with some error handling.
Timo Sirainen [Tue, 9 Apr 2024 10:58:03 +0000 (13:58 +0300)]
lib-sql: Fix dependencies for building sql-drivers-register.c
Timo Sirainen [Mon, 8 Apr 2024 19:17:44 +0000 (22:17 +0300)]
lib: istream-multiplex - Fix potential hang when channel buffer gets full
If some bytes were read into the wanted channel, but more input was
attempted to be read into another channel's buffer that was already full,
the read should have returned what bytes were already successfully read.
Instead, 0 (more input needed) was returned.
Timo Sirainen [Wed, 3 Apr 2024 19:27:51 +0000 (22:27 +0300)]
auth: Fix error message if user doesn't have permission to list users
Broken by
812af4bc58424b7c14ed595810a1dd4dad761ab5
Timo Sirainen [Wed, 27 Mar 2024 10:55:09 +0000 (12:55 +0200)]
master: Redirect stdout to /dev/null, unless logging is configured to /dev/stdout
Previous behavior was to redirect to /dev/null, unless -F parameter was
used. This made its behavior rather inconsistent, because -F is commonly
used with e.g. systemd.
Timo Sirainen [Wed, 27 Mar 2024 10:54:40 +0000 (12:54 +0200)]
lib: Add i_failure_have_stdout_logs()
Timo Sirainen [Wed, 27 Mar 2024 10:52:17 +0000 (12:52 +0200)]
lib: Explicitly support /dev/stdout logging to stdout
This way it goes to stdout file descriptor instead of actually opening
the /dev/stdout device.
Aki Tuomi [Thu, 28 Mar 2024 10:58:17 +0000 (12:58 +0200)]
pop3: Free event if mail storage initialization fails
Broken in
de9c5f8b651b08bf08a6ac75a7fdceec5976b0ff
Marco Bettini [Fri, 1 Mar 2024 11:45:00 +0000 (11:45 +0000)]
lib-mail: istream-dot - Implement ISTREAM_DOT_STRICT_EOT
Marco Bettini [Fri, 1 Mar 2024 11:11:27 +0000 (11:11 +0000)]
lib-mail: i_stream_create_dot() - Replace boolean send_last_lf with enumerated flags
Marco Bettini [Thu, 29 Feb 2024 11:25:55 +0000 (11:25 +0000)]
lib-mail: istream-dot - Change state into type enum dot_state
Aki Tuomi [Thu, 21 Mar 2024 07:42:43 +0000 (09:42 +0200)]
lib-lua: dlua-dovecot-http - Do synchronous payload only if asked
Timo Sirainen [Wed, 20 Mar 2024 10:03:43 +0000 (12:03 +0200)]
config: Fix potential crash parsing configuration with obsolete settings
Timo Sirainen [Mon, 18 Mar 2024 11:52:37 +0000 (13:52 +0200)]
lib-storage: mail_user_var_expand_table() - Fix excessive memory usage
It was supposed to return a cached table, but instead it now allocated a new
one every time from mail_user's pool. This kept growing memory usage after
every mail_user_var_expand_table() call.
Broken by
10eaf04197cfe7f6ab1fd4ab57c9f38e75b2889d
Timo Sirainen [Wed, 13 Mar 2024 11:08:18 +0000 (13:08 +0200)]
login-common: Add client_vfuncs.iostream_change_pre/post()
Timo Sirainen [Tue, 12 Mar 2024 13:43:53 +0000 (15:43 +0200)]
doveadm: Add doveadm_mail_server_handle_full()
This allows changing the proxied mail command's command or parameters.
orbea [Wed, 6 Mar 2024 02:15:58 +0000 (18:15 -0800)]
push-notification: fix typo 'module' to '-module'
There is a typo in the Makefile.am where it has 'module` instead of '-module' which causes a build failure with slibtool.
ld: cannot find module: No such file or directory
With GNU libtool the typo is silently ignored.
Timo Sirainen [Mon, 11 Mar 2024 12:30:00 +0000 (14:30 +0200)]
*-login: Fix error code for "Maximum number of connections from user+IP exceeded"
IMAP now reports it as [LIMIT] rather than [UNAVAILABLE].
This change also causes proxy_session_finished event's error_code to
change: [UNAVAILABLE] maps to proxy_dest_auth_temp_failed, while [LIMIT]
maps to proxy_dest_auth_failed.
Timo Sirainen [Mon, 11 Mar 2024 12:19:57 +0000 (14:19 +0200)]
login-common: proxy_session_finished event - Don't add error_code for successful sessions
If the proxy's login to backend succeeded, it was already successful
regardless of what happens afterwards.
Aki Tuomi [Wed, 14 Feb 2024 11:32:16 +0000 (13:32 +0200)]
auth: Use connection API with auth_master_connection
Aki Tuomi [Wed, 14 Feb 2024 12:30:23 +0000 (14:30 +0200)]
auth: Splice off handshaking to auth_master_handshake_args()
Aki Tuomi [Wed, 14 Feb 2024 11:09:06 +0000 (13:09 +0200)]
auth: Change return type to int for auth master input handling
Aki Tuomi [Wed, 14 Feb 2024 10:58:32 +0000 (12:58 +0200)]
auth: Refactor auth master input handling functions
Aki Tuomi [Wed, 14 Feb 2024 11:03:37 +0000 (13:03 +0200)]
auth: Rename list to args in auth-master-connection
Aki Tuomi [Wed, 14 Feb 2024 10:50:20 +0000 (12:50 +0200)]
auth: Constify iovec in auth_master_request_callback()
Aki Tuomi [Wed, 14 Feb 2024 10:48:43 +0000 (12:48 +0200)]
auth: Use connection structures with auth_master_connection
Prepares for connection usage
Aki Tuomi [Wed, 14 Feb 2024 10:37:20 +0000 (12:37 +0200)]
auth: Reformat src/auth/auth-master-connection.c
clang-format and touchups.
Aki Tuomi [Fri, 16 Feb 2024 12:36:00 +0000 (14:36 +0200)]
auth: Add auth-master-connection test
Aki Tuomi [Fri, 16 Feb 2024 12:35:45 +0000 (14:35 +0200)]
auth: Add auth-client-connection test
Aki Tuomi [Fri, 16 Feb 2024 12:33:48 +0000 (14:33 +0200)]
lib-auth-client: Add AUTH_MASTER_FLAG_NO_INNER_IOLOOP for testing
Aki Tuomi [Tue, 27 Feb 2024 06:45:52 +0000 (08:45 +0200)]
auth: test-mech - Remove unneeded code
Aki Tuomi [Fri, 16 Feb 2024 11:44:12 +0000 (13:44 +0200)]
auth: Extract test_auth_init() and test_auth_deinit()
Aki Tuomi [Tue, 27 Feb 2024 08:50:45 +0000 (10:50 +0200)]
lib: connection - Record connect_finished for server connections too
Aki Tuomi [Wed, 28 Feb 2024 11:50:31 +0000 (13:50 +0200)]
lib: connection - Remove unused boolean handshake_received
Aki Tuomi [Wed, 28 Feb 2024 11:35:51 +0000 (13:35 +0200)]
global: Use connection_set_handshake_ready() and connection_handshake_received()
Aki Tuomi [Wed, 28 Feb 2024 11:30:35 +0000 (13:30 +0200)]
lib: connection - Add connection_handshake_received()
Aki Tuomi [Wed, 28 Feb 2024 11:27:39 +0000 (13:27 +0200)]
lib: connection - Add connection_set_handshake_ready()
Aki Tuomi [Tue, 27 Feb 2024 07:26:07 +0000 (09:26 +0200)]
lib: connection - Record handshake finished time
Aki Tuomi [Wed, 28 Feb 2024 11:15:50 +0000 (13:15 +0200)]
lib: connection - Indicate if peer credentials have been gotten
Aki Tuomi [Wed, 14 Feb 2024 12:57:15 +0000 (14:57 +0200)]
lib: connection - Record remote_gid too
Aki Tuomi [Wed, 28 Feb 2024 11:49:05 +0000 (13:49 +0200)]
lib: connection - Clear timestamps on init
Aki Tuomi [Wed, 28 Feb 2024 11:46:38 +0000 (13:46 +0200)]
lib: connection - Document connection members
Timo Sirainen [Tue, 27 Feb 2024 18:51:27 +0000 (20:51 +0200)]
lib-imap-urlauth: imap-urlauth-fetch - Fix comparing out of scope pointer
Practically this wouldn't matter, but Coverity still complains.
Broken by
bf8165cea2450c854da39710715983e5ed44b480
Timo Sirainen [Tue, 27 Feb 2024 13:17:01 +0000 (15:17 +0200)]
lib-http: http_client_init_shared() - Remove unnecessary event==NULL check
The event is always created by http_client_context_create().
Stephan Bosch [Sun, 25 Feb 2024 01:09:40 +0000 (02:09 +0100)]
lib-imap-urlauth: imap-urlauth-fetch - Fix potential NULL dereference
Found by Coverity.
Stephan Bosch [Tue, 27 Feb 2024 12:42:10 +0000 (13:42 +0100)]
lib-imap-urlauth: Reformat imap-urlauth-fetch.c
Timo Sirainen [Sun, 25 Feb 2024 19:38:28 +0000 (21:38 +0200)]
lib: test-event-filter - Add missing event_filter_parse() return value checks
Timo Sirainen [Wed, 21 Feb 2024 21:09:41 +0000 (23:09 +0200)]
lib-master: Don't log "Killed with signal" warning if kicked via USER-KICK-SIGNAL
Timo Sirainen [Wed, 21 Feb 2024 21:07:39 +0000 (23:07 +0200)]
imap, pop3, submission: Log MASTER_SERVICE_USER_KICKED_MSG for kicks via USER-KICK-SIGNAL
Timo Sirainen [Wed, 21 Feb 2024 21:04:00 +0000 (23:04 +0200)]
lib-master: Add master_service_is_user_kicked()
Timo Sirainen [Wed, 21 Feb 2024 20:57:06 +0000 (22:57 +0200)]
lib-master, global: Add and use MASTER_SERVICE_USER_KICKED_MSG
Use it only for log messages, not for user-visible messages.
Timo Sirainen [Wed, 21 Feb 2024 21:23:26 +0000 (23:23 +0200)]
submission: client_destroy() - Decouple reply reason from log reason
Timo Sirainen [Wed, 21 Feb 2024 21:21:11 +0000 (23:21 +0200)]
lib-smtp: Add smtp_server_connection_terminate_full()
Timo Sirainen [Wed, 21 Feb 2024 21:20:08 +0000 (23:20 +0200)]
lmtp, login-common: Use MASTER_SERVICE_SHUTTING_DOWN_MSG
For consistency.
Timo Sirainen [Sat, 24 Feb 2024 22:32:54 +0000 (00:32 +0200)]
lib: Replace LFs in log prefixes with spaces
Timo Sirainen [Sat, 24 Feb 2024 22:49:30 +0000 (00:49 +0200)]
lib: Fix syslog writing if log prefix contains LF
Timo Sirainen [Sat, 24 Feb 2024 22:20:08 +0000 (00:20 +0200)]
lib: Remove unused failure_handler_vfuncs.post_handler()
Timo Sirainen [Sat, 24 Feb 2024 22:17:51 +0000 (00:17 +0200)]
lib: Fix CORE_ERROR to work with all log types
It only worked when logging to a file, which practically made it nonworking.
Timo Sirainen [Sat, 24 Feb 2024 22:10:07 +0000 (00:10 +0200)]
lib: Merge failure_handler_vfuncs.format() into .write()
Timo Sirainen [Sat, 24 Feb 2024 16:49:27 +0000 (18:49 +0200)]
lib: failures - Rename str variables to data
This simplifies the following commit.
Timo Sirainen [Sat, 24 Feb 2024 22:08:30 +0000 (00:08 +0200)]
lib: test-event-log - Use temporary file for testing log file contents
This allows removal of failure_handler_vfuncs.format() in the following
commit.
Stephan Bosch [Sat, 25 Nov 2023 16:08:56 +0000 (17:08 +0100)]
lib-lua: Add unit test for dovecot.http
Stephan Bosch [Sat, 25 Nov 2023 16:06:37 +0000 (17:06 +0100)]
lib-lua: dlua-dovecot-http - Default to script event if script provides no event for HTTP client
Stephan Bosch [Sat, 25 Nov 2023 16:05:48 +0000 (17:05 +0100)]
lib-lua: dlua-dovecot-http - Allow setting dns_client_socket_path from script
Stephan Bosch [Sat, 25 Nov 2023 16:01:54 +0000 (17:01 +0100)]
lib-http: http-client-request - Add "http-client" category to any event set for request
Stephan Bosch [Sat, 25 Nov 2023 16:07:48 +0000 (17:07 +0100)]
lib-http: http-client-connection - Fix detection of erroneous early response after 100 Continue
Timo Sirainen [Wed, 21 Feb 2024 09:31:34 +0000 (11:31 +0200)]
lib: If log line contains LFs, add log prefix before each line
Timo Sirainen [Wed, 21 Feb 2024 08:10:24 +0000 (10:10 +0200)]
lib-sql: sqlite - Add query to error strings
Stephan Bosch [Mon, 8 May 2023 23:04:53 +0000 (01:04 +0200)]
lib-imap-storage: Fix Content-Transfer-Encoding in converted BODYPARTSTRUCTURE
If the part was converted, it should be "binary" rather than "base64".
Stephan Bosch [Mon, 8 May 2023 23:04:45 +0000 (01:04 +0200)]
lib-storage: mail - Group binary part properties into a struct for mail_get_binary_stream().
This makes several additional properties available from
mail_get_binary_stream(). This also changes mail_get_binary_size() into
mail_get_binary_properties().
Timo Sirainen [Tue, 30 Mar 2021 11:44:09 +0000 (14:44 +0300)]
imap: URLFETCH - Fix returning both BODYPARTSTRUCTURE and BODY/BINARY
It should return (BODYPARTSTRUCTURE ...) (BINARY ...),
not (BODYPARTSTRUCTURE ... BINARY ...)
Timo Sirainen [Tue, 30 Mar 2021 11:32:21 +0000 (14:32 +0300)]
lib-imap-urlauth: Always call callback with a non-NULL reply
Even with internal errors the error message is in the reply.
Timo Sirainen [Tue, 30 Mar 2021 11:35:16 +0000 (14:35 +0300)]
lib-storage: Remove extra period from "Unknown Content-Transfer-Encoding." error
The period is often added by the callers, so errors ended up having two
periods at the end.
Stephan Bosch [Mon, 8 May 2023 22:23:41 +0000 (00:23 +0200)]
lib-mail: message-part - Add message_parts_have_nuls() and message_part_has_nuls().
Drop equivalent static function in lib-storage/index/index-mail.c.
Aki Tuomi [Tue, 13 Feb 2024 08:02:16 +0000 (10:02 +0200)]
mail-crypt: Mark ChaCha20-Poly1305 as AEAD cipher
Aki Tuomi [Tue, 13 Feb 2024 07:58:04 +0000 (09:58 +0200)]
lib-dcrypt: Support ChaCha20-Poly1305 with OpenSSL3
Aki Tuomi [Wed, 14 Feb 2024 08:25:13 +0000 (10:25 +0200)]
lib-smtp: Ensure chunk is not NULL in smtp_server_connection_data_chunk_add()
Aki Tuomi [Wed, 14 Feb 2024 08:12:10 +0000 (10:12 +0200)]
lib-dict-backend: dict-ldap - Ensure username is not null on priv lookups