From 5f737912e49af179fc9033bd7f49bbd3157cc100 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Tue, 4 Jun 2024 10:34:39 +0100 Subject: [PATCH] Untested fragment for apache conf to add web access to mailstats --- .../templates/etc/httpd/conf/httpd.conf/100mailstats | 9 +++++++++ root/usr/bin/mailstats.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/100mailstats diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/100mailstats b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/100mailstats new file mode 100644 index 0000000..800a854 --- /dev/null +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/100mailstats @@ -0,0 +1,9 @@ + # Alias for mailstats + Alias "/mailstats" "/opt/mailstats/html" + + + Options Indexes FollowSymLinks + AllowOverride None + Require all granted + + diff --git a/root/usr/bin/mailstats.py b/root/usr/bin/mailstats.py index 88ca01a..ed02fb5 100644 --- a/root/usr/bin/mailstats.py +++ b/root/usr/bin/mailstats.py @@ -614,7 +614,7 @@ if __name__ == "__main__": DMARCOkCount += 1 continue - print(f"J:{j} I:{i}") + #print(f"J:{j} I:{i}") #Now apply the results to the chameleon template - main table # Path to the template file template_path = template_dir+'mailstats.html.pt'