Commit 837355a6 authored by Paul Cammish's avatar Paul Cammish
Browse files

Fixes #310

parent 0be5412c
CHANGELOG
---------
2021-04-08
sympl-mail
* Fix tag option not working correctly for antispam and antivirus configs
2021-02-15
all packages
* Updated version numbering format
......@@ -30,7 +34,7 @@ CHANGELOG
* Removed deprecated php-mcrypt
sympl-core
* Updated MOTD version number
2020-09-23
sympl-core
* Properly filter public/cgi-bin
......
sympl-mail (11.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 (11.20210215.0) stable; urgency=medium
* Updated version numbering format
......@@ -21,7 +27,7 @@ sympl-mail (11.210209.0) stable; urgency=medium
* Updated version for Debian Bullseye
-- Paul Cammish <sympl@kelduum.net> Tue, 09 Feb 2021 14:56:02 +0000
sympl-mail (10.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_data}/VHOST_CONFIG_DIR/antispam}}}}{\Nr..$\N}{\
${if match{${readfile{VHOST_DIR/${domain_data}/VHOST_CONFIG_DIR/antispam}}}{^tag}{tag}{reject}}\
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_data}/VHOST_CONFIG_DIR/antivirus}}}}{\Nr..$\N}{\
${if match{${readfile{VHOST_DIR/${domain_data}/VHOST_CONFIG_DIR/antivirus}}}{^tag}{tag}{reject}}\
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}}
Supports Markdown
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