Table of Contents

AV-SPAM (Anti-Spam)

The AV-SPAM module provides advanced spam and virus filtering for your BlueOnyx mail server using Rspamd, a modern, high-performance spam filtering engine. This replaces the older SpamAssassin-based solution with a faster, more accurate, and easier-to-configure system.

Note: AV-SPAM is an optional add-on package available from the BlueOnyx shop: https://shop.blueonyx.it/blueonyx/email/av-spam.html

Overview

The AV-SPAM settings page is found under Server Management > AV-SPAM. It consists of several tabs that control different aspects of spam filtering.

Tabs

General

The General tab contains the main on/off switch:

When disabled, all spam filtering is bypassed and mail flows through without scanning.

Scoring

The Scoring tab configures the spam score thresholds and subject line modifications:

Note: Scoring is inherited from server defaults at the Vsite and User level. SiteAdmins can override Vsite scores, and users can override their personal scores.

Sender Lists

The Sender Lists tab manages allow/block lists at the server scope:

Important: These rules match the SMTP envelope sender (the ``MAIL FROM`` address), not the visible ``From:`` header in the message body. Services like Zoom may send from bounce hosts (e.g., ``bounce-sg.zoom.us``) even though the visible ``From`` shows ``no-reply@zoom.us``.

Note (AV-SPAM v8.1): The configuration syntax for some of these lists was incorrect in earlier versions, which could cause some white- and blacklists to not work as intended. This has been fixed in v8.1.

Sender lists also exist at the Vsite and User scope, allowing SiteAdmins and end users to manage their own allow/block lists.

GeoIP

The GeoIP tab controls country-based filtering:

GeoIP data is provided by the Milter-GeoIP component, which tracks country-of-origin for every incoming connection.

Custom Rules

The Custom Rules tab provides a scope-aware rule editor:

Rules are stored in plain text files:

User custom rules inherit Vsite enablement, so SiteAdmins can manage user-scoped rules.

Services

The Services tab configures optional Rspamd modules:

avspam_init.pl

The ``/usr/sausalito/sbin/avspam_init.pl`` script (rewritten in AV-SPAM v8.1) provides quick diagnostics for the AV-SPAM services. It is not required to restart AV-SPAM related services — Systemd and Active Monitor handle that automatically — but it is handy for status checks:

~]# /usr/sausalito/sbin/avspam_init.pl -status
 
AV-SPAM service status
======================
Service                Role         Configured   Enabled      Active
---------------------- ------------ ------------ ------------ --------
Postfix                MTA          yes          enabled      active
Rspamd                 AV-SPAM      yes          enabled      active
ClamAV daemon          AV-SPAM      yes          enabled      active
ClamAV freshclam       AV-SPAM      yes          enabled      active
DCC                    AV-SPAM      yes          enabled      active
Milter-GeoIP           AV-SPAM      yes          enabled      active
IMAPSieve learning     AV-SPAM      yes          enabled      active
Health check timer     AV-SPAM      yes          enabled      active

Available switches: ``-start``, ``-restart``, ``-stop``, ``-status``.

Note: Services disabled in the GUI won't show up to avoid confusion.

Upgrading from AV-SPAM v8.0 to v8.1

After upgrading, the following new options are available in the Services tab. Enabling them is optional, but recommended:

Inheritance Model

Settings flow from Server → Vsite → User:

Empty Vsite/User override objects are expected and correct when nothing has been changed from the server default.

User Delivery Actions

At the user level, the following SPAM delivery actions are available:

The system automatically writes or removes ``~user/.procmailrc`` based on the selected action.

See Also