Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mimedefang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
mimedefang
Commits
daac619d
Commit
daac619d
authored
Jan 31, 2021
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configured spamassassin to use online tests
parent
f7fc3b52
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
0 deletions
+83
-0
Makefile
Makefile
+1
-0
mimedefang-filter
mimedefang-filter
+1
-0
spamassassin.cf
spamassassin.cf
+81
-0
No files found.
Makefile
View file @
daac619d
...
@@ -29,6 +29,7 @@ all: mimedefang-service mimedefang-multiplexor-service
...
@@ -29,6 +29,7 @@ all: mimedefang-service mimedefang-multiplexor-service
install
-v
-Dm755
mimedefang-wrapper /usr/libexec
install
-v
-Dm755
mimedefang-wrapper /usr/libexec
install
-v
-Dm644
mimedefang-filter /etc/mail
install
-v
-Dm644
mimedefang-filter /etc/mail
install
-v
-Dm644
mimedefang.conf /etc/default/mimedefang
install
-v
-Dm644
mimedefang.conf /etc/default/mimedefang
install
-v
-Dm644
spamassassin.cf /etc/mail/sa-mimedefang.cf
usermod
-aG
defang clamav
usermod
-aG
defang clamav
@
echo
"
$$
MIMEDEFANG_SERVICE"
>
/lib/systemd/system/mimedefang.service
@
echo
"
$$
MIMEDEFANG_SERVICE"
>
/lib/systemd/system/mimedefang.service
@
echo
"
$$
MIMEDEFANG_MULTIPLEXOR_SERVICE"
>
/lib/systemd/system/mimedefang-multiplexor.service
@
echo
"
$$
MIMEDEFANG_MULTIPLEXOR_SERVICE"
>
/lib/systemd/system/mimedefang-multiplexor.service
...
...
mimedefang-filter
View file @
daac619d
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#***********************************************************************
#***********************************************************************
$ClamdSock = '/run/clamav/clamd.ctl';
$ClamdSock = '/run/clamav/clamd.ctl';
$SALocalTestsOnly = 0;
#***********************************************************************
#***********************************************************************
# Set administrator's e-mail address here. The administrator receives
# Set administrator's e-mail address here. The administrator receives
...
...
spamassassin.cf
0 → 100644
View file @
daac619d
# SpamAssassin user preferences file.
#
# Format:
#
# required_hits n
# (how many hits are required to tag a mail as spam.)
#
# score SYMBOLIC_TEST_NAME n
# (if this is omitted, 1 is used as a default score.
# Set the score to 0 to ignore the test.)
#
# # starts a comment, whitespace is not significant.
#
# NOTE! In conjunction with MIMEDefang, SpamAssassin can *NOT* make any
# changes to the message header or body. Any SpamAssassin settings that
# relate to changing the message will have *NO EFFECT* when used from
# MIMEDefang. Instead, use the various MIMEDefang Perl functions if you
# need to alter the message.
###########################################################################
###########################################################################
# First of all, the generally useful stuff; thresholds and the whitelist
# of addresses which, for some reason or another, often trigger false
# positives.
required_hits 5
# Whitelist and blacklist addresses are *not* patterns; they're just normal
# strings. one exception is that "*@isp.com" is allowed. They should be in
# lower-case. You can either add multiple addrs on one line,
# whitespace-separated, or you can use multiple lines.
#
# whitelist_from friend@example.com
# Add your blacklist entries in the same format...
#
# blacklist_from enemy@example.net
# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
#
ok_locales en
# By default, the subject lines of suspected spam will be tagged.
# This can be disabled here.
#
rewrite_subject 0
# By default, spamassassin will include its report in the body
# of suspected spam. Enabling this causes the report to go in the
# headers instead. Using 'use_terse_report' for this is recommended.
#
report_header 1
# By default, SpamAssassin uses a fairly long report format.
# Enabling this uses a shorter format which includes all the
# information in the normal one, but without the superfluous
# explanations.
#
use_terse_report 1
# By default, spamassassin will change the Content-type: header of
# suspected spam to "text/plain". This is a safety feature. If you
# prefer to leave the Content-type header alone, set this to 0.
#
defang_mime 0
# By default, SpamAssassin will run RBL checks. If your ISP already
# does this, set this to 1.
skip_rbl_checks 0
###########################################################################
# Add your own customised scores for some tests below. The default scores are
# read from the installed "spamassassin.cf" file, but you can override them
# here. To see the list of tests and their default scores, go to
# http://spamassassin.taint.org/tests.html .
use_dcc 1
dcc_timeout 10
dcc_path /usr/bin/dccproc
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment