eximconf: add an explanatory comment for default options
authorAdam D. Barratt <adam@adam-barratt.org.uk>
Tue, 22 Oct 2019 16:49:04 +0000 (17:49 +0100)
committerAdam D. Barratt <adam@adam-barratt.org.uk>
Fri, 25 Oct 2019 16:32:17 +0000 (17:32 +0100)
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
modules/exim/templates/eximconf.erb

index 4001554..5db40f3 100644 (file)
@@ -307,6 +307,9 @@ GREYLIST_LOCAL_PARTS = ${if match_domain{$domain}{+virtual_domains}\
                        {${lookup{$local_part}lsearch*{${extract{directory}{VDOMAINDATA}{${value}/grey_users}}}{$local_part}{}}}{}}}\
                        {${lookup{$local_part}lsearch{/etc/exim4/grey_users}{$local_part}{}}}} : \
                        ${lookup{$local_part}lsearch{/var/lib/misc/$primary_hostname/mail-greylist}{$local_part}{}}
+# Users from LDAP can decide whether to subscribe to default filtering.
+# If a user has not explicitly disabled the option, the assumption is in
+# favour of filtering.
 HAS_DEFAULT_OPTIONS = ${if and {\
                        {eq{${lookup{$local_part}dbmnz{/var/lib/misc/$primary_hostname/default-mail-options.db}{$value}{TRUE}}}{TRUE}}\
                        {exists{${extract{directory}{VDOMAINDATA}{${value}/mail-forward.db}}}}\