From 66a658a760b4fd05a45cf21150e34f04fbf62a9e Mon Sep 17 00:00:00 2001 From: Hans Wurst Date: Tue, 11 Aug 2015 17:14:47 +0200 Subject: [PATCH] committing changes in /etc after emerge run Package changes: +mail-filter/spamassassin-3.4.1 --- init.d/._cfg0000_spamd | 44 ++++++++++++++ mail/spamassassin/._cfg0000_init.pre | 36 +++++++++++ mail/spamassassin/._cfg0000_local.cf | 89 ++++++++++++++++++++++++++++ mail/spamassassin/v340.pre | 21 +++++++ mail/spamassassin/v341.pre | 28 +++++++++ spamassassin | 1 + 6 files changed, 219 insertions(+) create mode 100755 init.d/._cfg0000_spamd create mode 100644 mail/spamassassin/._cfg0000_init.pre create mode 100644 mail/spamassassin/._cfg0000_local.cf create mode 100644 mail/spamassassin/v340.pre create mode 100644 mail/spamassassin/v341.pre create mode 120000 spamassassin diff --git a/init.d/._cfg0000_spamd b/init.d/._cfg0000_spamd new file mode 100755 index 0000000..c1c834d --- /dev/null +++ b/init.d/._cfg0000_spamd @@ -0,0 +1,44 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# NB: Config is in /etc/conf.d/spamd + +# Provide a default location if they haven't in /etc/conf.d/spamd +PIDFILE=${PIDFILE:-/run/spamd.pid} + +extra_started_commands="reload" + +depend() { + need net + before mta + use logger +} + +start() { + ebegin "Starting spamd" + start-stop-daemon --start --quiet \ + --name spamd \ + --nicelevel ${SPAMD_NICELEVEL:-0} \ + --pidfile ${PIDFILE} \ + --exec /usr/sbin/spamd -- -d -r ${PIDFILE} \ + ${SPAMD_OPTS} + retval=$? + if ! [ -f "${PIDFILE}" ]; then + sleep 1 + fi + eend ${retval} "Failed to start spamd" +} + +stop() { + ebegin "Stopping spamd" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + eend $? "Failed to stop spamd" +} + +reload() { + ebegin "Reloading configuration" + start-stop-daemon --signal HUP --quiet --pidfile ${PIDFILE} + eend $? +} diff --git a/mail/spamassassin/._cfg0000_init.pre b/mail/spamassassin/._cfg0000_init.pre new file mode 100644 index 0000000..33c3bc2 --- /dev/null +++ b/mail/spamassassin/._cfg0000_init.pre @@ -0,0 +1,36 @@ +# This is the right place to customize your installation of SpamAssassin. +# +# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be +# tweaked. +# +# This file contains plugin activation commands for plugins included +# in SpamAssassin 3.0.x releases. It will not be installed if you +# already have a file in place called "init.pre". +# +# There are now multiple files read to enable plugins in the +# /etc/mail/spamassassin directory; previously only one, "init.pre" was +# read. Now both "init.pre", "v310.pre", and any other files ending in +# ".pre" will be read. As future releases are made, new plugins will be +# added to new files, named according to the release they're added in. +########################################################################### + +# RelayCountry - add metadata for Bayes learning, marking the countries +# a message was relayed through +# +# Note: This requires the Geo::IP Perl module +# +# loadplugin Mail::SpamAssassin::Plugin::RelayCountry + +# URIDNSBL - look up URLs found in the message against several DNS +# blocklists. +# +#loadplugin Mail::SpamAssassin::Plugin::URIDNSBL + +# Hashcash - perform hashcash verification. +# +#loadplugin Mail::SpamAssassin::Plugin::Hashcash + +# SPF - perform SPF verification. +# +#loadplugin Mail::SpamAssassin::Plugin::SPF + diff --git a/mail/spamassassin/._cfg0000_local.cf b/mail/spamassassin/._cfg0000_local.cf new file mode 100644 index 0000000..95bc494 --- /dev/null +++ b/mail/spamassassin/._cfg0000_local.cf @@ -0,0 +1,89 @@ +# This is the right place to customize your installation of SpamAssassin. +# +# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be +# tweaked. +# +# Only a small subset of options are listed below +# +########################################################################### + +# Add *****SPAM***** to the Subject header of spam e-mails +# +# rewrite_header Subject *****SPAM***** + + +# Save spam messages as a message/rfc822 MIME attachment instead of +# modifying the original message (0: off, 2: use text/plain instead) +# +# report_safe 1 + + +# Set which networks or hosts are considered 'trusted' by your mail +# server (i.e. not spammers) +# +# trusted_networks 212.17.35. + + +# Set file-locking method (flock is not safe over NFS, but is faster) +# +# lock_method flock + + +# Set the threshold at which a message is considered spam (default: 5.0) +# +# required_score 5.0 + + +# Use Bayesian classifier (default: 1) +# +# use_bayes 1 + + +# Bayesian classifier auto-learning (default: 1) +# +# bayes_auto_learn 1 + + +# Set headers which may provide inappropriate cues to the Bayesian +# classifier +# +# bayes_ignore_header X-Bogosity +# bayes_ignore_header X-Spam-Flag +# bayes_ignore_header X-Spam-Status + + +# Whether to decode non- UTF-8 and non-ASCII textual parts and recode +# them to UTF-8 before the text is given over to rules processing. +# +# normalize_charset 1 + +# Some shortcircuiting, if the plugin is enabled +# +ifplugin Mail::SpamAssassin::Plugin::Shortcircuit +# +# default: strongly-whitelisted mails are *really* whitelisted now, if the +# shortcircuiting plugin is active, causing early exit to save CPU load. +# Uncomment to turn this on +# +# shortcircuit USER_IN_WHITELIST on +# shortcircuit USER_IN_DEF_WHITELIST on +# shortcircuit USER_IN_ALL_SPAM_TO on +# shortcircuit SUBJECT_IN_WHITELIST on + +# the opposite; blacklisted mails can also save CPU +# +# shortcircuit USER_IN_BLACKLIST on +# shortcircuit USER_IN_BLACKLIST_TO on +# shortcircuit SUBJECT_IN_BLACKLIST on + +# if you have taken the time to correctly specify your "trusted_networks", +# this is another good way to save CPU +# +# shortcircuit ALL_TRUSTED on + +# and a well-trained bayes DB can save running rules, too +# +# shortcircuit BAYES_99 spam +# shortcircuit BAYES_00 ham + +endif # Mail::SpamAssassin::Plugin::Shortcircuit diff --git a/mail/spamassassin/v340.pre b/mail/spamassassin/v340.pre new file mode 100644 index 0000000..cf7beb1 --- /dev/null +++ b/mail/spamassassin/v340.pre @@ -0,0 +1,21 @@ +# This is the right place to customize your installation of SpamAssassin. +# +# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be +# tweaked. +# +# This file was installed during the installation of SpamAssassin 3.4.0, +# and contains plugin loading commands for the new plugins added in that +# release. It will not be overwritten during future SpamAssassin installs, +# so you can modify it to enable some disabled-by-default plugins below, +# if you so wish. +# +# There are now multiple files read to enable plugins in the +# /etc/mail/spamassassin directory; previously only one, "init.pre" was +# read. Now both "init.pre", "v310.pre", and any other files ending in +# ".pre" will be read. As future releases are made, new plugins will be +# added to new files, named according to the release they're added in. +########################################################################### + +# AskDNS - forms a DNS query based on 'tags' as supplied by other plugins +# +loadplugin Mail::SpamAssassin::Plugin::AskDNS diff --git a/mail/spamassassin/v341.pre b/mail/spamassassin/v341.pre new file mode 100644 index 0000000..489dd4c --- /dev/null +++ b/mail/spamassassin/v341.pre @@ -0,0 +1,28 @@ +# This is the right place to customize your installation of SpamAssassin. +# +# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be +# tweaked. +# +# This file was installed during the installation of SpamAssassin 3.4.1, +# and contains plugin loading commands for the new plugins added in that +# release. It will not be overwritten during future SpamAssassin installs, +# so you can modify it to enable some disabled-by-default plugins below, +# if you so wish. +# +# There are now multiple files read to enable plugins in the +# /etc/mail/spamassassin directory; previously only one, "init.pre" was +# read. Now both "init.pre", "v310.pre", and any other files ending in +# ".pre" will be read. As future releases are made, new plugins will be +# added to new files, named according to the release they're added in. +########################################################################### + +# TxRep - Reputation database that replaces AWL +# loadplugin Mail::SpamAssassin::Plugin::TxRep + +# URILocalBL - Provides ISP and Country code based filtering as well as +# quick IP based blocks without a full RBL implementation - Bug 7060 + +# loadplugin Mail::SpamAssassin::Plugin::URILocalBL + +# PDFInfo - Use several methods to detect a PDF file's ham/spam traits +# loadplugin Mail::SpamAssassin::Plugin::PDFInfo diff --git a/spamassassin b/spamassassin new file mode 120000 index 0000000..0541f5b --- /dev/null +++ b/spamassassin @@ -0,0 +1 @@ +mail/spamassassin \ No newline at end of file