mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
@@ -278,7 +278,7 @@ feature:
|
||||
Self-service mode
|
||||
=================
|
||||
|
||||
The *self-service* mode let users act on quarantined messages without
|
||||
The *self-service* mode lets users act on quarantined messages without
|
||||
beeing authenticated. They can:
|
||||
|
||||
* View messages
|
||||
@@ -307,6 +307,74 @@ Here is a link example::
|
||||
|
||||
http://<modoboa_url>/quarantine/%i/?rcpt=%R&secret_id=[:secret_id]
|
||||
|
||||
Manual SpamAssassin learning
|
||||
============================
|
||||
|
||||
It is possible to manually train SpamAssassin (FIXME: URL) using
|
||||
the quarantine's content. By train, we mean:
|
||||
|
||||
* Mark message(s) as spam (false negative(s))
|
||||
|
||||
* Mark message(s) as non-spam (false positive(s))
|
||||
|
||||
This feature is available to all users (from super administrators to
|
||||
simple users) but not enabled by default.
|
||||
|
||||
SpamAssassin configuration
|
||||
--------------------------
|
||||
|
||||
For better performance and to enable the per-user level, SpamAssassin
|
||||
must store bayes information into a SQL database.
|
||||
|
||||
Create a new database and a new user/password (using your favorite
|
||||
database server) and edit the default configuration file
|
||||
(:file:`/etc/spamassassin/local.cf`) to add the following lines
|
||||
inside:
|
||||
|
||||
.. sourcecode:: perl
|
||||
|
||||
bayes_store_module Mail::SpamAssassin::BayesStore::<Driver>
|
||||
bayes_sql_dsn <DSN>
|
||||
bayes_sql_username <db username>
|
||||
bayes_sql_password <db password>
|
||||
|
||||
Replace values between ``<>`` by yours. Possible values for ``Driver``
|
||||
are ``PgSQL`` or ``MySQL`` (non exhaustive list). The syntax for
|
||||
``DSN`` depends on the driver you choose. Please consult the official
|
||||
documentation. (FIXME: URL)
|
||||
|
||||
Enable the feature through Modoboa
|
||||
----------------------------------
|
||||
|
||||
Manual learning is disabled by default. You can activate it through
|
||||
the administration panel (*Modoboa > Paremeters > Amavis*). There two
|
||||
learning levels:
|
||||
|
||||
#. Global: available to administrators only. A single (global) bayes
|
||||
database is shared between everyone.
|
||||
|
||||
#. Per user: each user can create its own database to customize the
|
||||
way SpamAssassin will detect spam.
|
||||
|
||||
The per-user level is not activated by default, a dedicated parameter
|
||||
is available through the panel.
|
||||
|
||||
.. note::
|
||||
|
||||
A user database is only created the first time that user calls the
|
||||
learning feature through the quarantine.
|
||||
|
||||
.. warning::
|
||||
|
||||
A bayes database needs to reach pre-defined thresholds before it
|
||||
can be used by SpamAssassin. The default values are **200** spams
|
||||
and **200** hams.
|
||||
|
||||
You will find other paramaters related to this feature. You won't need
|
||||
to change them most of the time, unless SpamAssassin is hosted on a
|
||||
different machine than Modoboa. (in this case, ``spamc`` will be used
|
||||
instead of ``sa-learn``).
|
||||
|
||||
.. _stats:
|
||||
|
||||
********************
|
||||
|
||||
Reference in New Issue
Block a user