You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-27 00:41:00 +02:00
Fix2805
This commit is contained in:
@ -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)";
|
||||||
|
@ -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"
|
||||||
|
@ -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";
|
||||||
|
@ -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:
|
||||||
|
1
towncrier/newsfragments/2805.bugfix
Normal file
1
towncrier/newsfragments/2805.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix SCAN_MACROS: OLETOOLS wasn't always enabled/disabled like it should have been
|
Reference in New Issue
Block a user