add spam filter
This commit is contained in:
@@ -57,3 +57,14 @@ postconf maillog_file=/dev/stdout
|
||||
{{ with getv "/message/size/limit" }}postconf message_size_limit='{{.}}'{{ end }}
|
||||
{{ with getv "/smtpd/helo/required" }}postconf smtpd_helo_required='{{.}}'{{ end }}
|
||||
{{ with getv "/biff" }}postconf biff='{{.}}'{{ end }}
|
||||
|
||||
postconf -M spamfilter/unix | grep -q spamfilter || {
|
||||
postconf -M spamfilter/unix="spamfilter unix - n n - - pipe"
|
||||
}
|
||||
postconf -F spamfilter/unix/private=- \
|
||||
spamfilter/unix/unprivileged=n \
|
||||
spamfilter/unix/chroot=n \
|
||||
spamfilter/unix/wakeup=- \
|
||||
spamfilter/unix/process_limit=- \
|
||||
spamfilter/unix/command='pipe flags=Rq user=vmail argv=/usr/local/bin/spamfilter -oi -f ${sender} ${recipient}'
|
||||
postconf -P smtp/inet/content_filter=spamfilter
|
||||
|
||||
Reference in New Issue
Block a user