.drop_priv_before_exec = FALSE,
+#ifndef DOVECOT_PRO_EDITION
.restart_request_count = 1,
+#endif
.unix_listeners = ARRAY_INIT,
.fifo_listeners = ARRAY_INIT,
{ "service/imap-login/imap_capability/LITERAL+", "yes" },
{ "service/imap-login/imap_capability/LITERAL-", "yes" },
{ "imap_id_send/name", DOVECOT_NAME },
+#ifdef DOVECOT_PRO_EDITION
+ { "service/imap-login/service_process_limit", "%{system:cpu_count}" },
+ { "service/imap-login/service_process_min_avail", "%{system:cpu_count}" },
+#endif
{ NULL, NULL },
};
.drop_priv_before_exec = FALSE,
+#ifndef DOVECOT_PRO_EDITION
.restart_request_count = 1,
+#endif
.unix_listeners = ARRAY_INIT,
.fifo_listeners = ARRAY_INIT,
{ NULL, NULL }
};
+static const struct setting_keyvalue pop3_login_default_settings_keyvalue[] = {
+#ifdef DOVECOT_PRO_EDITION
+ { "service/pop3-login/service_process_limit", "%{system:cpu_count}" },
+ { "service/pop3-login/service_process_min_avail", "%{system:cpu_count}" },
+#endif
+ { NULL, NULL },
+};
+
static const struct setting_define pop3_login_setting_defines[] = {
SETTING_DEFINE_LIST_END
};
.name = "pop3_login",
.defines = pop3_login_setting_defines,
+ .default_settings = pop3_login_default_settings_keyvalue,
};
.drop_priv_before_exec = FALSE,
+#ifndef DOVECOT_PRO_EDITION
.restart_request_count = 1,
+#endif
.unix_listeners = ARRAY_INIT,
.fifo_listeners = ARRAY_INIT,
.submission_backend_capabilities = ARRAY_INIT,
};
+static const struct setting_keyvalue submission_login_default_settings_keyvalue[] = {
+#ifdef DOVECOT_PRO_EDITION
+ { "service/submission-login/service_process_limit", "%{system:cpu_count}" },
+ { "service/submission-login/service_process_min_avail", "%{system:cpu_count}" },
+#endif
+ { NULL, NULL },
+};
+
const struct setting_parser_info submission_login_setting_parser_info = {
.name = "submission_login",
.defines = submission_login_setting_defines,
.defaults = &submission_login_default_settings,
+ .default_settings = submission_login_default_settings_keyvalue,
.struct_size = sizeof(struct submission_login_settings),
.pool_offset1 = 1 + offsetof(struct submission_login_settings, pool),