* - strict_multiplier (number): multiplier for strict domains
* - time_jitter (number): jitter in seconds to allow time diff while checking
* - trusted_only (flag): check signatures only for domains in 'domains' map
- * - skip_mutli (flag): skip messages with multiply dkim signatures
*/
gint sign_condition_ref;
guint max_sigs;
gboolean trusted_only;
- gboolean skip_multi;
gboolean check_local;
gboolean check_authed;
};
0,
NULL,
0);
- rspamd_rcl_add_doc_by_path (cfg,
- "dkim",
- "Do not check messages with multiple DKIM signatures",
- "skip_multi",
- UCL_BOOLEAN,
- NULL,
- 0,
- NULL,
- 0);
rspamd_rcl_add_doc_by_path (cfg,
"dkim",
"Lua script that tells if a message should be signed and with what params",
dkim_module_ctx->trusted_only = FALSE;
}
- if ((value =
- rspamd_config_get_module_opt (cfg, "dkim", "skip_multi")) != NULL) {
- dkim_module_ctx->skip_multi = ucl_object_toboolean (value);
- }
- else {
- dkim_module_ctx->skip_multi = FALSE;
- }
-
if ((value =
rspamd_config_get_module_opt (cfg, "dkim", "sign_headers")) != NULL) {
dkim_module_ctx->sign_headers = ucl_object_tostring (value);
DL_APPEND (res, cur);
}
- if (dkim_module_ctx->skip_multi) {
- if (hlist->len > 1) {
- msg_info_task ("message has multiple signatures but we"
- " check only one as 'skip_multi' is set");
- }
-
- break;
- }
-
checked ++;
if (checked > dkim_module_ctx->max_sigs) {