spam filter + postscreen
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Mauro Torrez 2020-02-04 19:35:29 -03:00
parent a4bdd65907
commit da425bb560
2 changed files with 5 additions and 1 deletions

View File

@ -67,4 +67,3 @@ postconf -F spamfilter/unix/private=- \
spamfilter/unix/wakeup=- \ spamfilter/unix/wakeup=- \
spamfilter/unix/process_limit=- \ spamfilter/unix/process_limit=- \
spamfilter/unix/command='pipe flags=Rq user=vmail argv=/usr/local/bin/spamfilter -oi -f ${sender} ${recipient}' spamfilter/unix/command='pipe flags=Rq user=vmail argv=/usr/local/bin/spamfilter -oi -f ${sender} ${recipient}'
postconf -P smtpd/pass/content_filter=spamfilter

View File

@ -52,6 +52,10 @@ postconf -F dnsblog/unix/private=- \
dnsblog/unix/process_limit=0 \ dnsblog/unix/process_limit=0 \
dnsblog/unix/command="dnsblog" dnsblog/unix/command="dnsblog"
postconf -P smtpd/pass/content_filter=spamfilter
# FIXME: template tables instead of creating empty files # FIXME: template tables instead of creating empty files
touch /etc/postfix/rules/postscreen_access_list.cidr touch /etc/postfix/rules/postscreen_access_list.cidr
touch /etc/postfix/rules/postscreen_dnsbl_mask.pcre touch /etc/postfix/rules/postscreen_dnsbl_mask.pcre
@ -77,6 +81,7 @@ postconf -F smtp/inet/private=n \
smtp/inet/wakeup=- \ smtp/inet/wakeup=- \
smtp/inet/process_limit=- \ smtp/inet/process_limit=- \
smtp/inet/command="smtpd" smtp/inet/command="smtpd"
postconf -P smtp/inet/content_filter=spamfilter
postconf -M# dnsblog/unix postconf -M# dnsblog/unix
{{ end }} {{ end }}