Commit 80e347f4 authored by Paul Cammish's avatar Paul Cammish
Browse files

Fixes #310

parent d5e5bcc0
CHANGELOG
---------
2021-04-08
sympl-mail
* Fix tag option not working correctly for antispam and antivirus configs
2020-09-23
sympl-core
* Properly filter public/cgi-bin
......
sympl-mail (9.20210408.0) stable; urgency=medium
* Fixed readable check for antispam and antivirus configs
-- Paul Cammish <sympl@kelduum.net> Thu, 08 Apr 2021 15:18:19 +0100
sympl-mail (9.0.200418.0) stable; urgency=medium
* Fixed sympl-mail-dovecot-sni issue with filesystem loops (#281)
......
......@@ -19,11 +19,11 @@
}}\
}
# Reuse acl_m0 since we don't need it any more. If it contains tag,
# then the message will be accepted, and tagged, else we reject the
# mail.
# Reuse acl_m0 since we don't need it any more. If it is readable and
# starts with 'tag', then the message will be accepted and tagged, else
# we reject the mail.
set acl_m0 = ${if match{${extract{smode}{${stat:VHOST_DIR/${domain}/VHOST_CONFIG_DIR/antispam}}}}{\Nr..$\N}{\
set acl_m0 = ${if match{${extract{smode}{${stat:VHOST_DIR/${domain}/VHOST_CONFIG_DIR/antispam}}}}{\Nr\N}{\
${if match{${readfile{VHOST_DIR/${domain}/VHOST_CONFIG_DIR/antispam}}}{^tag}{tag}{reject}}\
}{reject}}
......@@ -5,7 +5,7 @@
{!eq{$acl_m2}{tag}} \
}}
set acl_m2 = ${if match{${extract{smode}{${stat:VHOST_DIR/${domain}/VHOST_CONFIG_DIR/antivirus}}}}{\Nr..$\N}{\
set acl_m2 = ${if match{${extract{smode}{${stat:VHOST_DIR/${domain}/VHOST_CONFIG_DIR/antivirus}}}}{\Nr\N}{\
${if match{${readfile{VHOST_DIR/${domain}/VHOST_CONFIG_DIR/antivirus}}}{^tag}{tag}{reject}}\
}{reject}}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment