diff --git a/core/rspamd/conf/composites.conf b/core/rspamd/conf/composites.conf index 62236081..68e03073 100644 --- a/core/rspamd/conf/composites.conf +++ b/core/rspamd/conf/composites.conf @@ -1,3 +1,4 @@ +{% if SCAN_MACROS == 'True' %} OLETOOLS_MACRO_MRAPTOR { expression = "(OLETOOLS_A & OLETOOLS_W) | (OLETOOLS_A & OLETOOLS_X) | (OLETOOLS_W & OLETOOLS_X)"; message = "Rejected (malicious macro - mraptor)"; @@ -10,3 +11,4 @@ OLETOOLS_MACRO_SUSPICIOUS { policy = "leave"; score = 20.0; } +{% endif %} diff --git a/core/rspamd/conf/external_services.conf b/core/rspamd/conf/external_services.conf index 678cdb96..00285984 100644 --- a/core/rspamd/conf/external_services.conf +++ b/core/rspamd/conf/external_services.conf @@ -1,3 +1,4 @@ +{% if SCAN_MACROS == 'True' %} oletools { # default olefy settings servers = "{{ OLETOOLS_ADDRESS }}" @@ -60,3 +61,4 @@ oletools { slk = "slk"; } } +{% endif %} diff --git a/core/rspamd/conf/external_services_group.conf b/core/rspamd/conf/external_services_group.conf index a22c5878..0b44b229 100644 --- a/core/rspamd/conf/external_services_group.conf +++ b/core/rspamd/conf/external_services_group.conf @@ -1,3 +1,4 @@ +{% if SCAN_MACROS == 'True' %} # local.d/external_services_group.conf description = "Oletools content rules"; @@ -36,3 +37,4 @@ symbols = { one_shot = true; }, } +{% endif %}