]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Stephan Bosch [Sat, 16 Mar 2019 13:41:37 +0000 (14:41 +0100)]
lib-smtp: smtp-server-recipient - Add hook for the submission of a DATA/BDAT/BURL command reply.
Stephan Bosch [Sat, 16 Mar 2019 14:26:58 +0000 (15:26 +0100)]
lib-smtp: smtp-server-cmd-data - Call smtp_server_transaction_last_data() earlier for the DATA command.
Makes sure rcpt->cmd is set before replies are being submitted.
Stephan Bosch [Sat, 16 Mar 2019 14:20:22 +0000 (15:20 +0100)]
lib-mstp: smtp-server-recipient - Make smtp_server_recipient_call_hooks() private rather than static.
Stephan Bosch [Sat, 16 Mar 2019 14:14:59 +0000 (15:14 +0100)]
lib-smtp: smtp-server-transaction - Allow calling smtp_server_transaction_last_data() more than once.
Stephan Bosch [Sat, 16 Mar 2019 14:13:03 +0000 (15:13 +0100)]
lib-smtp: smtp-server-transaction - Allow calling smtp_server_transaction_last_data() when all recipients failed.
Stephan Bosch [Sat, 16 Mar 2019 14:03:39 +0000 (15:03 +0100)]
lib-smtp: smtp-server-command - Add hook for the submission of individual replies.
Stephan Bosch [Sat, 16 Mar 2019 13:47:41 +0000 (14:47 +0100)]
lib-smtp: smtp-server-command - Make removal of hook optional for smtp_server_command_call_hooks().
Stephan Bosch [Fri, 15 Mar 2019 01:14:57 +0000 (02:14 +0100)]
submission: Use the new recipient reply wrapper functions.
Stephan Bosch [Thu, 14 Mar 2019 22:31:49 +0000 (23:31 +0100)]
lmtp: lmtp-proxy - Use the new recipient reply wrapper functions.
Stephan Bosch [Thu, 14 Mar 2019 21:49:21 +0000 (22:49 +0100)]
lmtp: lmtp-local - Use the new recipient reply wrapper functions.
Stephan Bosch [Fri, 15 Mar 2019 00:50:01 +0000 (01:50 +0100)]
lib-smtp: smtp-server-recipient - Add smtp_server_recipient_reply_forward().
This acts as a wrapper around smtp_server_reply_index_forward().
Stephan Bosch [Fri, 15 Mar 2019 00:38:29 +0000 (01:38 +0100)]
lib-smtp: smtp-server-recipient - Add smtp_server_recipient_is_replied().
This is a convenience wrapper around smtp_server_command_is_replied().
Stephan Bosch [Thu, 14 Mar 2019 21:31:09 +0000 (22:31 +0100)]
lib-smtp: smtp-server-recipient - Add smtp_server_recipient_reply().
This is a convenience wrapper around smtp_server_reply_index(). This implicitly
adds the <path> prefix to the reply (when it is not an RCPT success reply).
Stephan Bosch [Tue, 19 Mar 2019 11:37:53 +0000 (12:37 +0100)]
lib-smtp: smtp-server-cmd-rcpt - Add smtp_server_cmd_is_rcpt().
Stephan Bosch [Sat, 16 Mar 2019 01:05:06 +0000 (02:05 +0100)]
lmtp: lmtp-proxy - Remove useless proxy->pending_data_cmd.
Stephan Bosch [Sat, 16 Mar 2019 00:49:17 +0000 (01:49 +0100)]
lmtp: lmtp-proxy - Replace cmd parameter with recipient for lmtp_proxy_handle_reply().
Stephan Bosch [Sat, 16 Mar 2019 00:13:17 +0000 (01:13 +0100)]
lmtp: lmtp-local - Remove cmd parameter from lmtp_local_open_raw_mail().
Stephan Bosch [Sat, 16 Mar 2019 00:12:07 +0000 (01:12 +0100)]
lmtp: lmtp-local - Remove cmd parameter from lmtp_local_rcpt_fail_all().
Stephan Bosch [Sat, 16 Mar 2019 00:07:50 +0000 (01:07 +0100)]
lmtp: lmtp-local - Remove cmd parameter from lmtp_local_rcpt_reply_overquota().
Stephan Bosch [Sat, 16 Mar 2019 13:53:26 +0000 (14:53 +0100)]
lib-smtp: smtp-server-command - Fix segfault occurring in smtp_server_command_get_reply().
Can occur when not all replies are submitted yet.
Sergey Kitov [Mon, 18 Mar 2019 13:27:43 +0000 (15:27 +0200)]
auth: Fix deinitialization of multiple passdbs.
Sergey Kitov [Thu, 14 Mar 2019 13:53:41 +0000 (15:53 +0200)]
lib-oauth2: Add client_id and client_secret to introspect request
Michael Slusarz [Thu, 14 Mar 2019 16:54:30 +0000 (10:54 -0600)]
core: Update README.md to fix broken RFC links
Josef 'Jeff' Sipek [Thu, 7 Mar 2019 17:48:05 +0000 (12:48 -0500)]
stats: default settings can be static
Nothing has a reason to access this structure outside of this source file.
Josef 'Jeff' Sipek [Tue, 5 Mar 2019 13:21:49 +0000 (08:21 -0500)]
stats: no need for void cast of a void return value
client_{reader,writer}_create() return void, therefore there is no return
value to discard.
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.