feat: allow disabling bogofilter
This commit is contained in:
@@ -52,9 +52,11 @@ postconf -F dnsblog/unix/private=- \
|
||||
dnsblog/unix/process_limit=0 \
|
||||
dnsblog/unix/command="dnsblog"
|
||||
|
||||
|
||||
{{ if eq (getv "/bogofilter/enable") "yes" }}
|
||||
postconf -P smtpd/pass/content_filter=spamfilter
|
||||
|
||||
{{ else }}
|
||||
postconf -X -P smtpd/pass/content_filter
|
||||
{{ end }}
|
||||
|
||||
# FIXME: template tables instead of creating empty files
|
||||
touch /etc/postfix/rules/postscreen_access_list.cidr
|
||||
@@ -81,7 +83,13 @@ postconf -F smtp/inet/private=n \
|
||||
smtp/inet/wakeup=- \
|
||||
smtp/inet/process_limit=- \
|
||||
smtp/inet/command="smtpd"
|
||||
|
||||
{{ if eq (getv "/bogofilter/enable") "yes" }}
|
||||
postconf -P smtp/inet/content_filter=spamfilter
|
||||
{{ else }}
|
||||
postconf -X -P smtp/inet/content_filter
|
||||
{{ end }}
|
||||
|
||||
postconf -M# dnsblog/unix
|
||||
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user