]>
 
 
git.ipfire.org Git - thirdparty/dovecot/core.git/log 
 
 
 
 
 
 
Timo Sirainen  [Sat, 24 Feb 2024 11:30:21 +0000  (13:30 +0200)]  
 
auth: Add generic configuration for passdb/userdb fields 
 
The following commits will make these work like: 
 
passdb foo { 
  fields { 
    key = %{passdb_driver:fieldname:default} 
  } 
} 
 
And similarly for userdb. This will remove the need for default_fields and 
override_fields settings. It's also possible to use 
passdb/userdb_fields_import_all setting to import all fields, which is 
going to be especially useful for passwd-file. 
 
Timo Sirainen  [Mon, 26 Feb 2024 10:07:52 +0000  (12:07 +0200)]  
 
auth: If passdb/userdb_driver is empty, default to passdb/userdb_name 
 
This allows configuring e.g.: 
 
passdb passwd-file { 
  passwd_file_path = ... 
} 
 
Without having to explicitly name the passdb and give the driver. 
 
Aki Tuomi  [Fri, 23 Feb 2024 08:55:04 +0000  (10:55 +0200)]  
 
mail-crypt: Finish marking ChaCha20-Poly1305 as AEAD cipher 
 
Markus Valentin  [Mon, 12 Feb 2024 15:46:32 +0000  (16:46 +0100)]  
 
doveconf: Output multiple strlist elements when using -h 
 
Markus Valentin  [Thu, 8 Feb 2024 09:12:09 +0000  (10:12 +0100)]  
 
doveconf: Output boolist elements when using -h 
 
Markus Valentin  [Tue, 2 Jan 2024 14:54:13 +0000  (15:54 +0100)]  
 
master: Convert listen setting from string to boollist 
 
Markus Valentin  [Fri, 29 Dec 2023 08:50:20 +0000  (09:50 +0100)]  
 
master: Replace inet_listener { address } with the global listen config 
 
Markus Valentin  [Tue, 9 Jan 2024 14:29:36 +0000  (15:29 +0100)]  
 
config: old-set-parser: Remove protocol listen config changes 
 
Timo Sirainen  [Tue, 9 Jan 2024 14:28:58 +0000  (15:28 +0100)]  
 
config: Support replace and append for boollist settings 
 
Timo Sirainen  [Tue, 9 Jan 2024 23:06:44 +0000  (18:06 -0500)]  
 
lib-settings: settings_parse_array_stop() - Add support for SET_BOOLLIST 
 
Karl Fleischmann  [Thu, 8 Feb 2024 16:08:34 +0000  (17:08 +0100)]  
 
master: Default service_restart_request_count to SET_UINT_UNLIMITED 
 
Replace the implicit meaning of 0 as unlimited with the explicitly named 
value. 
 
Karl Fleischmann  [Thu, 8 Feb 2024 15:31:20 +0000  (16:31 +0100)]  
 
global: Rename service_count to restart_request_count 
 
Karl Fleischmann  [Thu, 8 Feb 2024 15:29:54 +0000  (16:29 +0100)]  
 
doc/example-config: Rename service_count in example config 
 
Karl Fleischmann  [Tue, 23 Jan 2024 09:36:41 +0000  (10:36 +0100)]  
 
lib-master, global: Restructure import_environment as strlist 
 
As master_service_import_environment() requires a key=value concatenated 
string of environment variables, the config parser as well as the master 
process need to concatenate the strlist setting appropriately. 
 
Karl Fleischmann  [Tue, 23 Jan 2024 09:37:46 +0000  (10:37 +0100)]  
 
lib-master: master_service_import_environment_real() - Expand variables in import_environment setting 
 
Karl Fleischmann  [Tue, 23 Jan 2024 07:36:14 +0000  (08:36 +0100)]  
 
doc/example-config: Update description of import_environment setting 
 
Karl Fleischmann  [Tue, 16 Jan 2024 12:34:17 +0000  (13:34 +0100)]  
 
lib-imap: imap_id_reply_generate() - Remove obsolete IMAP ID defaults resolving 
 
Karl Fleischmann  [Tue, 16 Jan 2024 12:32:42 +0000  (13:32 +0100)]  
 
imap: Convert imap_id_send to a strlist setting 
 
Karl Fleischmann  [Tue, 16 Jan 2024 12:31:14 +0000  (13:31 +0100)]  
 
imap-login: Convert imap_id_send to a strlist setting 
 
Karl Fleischmann  [Tue, 23 Jan 2024 17:17:10 +0000  (18:17 +0100)]  
 
lib: var-expand - Add os and os-version to system: key 
 
Karl Fleischmann  [Tue, 16 Jan 2024 12:30:14 +0000  (13:30 +0100)]  
 
lib: var-expand - Add dovecot key for distributions attributes 
 
Karl Fleischmann  [Thu, 11 Jan 2024 11:09:27 +0000  (12:09 +0100)]  
 
doc/example-config: Update description of imap_id_send setting 
 
Markus Valentin  [Tue, 6 Feb 2024 15:17:44 +0000  (16:17 +0100)]  
 
lib-http: http_request_parser_init() - Use the max_target_length from limits 
 
parser->max_target_length was always set to the 
HTTP_REQUEST_DEFAULT_MAX_TARGET_LENGTH. Now it can be also set via 
passing into http_request_parser_init() using the http_request_limits. 
 
Markus Valentin  [Wed, 6 Dec 2023 12:42:07 +0000  (13:42 +0100)]  
 
doveadm: Move doveadm_http_server from client-connection-http to main 
 
Markus Valentin  [Wed, 6 Dec 2023 11:08:28 +0000  (12:08 +0100)]  
 
doveadm: Use http_server_init_auto() 
 
This adds doveadm_server { .. } named filter, which can be used to override 
http-server settings. The following settings were replaced: 
 
* doveadm_http_rawlog_dir -> http_server_rawlog_dir 
 
Markus Valentin  [Wed, 6 Dec 2023 10:11:19 +0000  (11:11 +0100)]  
 
stats: Use http_server_init_auto() 
 
This adds stats_server { .. } named filter, which can be used to override 
http-server settings. The following settings were replaced: 
 
 * stats_http_rawlog_dir-> http_server_rawlog_dir 
 
Markus Valentin  [Fri, 8 Dec 2023 09:49:25 +0000  (10:49 +0100)]  
 
lib-http: Add http_server_init_auto() 
 
Markus Valentin  [Tue, 28 Nov 2023 10:30:16 +0000  (11:30 +0100)]  
 
lib-http: Add http_server_request_get_server() 
 
Markus Valentin  [Wed, 6 Dec 2023 10:10:06 +0000  (11:10 +0100)]  
 
lib-http: test_server_defaults() - Rely on http_server_settings_init() 
 
Markus Valentin  [Tue, 5 Dec 2023 15:11:59 +0000  (16:11 +0100)]  
 
lib-http: http_server_init() - Use settings struct pointer from arguments 
 
No longer create and fill a new settings struct but use the one which is 
passed as an argument. 
 
Markus Valentin  [Thu, 11 Jan 2024 14:59:11 +0000  (15:59 +0100)]  
 
lib-http: Replace http_server_settings.ssl with http_server_set_ssl_settings() 
 
Markus Valentin  [Tue, 5 Dec 2023 13:50:54 +0000  (14:50 +0100)]  
 
lib-http: Make http-server settings a pointer 
 
This is needed in order to support the new settings structure where 
setting structs are retrieved and used as references. This makes it 
unnecessary to have a copy of the settings struct as part of 
http_server. 
 
Markus Valentin  [Mon, 4 Dec 2023 14:22:41 +0000  (15:22 +0100)]  
 
lib-http: Use connection specific http-server settings 
 
Markus Valentin  [Mon, 4 Dec 2023 14:15:24 +0000  (15:15 +0100)]  
 
lib-http: Remove debug from http-server-settings 
 
Markus Valentin  [Mon, 4 Dec 2023 13:09:58 +0000  (14:09 +0100)]  
 
lib-http: Remove event from http-server-settings struct 
 
This requires changes to functions calling http_server_init() 
 
Markus Valentin  [Thu, 23 Nov 2023 13:20:52 +0000  (14:20 +0100)]  
 
lib-http: Add http-server-settings.c 
 
Markus Valentin  [Mon, 4 Dec 2023 11:37:07 +0000  (12:37 +0100)]  
 
lib-http: Expand http_server_settings.request_limits to separate settings 
 
This simplifies the following changes. 
 
Timo Sirainen  [Fri, 2 Feb 2024 09:51:29 +0000  (11:51 +0200)]  
 
mail-crypt: Convert crypt_private_key and crypt_global_public_key to file type 
 
Timo Sirainen  [Thu, 1 Feb 2024 15:03:41 +0000  (17:03 +0200)]  
 
lib-ssl-iostream: Remove unused ssl_iostream_settings.ca_file 
 
Timo Sirainen  [Thu, 1 Feb 2024 15:02:56 +0000  (17:02 +0200)]  
 
lib-ldap, lib-http: Use ssl_iostream_settings.ca instead of ca_file 
 
Timo Sirainen  [Thu, 1 Feb 2024 14:54:34 +0000  (16:54 +0200)]  
 
lib-ssl-iostream: Merge and convert ssl_client_ca into ssl_client_ca_file 
 
Timo Sirainen  [Thu, 1 Feb 2024 14:46:02 +0000  (16:46 +0200)]  
 
lib-ssl-iostream: Convert ssl_ca setting to ssl_ca_file 
 
Timo Sirainen  [Thu, 1 Feb 2024 14:36:53 +0000  (16:36 +0200)]  
 
lib-ssl-iostream: Convert ssl_dh setting to ssl_dh_file 
 
Timo Sirainen  [Thu, 1 Feb 2024 13:24:37 +0000  (15:24 +0200)]  
 
lib-ssl-iostream: Convert ssl_client_cert/key setting to ssl_client_cert/key_file 
 
Timo Sirainen  [Thu, 1 Feb 2024 13:17:45 +0000  (15:17 +0200)]  
 
lib-ssl-iostream, global: Convert ssl_[alt_]key setting to ssl_[alt_]key_file 
 
Timo Sirainen  [Thu, 1 Feb 2024 12:19:12 +0000  (14:19 +0200)]  
 
lib-ssl-iostream, global: Convert ssl_[alt_]cert setting to ssl_[alt_]cert_file 
 
Timo Sirainen  [Fri, 15 Nov 2024 13:41:20 +0000  (15:41 +0200)]  
 
mail-crypt: Fix test keys to be inline 
 
Timo Sirainen  [Fri, 2 Feb 2024 11:29:38 +0000  (13:29 +0200)]  
 
lib-settings, config: Support inline settings for SET_FILE 
 
All SET_FILE setting names must end with "_file". If the setting is 
given without the "_file" suffix, the value is the inline content 
instead of the file path. 
 
Timo Sirainen  [Tue, 30 Jan 2024 16:29:59 +0000  (18:29 +0200)]  
 
config: Implement SET_FILE 
 
Timo Sirainen  [Sat, 3 Feb 2024 21:58:26 +0000  (23:58 +0200)]  
 
config: Move delay_errors check into config_apply_error() 
 
This simplifies the next commit. 
 
Timo Sirainen  [Fri, 2 Feb 2024 07:49:21 +0000  (09:49 +0200)]  
 
config: Move config_apply_error() ealier 
 
Timo Sirainen  [Fri, 2 Feb 2024 08:18:12 +0000  (10:18 +0200)]  
 
config: Move fix_relative_path() earlier 
 
Timo Sirainen  [Mon, 29 Jan 2024 20:24:26 +0000  (22:24 +0200)]  
 
lib-settings: Add SET_FILE type 
 
The string contains file's path, newline and file contents. 
If the newline is missing, the file is read immediately. 
 
Timo Sirainen  [Tue, 30 Jan 2024 16:29:17 +0000  (18:29 +0200)]  
 
config: Add setting name as prefix to error messages when possible 
 
Timo Sirainen  [Tue, 9 Jan 2024 22:10:39 +0000  (17:10 -0500)]  
 
lib-settings, config: Don't allow named list filters to begin with "__" 
 
These are reserved for filters created in the code. 
 
Timo Sirainen  [Mon, 8 Jan 2024 04:00:16 +0000  (23:00 -0500)]  
 
lib-settings: Remove unused settings_try_get() 
 
This isn't likely to be used after all. Most named filters have default 
settings, so there is no distinction between existing and nonexistent 
filter. 
 
Timo Sirainen  [Mon, 8 Jan 2024 03:58:18 +0000  (22:58 -0500)]  
 
lib-settings, config: Remove SET_FILTER_HIERARCHY 
 
Now that lib-fs is configured with named list filters, there is no more need 
for this type of a hierarchical setting. 
 
Timo Sirainen  [Tue, 2 Jan 2024 22:24:28 +0000  (17:24 -0500)]  
 
lib-fs, global: Redesign how fs hierarchy is configured 
 
The new way is to use e.g.: 
 
fs metawrap { 
} 
fs posix { 
} 
 
This tells metawrap to use the next fs list filter (= posix) as the next fs. 
 
It's also possible to configure the same fs multiple times by using 
different names for them: 
 
fs metawrap1 { 
  fs_driver = metawrap 
} 
fs metawrap2 { 
  fs_driver = metawrap 
} 
 
Timo Sirainen  [Tue, 2 Jan 2024 22:23:59 +0000  (17:23 -0500)]  
 
config: Allow setting_define.required_setting to be a named list filter 
 
Timo Sirainen  [Tue, 2 Jan 2024 21:09:17 +0000  (16:09 -0500)]  
 
lib-settings, lib-storage: Support replacing the whole named list filter 
 
Using list_filter=value now replaces the filter, while list_filter+=value 
appends to it (which is the old behavior without "+"). 
 
For example -o namespace+=foo,foo2 adds two new namespaces, but 
-o namespace=foo,foo2 only keeps the two namespaces. 
 
Timo Sirainen  [Fri, 26 Jan 2024 15:10:06 +0000  (17:10 +0200)]  
 
auth: Add userdb_use_cache setting 
 
Timo Sirainen  [Fri, 26 Jan 2024 15:09:20 +0000  (17:09 +0200)]  
 
auth: Add passdb_use_cache setting 
 
Timo Sirainen  [Thu, 18 Jan 2024 00:11:19 +0000  (19:11 -0500)]  
 
auth: passdb/userdb passwd-file - Convert to new settings 
 
Timo Sirainen  [Wed, 17 Jan 2024 23:56:43 +0000  (18:56 -0500)]  
 
auth: Add userdb_module_interface.preinit() with new API 
 
Timo Sirainen  [Wed, 17 Jan 2024 23:55:17 +0000  (18:55 -0500)]  
 
auth: Add passdb_module_interface.preinit() with new API 
 
Timo Sirainen  [Thu, 18 Jan 2024 20:20:29 +0000  (15:20 -0500)]  
 
auth: Remove support for sharing passdb/userdb_module by mutiple auth_passdb/userdb 
 
This isn't very useful. The sharing of memory/connections is wanted between 
both passdb and userdb in any case, which is what all the passdbs/userdbs 
already do. Sharing of passdb_module would reduce memory usage only 
trivialy, but it makes the more complex, especially after the following 
API changes. 
 
Timo Sirainen  [Wed, 17 Jan 2024 23:50:35 +0000  (18:50 -0500)]  
 
auth: Use named initializers for userdb_module_interface 
 
Timo Sirainen  [Wed, 17 Jan 2024 23:47:41 +0000  (18:47 -0500)]  
 
auth: Rename userdb_module_interface.preinit() to preinit_legacy() 
 
Timo Sirainen  [Wed, 17 Jan 2024 23:47:03 +0000  (18:47 -0500)]  
 
auth: Use named initializers for passdb_module_interface 
 
Timo Sirainen  [Wed, 17 Jan 2024 23:42:59 +0000  (18:42 -0500)]  
 
auth: Rename passdb_module_interface.preinit() to preinit_legacy() 
 
Timo Sirainen  [Wed, 17 Jan 2024 23:08:51 +0000  (18:08 -0500)]  
 
auth: Add userdb_use_worker settings 
 
This will be used by userdbs as they are converted to new settings. 
 
Timo Sirainen  [Wed, 17 Jan 2024 23:07:37 +0000  (18:07 -0500)]  
 
auth: Add passdb_default_password_scheme and passdb_use_worker settings 
 
These will be used by passdbs as they are converted to new settings. 
 
Timo Sirainen  [Thu, 11 Jan 2024 18:32:55 +0000  (13:32 -0500)]  
 
auth: Change userdb_default_fields and userdb_override_fields to be strlist 
 
Similarly to the previous passdb change, these settings were moved to their 
own structs. 
 
Timo Sirainen  [Thu, 11 Jan 2024 18:25:27 +0000  (13:25 -0500)]  
 
auth: Change passdb_default_fields and passdb_override_fields to be strlist 
 
Now that the %variable expansion is done by settings lookups, they had to 
be moved to their own settings structs that are looked up at appropriate 
times. Especially the override_fields must be looked up only after the 
passdb lookup has finished, since it can refer to extra fields returned by 
it. 
 
Timo Sirainen  [Wed, 17 Jan 2024 21:45:26 +0000  (16:45 -0500)]  
 
auth: Support expanding variables for passdb/userdb settings 
 
Timo Sirainen  [Thu, 11 Jan 2024 18:01:07 +0000  (13:01 -0500)]  
 
auth: Change auth_request_get_log_prefix_db() to be static 
 
Now the only place it's called outside passdb/userdb lookups is while 
doing a userdb cache lookup. 
 
Timo Sirainen  [Thu, 11 Jan 2024 18:00:16 +0000  (13:00 -0500)]  
 
auth: Remove passdb prefix from "Master user lookup" debug log message 
 
It's not actually related to passdb. 
 
Timo Sirainen  [Thu, 11 Jan 2024 17:22:56 +0000  (12:22 -0500)]  
 
auth: Add and use auth_passdb.name & auth_userdb.name 
 
Timo Sirainen  [Thu, 11 Jan 2024 17:12:53 +0000  (12:12 -0500)]  
 
auth: Call auth_passdb_request_finished() only after the passdb handling is fully done 
 
This mainly clarifies the passdb handling code. It doesn't have any 
noticeable changes. 
 
Timo Sirainen  [Thu, 11 Jan 2024 17:02:23 +0000  (12:02 -0500)]  
 
auth: Log the same "user not found" error regardless of how many userdbs exist 
 
If a passdb lookup succeeded, but userdb lookup fails with "user not found", 
an error is logged. This error used to include the userdb prefix when there 
was only a single userdb configured. However, this is just unnecessary extra 
complexity and with one userdb it's not very useful anyway. 
 
Timo Sirainen  [Thu, 11 Jan 2024 17:15:45 +0000  (12:15 -0500)]  
 
auth: auth_request_get_log_prefix_db() - Don't check if passdb/userdb_name is empty 
 
It can't be empty anymore. 
 
Timo Sirainen  [Thu, 11 Jan 2024 16:27:47 +0000  (11:27 -0500)]  
 
auth: Remove passdb_auth_verbose and userdb_auth_verbose settings 
 
It's now possible to use the global auth_verbose setting inside passdb and 
userdb filters. 
 
Timo Sirainen  [Thu, 11 Jan 2024 16:10:35 +0000  (11:10 -0500)]  
 
auth: Support userdb-specific auth_settings 
 
Timo Sirainen  [Thu, 11 Jan 2024 16:09:13 +0000  (11:09 -0500)]  
 
auth: Support passdb-specific auth_settings 
 
Timo Sirainen  [Thu, 11 Jan 2024 16:13:35 +0000  (11:13 -0500)]  
 
auth: Rename struct auth.set to protocol_set 
 
This makes it easier to grep where it's actually being used in the code, 
since it's ideally used in as few places as possible. 
 
Timo Sirainen  [Thu, 11 Jan 2024 15:34:51 +0000  (10:34 -0500)]  
 
auth: Remove deprecated passdb_pass setting 
 
Timo Sirainen  [Thu, 11 Jan 2024 15:33:25 +0000  (10:33 -0500)]  
 
auth: Update deprecated passdb_pass checks to check also passdb_result_success=continue 
 
Timo Sirainen  [Tue, 30 Jan 2024 14:53:20 +0000  (16:53 +0200)]  
 
config: Try automatic parent filtername_ prefix for section names as well 
 
This is needed for e.g. passdb { default_fields { } } to work after the 
following changes. 
 
Marco Bettini  [Tue, 28 Nov 2023 11:38:23 +0000  (11:38 +0000)]  
 
fts: build-mail - Use fts-settings 
 
Marco Bettini  [Wed, 6 Dec 2023 18:05:54 +0000  (18:05 +0000)]  
 
fts: indexer - Use fts_settings 
 
Marco Bettini  [Tue, 19 Dec 2023 14:31:31 +0000  (14:31 +0000)]  
 
fts: parser - Use fts_settings for decoder script+tika 
 
Marco Bettini  [Mon, 4 Dec 2023 16:10:41 +0000  (16:10 +0000)]  
 
fts: storage - Use fts_settings for autoindex_exclude 
 
Marco Bettini  [Fri, 1 Dec 2023 11:05:42 +0000  (11:05 +0000)]  
 
fts: storage - Use fts_settings for autoindex 
 
Marco Bettini  [Fri, 1 Dec 2023 11:05:42 +0000  (11:05 +0000)]  
 
fts: storage - Use fts_settings for autoindex_max_recent_msgs 
 
Marco Bettini  [Fri, 1 Dec 2023 10:31:48 +0000  (10:31 +0000)]  
 
fts: storage - Use fts_settings for enforced 
 
Marco Bettini  [Mon, 27 Nov 2023 19:20:06 +0000  (19:20 +0000)]  
 
fts: storage - Use fts-settings for backend_name 
 
Marco Bettini  [Wed, 17 Jan 2024 15:18:15 +0000  (15:18 +0000)]  
 
fts: storage - Add fts_settings to struct fts_mailbox 
 
Timo Sirainen  [Fri, 10 May 2024 21:06:49 +0000  (00:06  +0300)]  
 
fts: Use fts_settings for message_max_size 
 
Marco Bettini  [Mon, 4 Dec 2023 14:56:17 +0000  (14:56 +0000)]  
 
fts: storage - Add fts_settings to struct fts_user 
 
Marco Bettini  [Fri, 24 Nov 2023 17:01:02 +0000  (17:01 +0000)]  
 
fts: Add struct fts_settings (Convert plugin settings to regular settings)