]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Stephan Bosch [Wed, 13 Feb 2019 23:21:16 +0000 (00:21 +0100)]
lmtp: Replace i_info() with e_info().
Stephan Bosch [Wed, 13 Feb 2019 23:17:20 +0000 (00:17 +0100)]
lmtp: Replace i_error() with e_error().
Stephan Bosch [Thu, 27 Dec 2018 21:39:20 +0000 (22:39 +0100)]
lmtp: proxy: Use client.event for SMTP client connection.
Stephan Bosch [Thu, 27 Dec 2018 21:37:40 +0000 (22:37 +0100)]
lmtp: local: Use rcpt.event as mail_*user's parent event.
Stephan Bosch [Wed, 13 Feb 2019 23:36:41 +0000 (00:36 +0100)]
lmtp: Add username to recipient event.
Stephan Bosch [Thu, 27 Dec 2018 21:32:01 +0000 (22:32 +0100)]
lmtp: Add client.event.
Stephan Bosch [Sat, 9 Mar 2019 22:33:24 +0000 (23:33 +0100)]
lib-smtp: smtp-submit - Rename event setting to event_parent.
Stephan Bosch [Fri, 8 Mar 2019 21:21:22 +0000 (22:21 +0100)]
lib-smtp: smtp-server - Rename event setting to event_parent.
Stephan Bosch [Fri, 8 Mar 2019 20:47:00 +0000 (21:47 +0100)]
lib-smtp: smtp-client - Rename event setting to event_parent.
Stephan Bosch [Fri, 8 Mar 2019 21:20:58 +0000 (22:20 +0100)]
lib-http: http-client - Rename event setting to event_parent.
Timo Sirainen [Mon, 11 Mar 2019 22:03:18 +0000 (00:03 +0200)]
auth: Add missing log prefix to "userdb cache expired" debug line
Aki Tuomi [Fri, 8 Mar 2019 13:39:51 +0000 (15:39 +0200)]
auth: Use request event for messages after lookup has ended
Otherwise the prefix is going to be wrong, and we cannot use
the authdb_event here because the authdb event is wrong
at this point.
Aki Tuomi [Fri, 8 Mar 2019 13:31:49 +0000 (15:31 +0200)]
auth: Ensure authdb_event returns event
We don't want nasty crashes due to lack of event.
Stephan Bosch [Thu, 7 Mar 2019 02:39:34 +0000 (03:39 +0100)]
master: test-master-login-auth - Add request reconnect test.
Stephan Bosch [Thu, 7 Mar 2019 01:44:55 +0000 (02:44 +0100)]
master: test-master-login-auth - Add request disconnect test.
Stephan Bosch [Thu, 7 Mar 2019 01:37:30 +0000 (02:37 +0100)]
master: test-master-login-auth - Add support for retrying requests.
Stephan Bosch [Thu, 7 Mar 2019 01:20:43 +0000 (02:20 +0100)]
master: test-master-login-auth - Run the auth request in a separate function.
Stephan Bosch [Tue, 5 Mar 2019 01:56:52 +0000 (02:56 +0100)]
lib-master: master-login-auth - Make sure connection is disconnected upon error.
Stephan Bosch [Thu, 7 Mar 2019 00:04:52 +0000 (01:04 +0100)]
master: test-auth-client - Add handshake reconnect test.
Stephan Bosch [Wed, 6 Mar 2019 22:34:56 +0000 (23:34 +0100)]
master: test-auth-client - Add handshake disconnect test.
Stephan Bosch [Wed, 6 Mar 2019 23:50:49 +0000 (00:50 +0100)]
master: test-auth-client - Add support for retrying handshakes.
Stephan Bosch [Wed, 6 Mar 2019 23:56:44 +0000 (00:56 +0100)]
master: test-auth-client - Run the auth client in a separate function.
Stephan Bosch [Thu, 7 Mar 2019 00:33:58 +0000 (01:33 +0100)]
master: test-auth-client - Fix duplicate server connection deinit.
Stephan Bosch [Tue, 5 Mar 2019 01:35:45 +0000 (02:35 +0100)]
lib-auth: auth-client-connection - Make sure connection is disconnected upon error.
Stephan Bosch [Wed, 6 Mar 2019 21:45:57 +0000 (22:45 +0100)]
master: test-auth-master - Add userdb lookup reconnect test.
Stephan Bosch [Wed, 6 Mar 2019 21:01:02 +0000 (22:01 +0100)]
master: test-auth-master - Add userdb lookup disconnect test.
Stephan Bosch [Wed, 6 Mar 2019 21:15:50 +0000 (22:15 +0100)]
master: test-auth-master - Add support for retrying userdb lookups.
Stephan Bosch [Wed, 6 Mar 2019 22:00:29 +0000 (23:00 +0100)]
master: test-auth-master - Add passdb lookup reconnect test.
Stephan Bosch [Wed, 6 Mar 2019 21:54:57 +0000 (22:54 +0100)]
master: test-auth-master - Add passdb lookup disconnect test.
Stephan Bosch [Wed, 6 Mar 2019 21:08:04 +0000 (22:08 +0100)]
master: test-auth-master - Add support for retrying passdb lookups.
Stephan Bosch [Mon, 4 Mar 2019 23:48:11 +0000 (00:48 +0100)]
lib-auth: auth-master - Create ioloop before connecting to the auth service.
Stephan Bosch [Tue, 5 Mar 2019 00:43:16 +0000 (01:43 +0100)]
lib-auth: auth-master - Make sure connection is disconnected upon error.
Timo Sirainen [Fri, 8 Mar 2019 10:34:29 +0000 (12:34 +0200)]
lib: Panic on most epoll_ctl() failures
Anything except ENOSPC or ENOMEM points to a bug in code. Getting core dump
from those helps debugging.
Stephan Bosch [Thu, 7 Mar 2019 20:51:48 +0000 (21:51 +0100)]
lib: connection - Turn connection_init_client_ip*() name parameter into an explicit hostname.
This way, the default connection name will be hostname:ip when hostname is not
NULL. This will be helpful once the connection API has TLS support.
Sergey Kitov [Fri, 1 Mar 2019 08:57:40 +0000 (10:57 +0200)]
auth: Add client_secret setting
Sergey Kitov [Fri, 1 Mar 2019 08:57:22 +0000 (10:57 +0200)]
auth: Fix for processing oauth2 responses with 4xx HTTP status.
Stephan Bosch [Sat, 2 Mar 2019 12:05:08 +0000 (13:05 +0100)]
lib-smtp: smtp-client-command - Emit smtp_client_command_finished event for replied commands.
This was an omission.
Stephan Bosch [Sat, 2 Mar 2019 12:08:34 +0000 (13:08 +0100)]
lib-smtp: smtp-client-command - Make sure command event is finished just once.
Timo Sirainen [Mon, 4 Mar 2019 16:44:30 +0000 (18:44 +0200)]
NEWS: Add v2.3.5
Stephan Bosch [Sun, 9 Dec 2018 20:18:22 +0000 (21:18 +0100)]
lib-oauth2: Provide a unit test for the JSON response payload parser.
Stephan Bosch [Sun, 9 Dec 2018 20:14:29 +0000 (21:14 +0100)]
lib-oauth2: Fix assert panic occurring while skipping ignored object and array fields.
Fixed by using json_parse_skip(), rather than json_parse_skip_next(). The latter
is not suitable for skipping a value that is already partially parsed by
json_parse_next().
Panic was:
Panic: file json-parser.c: line 668 (json_parse_skip_next): assertion failed: (parser->state == JSON_STATE_OBJECT_COLON || parser->state == JSON_STATE_OBJECT_VALUE || parser->state == JSON_STATE_ARRAY_VALUE || parser->state == JSON_STATE_ARRAY_NEXT)
Stephan Bosch [Sun, 9 Dec 2018 20:08:53 +0000 (21:08 +0100)]
lib-oauth2: Fix asynchronous parsing of JSON response payload.
The problem was caused by the fact that req->field_name was reset in the
beginning of oauth2_parse_json(), which is continuously called when more payload
can be read from the input stream. This leads to corruption of the parser state
machine each time parsing is continued.
To fix this issue, the field_name is now reset only when the parsing commences.
Stephan Bosch [Sun, 9 Dec 2018 19:27:10 +0000 (20:27 +0100)]
lib: json-parser: Add unit test on skipping various object member fields.
This both tests skipping fields based on their member key and based on their
value types; i.e., after calling json_parse_next() for the object member value.
Stephan Bosch [Sun, 9 Dec 2018 19:24:28 +0000 (20:24 +0100)]
lib: json-parser: Add support for skipping a value that is already partially parsed.
Adds json_parse_skip(), which skips the remainder of the value parsed earlier by
json_parse_next(). This is needed when values need to be skipped by their value
type rather than their object member key.
Aki Tuomi [Wed, 27 Feb 2019 13:25:06 +0000 (15:25 +0200)]
lib-storage: pop3c - Copy SSL settings correctly
When attempting to use pop3c with immediate SSL, it would
crash due to invalid memory access during connection setup.
Also the SSL mode is not copied so SSL handshake is not attempted
at later stage.
Was broken in
01435c38e7 and
ebcf7d6c92
Stephan Bosch [Sat, 2 Mar 2019 16:18:02 +0000 (17:18 +0100)]
lib-smtp: smtp-submit - Emit named events.
These have some overlap with the smtp-client events, but for the sendmail binary
submission method those are not produced.
Stephan Bosch [Thu, 27 Dec 2018 23:41:43 +0000 (00:41 +0100)]
lib-smtp: smtp-submit - Add support for event API.
Stephan Bosch [Thu, 27 Dec 2018 23:36:32 +0000 (00:36 +0100)]
lib-smtp: smtp-submit - Collect optional inputs to smtp_submit_session_init() into a struct.
Stephan Bosch [Tue, 12 Feb 2019 00:48:01 +0000 (01:48 +0100)]
lib-smtp: smtp-server-transaction - Record the size of the message data in the event at the end of the transaction.
Stephan Bosch [Tue, 12 Feb 2019 00:47:43 +0000 (01:47 +0100)]
lib-smtp: smtp-server-recipient - Emit named events.
Stephan Bosch [Tue, 12 Feb 2019 00:40:29 +0000 (01:40 +0100)]
lib-smtp: smtp-server-transaction - Emit named events.
Stephan Bosch [Tue, 12 Feb 2019 00:33:07 +0000 (01:33 +0100)]
lib-smtp: smtp-server - Record the number of denied recipients.
Stephan Bosch [Tue, 12 Feb 2019 00:08:16 +0000 (01:08 +0100)]
lib-smtp: smtp-server-recipient - Manage "finished" status of the recipient.
Stephan Bosch [Mon, 11 Feb 2019 23:59:28 +0000 (00:59 +0100)]
lib-smtp: smtp-server-transaction - Manage "finished" status of the transaction.
Stephan Bosch [Mon, 11 Feb 2019 23:22:38 +0000 (00:22 +0100)]
lib-smtp: smtp-server: Set pointer parameter of smtp_server_transaction_free() to NULL immediately.
Stephan Bosch [Mon, 11 Feb 2019 23:19:49 +0000 (00:19 +0100)]
lib-smtp: smtp-server - Call transaction callbacks from transaction object functions.
Stephan Bosch [Mon, 4 Feb 2019 02:36:03 +0000 (03:36 +0100)]
lib-smtp: smtp-server-command - Emit named events.
Stephan Bosch [Mon, 11 Feb 2019 23:09:21 +0000 (00:09 +0100)]
lib-smtp: smtp-server-reply - Add smtp_server_reply_add_to_event().
Stephan Bosch [Mon, 4 Feb 2019 02:37:52 +0000 (03:37 +0100)]
lib-smtp: smtp-server - Record the enhanced code in the reply content.
Stephan Bosch [Mon, 11 Feb 2019 23:01:39 +0000 (00:01 +0100)]
lib-smtp: smtp-server-reply - Add smtp_server_reply_is_success() and use it.
Stephan Bosch [Mon, 4 Feb 2019 02:32:42 +0000 (03:32 +0100)]
lib-smtp: smtp-server-reply - Add smtp_server_reply_get_message().
Stephan Bosch [Mon, 11 Feb 2019 22:49:59 +0000 (23:49 +0100)]
lib-smtp: smtp-server-reply - Make smtp_server_reply_get_one_line() reply parameter const.
Stephan Bosch [Mon, 11 Feb 2019 23:04:42 +0000 (00:04 +0100)]
lib-smtp: smtp-server.h - Move server functions to a single place.
Corrects position of smtp_server_switch_ioloop() in the header file.
Stephan Bosch [Mon, 17 Dec 2018 03:08:47 +0000 (04:08 +0100)]
lib-smtp: smtp-server - Replace smtp_*_debug() with e_debug().
Stephan Bosch [Mon, 24 Dec 2018 00:46:56 +0000 (01:46 +0100)]
lib-smtp: smtp-server - Replace smtp_*_error() with e_error().
Stephan Bosch [Mon, 24 Dec 2018 00:35:52 +0000 (01:35 +0100)]
lib-smtp: smtp-server-connection - Replace i_error() with e_error().
Stephan Bosch [Mon, 17 Dec 2018 02:53:32 +0000 (03:53 +0100)]
lib-smtp: smtp-server - Remove redundant debug logging checks.
Stephan Bosch [Mon, 17 Dec 2018 02:45:58 +0000 (03:45 +0100)]
lib-smtp: smtp-server - Add support for event API.
Stephan Bosch [Thu, 14 Feb 2019 00:05:57 +0000 (01:05 +0100)]
lib-smtp: smtp-server - Provide RCPT parameters as parameter to smtp_server_recipient_create().
Needed for event API, but also fixes a memory leak occurring upon parameter
parse error.
Stephan Bosch [Sun, 23 Dec 2018 23:11:59 +0000 (00:11 +0100)]
lib-smtp: smtp-server - Add smtp_server_command_new_invalid().
Creates an empty command for sending an error reply for an invalid command.
Stephan Bosch [Sun, 16 Dec 2018 18:40:51 +0000 (19:40 +0100)]
lib-smtp: smtp-server - Remove unused server->ioloop field.
Stephan Bosch [Sun, 16 Dec 2018 18:29:35 +0000 (19:29 +0100)]
lib-smtp: smtp-server - Properly document all settings.
Stephan Bosch [Thu, 28 Feb 2019 09:03:17 +0000 (10:03 +0100)]
lib: connection - Add generic event fields for local and remote addresses.
Stephan Bosch [Thu, 28 Feb 2019 08:55:17 +0000 (09:55 +0100)]
lib: connection - Use the connection event for all connection types directly.
This way, the common event fields for the connection are available to each
connection type and its descendant events for objects like commands, requests,
and transactions.
This also creates a standard log prefix used by all connection types.
Stephan Bosch [Fri, 1 Mar 2019 15:21:36 +0000 (16:21 +0100)]
lib-smtp: smtp-client-connection - Create separate parent event to add the smtp-client log prefix.
This is needed for a later commit that moves the addition of the connection log
prefix to the connection API.
Stephan Bosch [Fri, 1 Mar 2019 15:54:48 +0000 (16:54 +0100)]
lib-smtp: smtp-client-connection - Retain the host name in the connection label after DNS lookup.
Stephan Bosch [Fri, 1 Mar 2019 14:16:37 +0000 (15:16 +0100)]
lib-smtp: smtp-client-connection - Remember whether the hostname is actually an IP address.
This is needed to prevent connection log prefix from containing an IP twice.
Stephan Bosch [Fri, 1 Mar 2019 15:02:40 +0000 (16:02 +0100)]
lib-dns: dns-lookup - Perform connection-related logging using the connection event.
Stephan Bosch [Fri, 1 Mar 2019 14:12:01 +0000 (15:12 +0100)]
lib: connection - Add socket_path event field for unix connections.
Stephan Bosch [Thu, 28 Feb 2019 08:49:01 +0000 (09:49 +0100)]
lib-http: http-client-connection - Drop the connection ID.
This is now unused.
Stephan Bosch [Thu, 28 Feb 2019 08:41:34 +0000 (09:41 +0100)]
lib-http: http-client-connection - Use the default connection label.
Stephan Bosch [Thu, 28 Feb 2019 08:36:30 +0000 (09:36 +0100)]
lib-smtp: smtp-client-connection - Drop the connection ID.
This is now unused.
Stephan Bosch [Thu, 28 Feb 2019 08:29:44 +0000 (09:29 +0100)]
lib-smtp: smtp-client-connection - Use the default connection label.
Stephan Bosch [Wed, 27 Feb 2019 21:19:27 +0000 (22:19 +0100)]
lib-http: http-server-connection - Drop the connection ID.
This is now unused.
Stephan Bosch [Wed, 27 Feb 2019 21:17:26 +0000 (22:17 +0100)]
lib-http: http-server-connection - Drop the connection properties.
These are now unused.
Stephan Bosch [Wed, 27 Feb 2019 21:13:25 +0000 (22:13 +0100)]
lib-http: http-server-connection - Use the default connection label.
Stephan Bosch [Wed, 27 Feb 2019 20:59:08 +0000 (21:59 +0100)]
lib-smtp: smtp-server-connection - Drop the connection ID.
This is now unused.
Stephan Bosch [Wed, 27 Feb 2019 20:52:02 +0000 (21:52 +0100)]
lib-smtp: smtp-server-connection - Drop the connection properties.
These are now unused.
Stephan Bosch [Wed, 27 Feb 2019 20:49:04 +0000 (21:49 +0100)]
lib-smtp: smtp-server-connection - Use the default connection label.
Stephan Bosch [Wed, 27 Feb 2019 20:34:33 +0000 (21:34 +0100)]
lib: connection - Remove existing log prefix.
It is often redundant to the parent event's log prefix. Subsequent commits will
yield a better and more generic solution.
Stephan Bosch [Wed, 27 Feb 2019 20:30:54 +0000 (21:30 +0100)]
lib: connection - Move creation of passthrough event in connection_client_connected().
Moved close to where it is used, which is more common in event code elsewhere.
Stephan Bosch [Wed, 27 Feb 2019 20:41:54 +0000 (21:41 +0100)]
lib: connection - Make providing a name for the connection optional.
Stephan Bosch [Wed, 27 Feb 2019 20:23:10 +0000 (21:23 +0100)]
lib-smtp: smtp-server-connection - Use connection properties for remote ip:port.
Stephan Bosch [Wed, 27 Feb 2019 20:14:36 +0000 (21:14 +0100)]
lib-http: http-server-connection - Use connection->label instead of connection->name.
Stephan Bosch [Wed, 27 Feb 2019 20:12:20 +0000 (21:12 +0100)]
lib-smtp: smtp-server-connection - Use connection->label instead of connection->name.
Stephan Bosch [Tue, 26 Feb 2019 23:33:19 +0000 (00:33 +0100)]
lib-http: http-client-connection - Use connection_init() immediately upon creation.
This avoids the need to remember whether the connection was initialized.
Stephan Bosch [Fri, 1 Mar 2019 23:49:58 +0000 (00:49 +0100)]
lib: connection - Compose standard names for the input/output streams.
Stephan Bosch [Wed, 27 Feb 2019 02:16:57 +0000 (03:16 +0100)]
lib: connection - Add a unique numeric ID to the connection.
It is incremented for each created connection. The IDs are specific to the
connection list.
Stephan Bosch [Wed, 27 Feb 2019 02:09:03 +0000 (03:09 +0100)]
lib: connection - Compose a standard label for logging.
Stephan Bosch [Wed, 27 Feb 2019 01:28:23 +0000 (02:28 +0100)]
lib: connection - Add connection_init_server_ip().