1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-06-27 00:41:00 +02:00
This commit is contained in:
Florent Daigniere
2023-05-05 19:50:49 +02:00
parent f2435f6964
commit bee8ce9357
5 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
{% if SCAN_MACROS == 'True' %} {% if SCAN_MACROS %}
OLETOOLS_MACRO_MRAPTOR { OLETOOLS_MACRO_MRAPTOR {
expression = "(OLETOOLS_A & OLETOOLS_W) | (OLETOOLS_A & OLETOOLS_X) | (OLETOOLS_W & OLETOOLS_X)"; expression = "(OLETOOLS_A & OLETOOLS_W) | (OLETOOLS_A & OLETOOLS_X) | (OLETOOLS_W & OLETOOLS_X)";
message = "Rejected (malicious macro - mraptor)"; message = "Rejected (malicious macro - mraptor)";

View File

@ -1,4 +1,4 @@
{% if SCAN_MACROS == 'True' %} {% if SCAN_MACROS %}
oletools { oletools {
# default olefy settings # default olefy settings
servers = "{{ OLETOOLS_ADDRESS }}:11343" servers = "{{ OLETOOLS_ADDRESS }}:11343"

View File

@ -1,5 +1,4 @@
{% if SCAN_MACROS %}
{% if SCAN_MACROS == 'True' %}
# local.d/external_services_group.conf # local.d/external_services_group.conf
description = "Oletools content rules"; description = "Oletools content rules";

View File

@ -9,13 +9,13 @@ import sys
import time import time
from socrate import system,conf from socrate import system,conf
system.set_env() env = system.set_env()
# Actual startup script # Actual startup script
config_files = [] config_files = []
for rspamd_file in glob.glob("/conf/*"): for rspamd_file in glob.glob("/conf/*"):
conf.jinja(rspamd_file, os.environ, os.path.join("/etc/rspamd/local.d", os.path.basename(rspamd_file))) conf.jinja(rspamd_file, env, os.path.join("/etc/rspamd/local.d", os.path.basename(rspamd_file)))
config_files.append(os.path.basename(rspamd_file)) config_files.append(os.path.basename(rspamd_file))
for override_file in glob.glob("/overrides/*"): for override_file in glob.glob("/overrides/*"):
@ -23,7 +23,7 @@ for override_file in glob.glob("/overrides/*"):
shutil.copyfile(override_file, os.path.join("/etc/rspamd/local.d", os.path.basename(override_file))) shutil.copyfile(override_file, os.path.join("/etc/rspamd/local.d", os.path.basename(override_file)))
# Admin may not be up just yet # Admin may not be up just yet
healthcheck = f'http://{os.environ["ADMIN_ADDRESS"]}/internal/rspamd/local_domains' healthcheck = f'http://{env["ADMIN_ADDRESS"]}/internal/rspamd/local_domains'
while True: while True:
time.sleep(1) time.sleep(1)
try: try:

View File

@ -0,0 +1 @@
Fix SCAN_MACROS: OLETOOLS wasn't always enabled/disabled like it should have been