spam filter + postscreen
This commit is contained in:
parent
a4bdd65907
commit
da425bb560
@ -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
|
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user