Add basic antispam filter rules to Mailman

This commit is contained in:
Aurélien Bompard 2015-11-10 13:52:23 +00:00
parent 76cf6ef15d
commit d23d4b20f4
2 changed files with 48 additions and 0 deletions

View file

@ -45,6 +45,30 @@ enable: yes
enable: yes
[antispam]
# This section defines basic antispam detection settings.
# This value contains lines which specify RFC 822 headers in the email to
# check for spamminess. Each line contains a `key: value` pair, where the key
# is the header to check and the value is a Python regular expression to match
# against the header's value. E.g.:
#
# X-Spam: (yes|maybe)
#
# The header value and regular expression are always matched
# case-insensitively.
header_checks:
X-Spam: yes
X-Spam-Flag: Yes
X-Spam-Status: Yes
# The chain to jump to if any of the header patterns matches. This must be
# the name of an existing chain such as 'discard', 'reject', 'hold', or
# 'accept', otherwise 'hold' will be used.
jump_chain: hold
# http://www.lingoes.net/en/translator/langcode.htm
[language.pt]

View file

@ -42,6 +42,30 @@ configuration: {{ mailman_webui_confdir }}/mailman-hyperkitty.cfg
enable: yes
[antispam]
# This section defines basic antispam detection settings.
# This value contains lines which specify RFC 822 headers in the email to
# check for spamminess. Each line contains a `key: value` pair, where the key
# is the header to check and the value is a Python regular expression to match
# against the header's value. E.g.:
#
# X-Spam: (yes|maybe)
#
# The header value and regular expression are always matched
# case-insensitively.
header_checks:
X-Spam: yes
X-Spam-Flag: Yes
X-Spam-Status: Yes
# The chain to jump to if any of the header patterns matches. This must be
# the name of an existing chain such as 'discard', 'reject', 'hold', or
# 'accept', otherwise 'hold' will be used.
jump_chain: hold
# http://www.lingoes.net/en/translator/langcode.htm
[language.pt]