OpenBSD Handbook

    Theme
    • Part I. Install & Configure
      • Introduction to OpenBSD
      • Installing OpenBSD
      • The X Window System
      • Networking on OpenBSD
      • System Configuration
      • OpenBSD Basics
      • Managing Software: Packages and Ports
    • Part II. Daily Operations
      • OpenBSD Desktop Environments
      • Multimedia
      • Printing
      • Linux Compatibility
      • Windows Compatibility
      • Games
    • Part III. System Administration
      • Virtualization
      • Storage and File Systems
      • Updating and Upgrading
      • Localization
      • The OpenBSD Boot Process
      • Security
    • Part IV. Networking & Daemons
      • Services
        • Database
          • MariaDB
          • PostgreSQL
          • Redis
          • memcached
        • Directory
          • YP (NIS)
          • LDAP
        • File
          • NFS
          • Samba
        • FTP Services
          • ftpd
          • ProFTPD
          • vsftpd
          • Pure-FTPd
          • TFTP
        • Mail
          • OpenSMTPD Mail Server
          • Dovecot IMAP and POP3 Server
          • Postfix
          • Exim
          • Rspamd
        • Name
          • Unbound DNS Resolver
          • NSD Authoritative DNS Server
          • BIND DNS Server
        • Networking
          • OpenBGPD
          • rad
          • DHCP on OpenBSD
          • slaacd
        • Web
          • Apache HTTP Server
          • nginx Web Server
          • OpenBSD httpd Web Server
          • relayd Reverse Proxy
        • Logging
          • syslogd
        • Monitoring
          • SNMP
        • Remote Access
          • Audit OpenSSH
          • OpenSSH Server
        • File Synchronization
          • rsync
        • Messaging
          • RabbitMQ Message Broker
        • Time
          • NTP Time Synchronization
      • PF
        • pfctl cheat sheet
        • PF Anchors
        • PF Filter Rules
        • PF Forwarding
        • PF Lists and Macros
        • PF Load Balancing
        • PF Logging
        • PF NAT
        • PF Options
        • PF Policies
        • PF Shortcuts
        • PF Tables
      • Advanced Networking
        • High Availability and State Replication
        • Multi-WAN and Policy-Based Routing
        • VPN and Cryptographic Tunneling
        • Classic and Lightweight Tunnels
        • IPv6 at Scale
        • QoS and Traffic Shaping
        • MPLS and Label Distribution
        • Network Services at Scale
        • Virtualization and Host Networking
        • Large-Scale L2 and L3 Design
        • Telemetry, Logging, and Flow Export
        • Hardening and Operational Safety
        • Reference Architectures
        • Troubleshooting Playbooks
      • Serial Communication
    • Part V. Miscellaneous
      • Virtualization Cheat Sheet
      • OpenBSD Cheatsheet
      • How-to Guides
        • Complete the First 30 Minutes After Installation
        • Check Hardware Compatibility Before Installing
        • Bootstrap Wi-Fi Firmware Without Ethernet
        • Set Up OpenBSD as a Laptop or Workstation
        • Configure Laptop Power Management
        • Run OpenBSD as a Virtual Machine Guest
        • Install OpenBSD on a VPS or Cloud Server
        • Install OpenBSD with Full-Disk Encryption
        • Troubleshoot Web Browsers on OpenBSD
        • Create an Administrator Account with doas and SSH Keys
        • Establish a Conservative Security Baseline
        • Manage OpenBSD with Ansible
        • Recover Access and Reset the Root Password
        • Collect OpenBSD Diagnostic Evidence
        • Configure Secure Remote Access with OpenSSH
        • Set Up WordPress on OpenBSD
        • Build Third-Party Software from Ports
        • Use FIDO Security Keys with OpenSSH
        • Build OpenBSD from Source
        • Configure Wi-Fi Roaming and Wired Failover
        • Dual-Boot OpenBSD on a UEFI System
        • Troubleshoot PF, NAT, and Routing
        • Automate OpenBSD Installation with Autoinstall and PXE
        • Route Multiple VLANs with PF
        • Configure a Road-Warrior WireGuard VPN
        • Troubleshoot Package Installation and Update Failures
        • Route IPv6 Networks without NAT
        • Schedule Recurring Maintenance
        • Plan a Docker Workload Migration to OpenBSD
        • Build a Mail Server with OpenSMTPD, Dovecot, and Rspamd
        • Build a Simple Router and Firewall
        • Monitor an OpenBSD System
        • Back Up and Restore an OpenBSD System
        • Configure softraid RAID1
        • Recover an OpenBSD System That Does Not Boot
        • Install Z shell (zsh)
      • OpenBSD for Linux Users
      • OpenBSD for FreeBSD Users
      • OpenBSD for macOS Users
    • OpenBSD FAQ
    • OpenBSD Architectures
      • OpenBSD Package Search

        rspamd-4.2.0p0v0-hyperscan

        Package search / Categories / OpenBSD 8.0 release
        โ† Back to search
        OpenBSD branch
        OpenBSD 8.0 releaseCurrent snapshot

        OpenBSD 8.0 release ยท amd64

        event-driven spam filtering system in C/Lua

        Project homepage: https://rspamd.com/

        Description

        Rspamd is an advanced spam filtering system that allows evaluation of messages by a number of rules including regular expressions, statistical analysis and custom services such as URL black lists. Each message is analysed by rspamd and given a spam score. According to this spam score and the user's settings rspamd recommends an action for the MTA to apply to the message- for example to pass, reject or add a header. Rspamd is designed to process hundreds of messages per second simultaneously and has a number of features available. Flavours, depending on the machine architecture: hyperscan Use Intel's hyperscan library, available on amd64, requires certain CPU features.

        Package information

        Ports path
        mail/rspamd,hyperscan
        Package architecture
        amd64
        Maintainer
        Stuart Henderson <stu.ports@spacehopper.org>
        Categories
        mail
        Available flavors
        hyperscan
        Only for architectures
        aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa

        Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.

        Direct dependencies

        Library

        • archivers/libarchive
        • archivers/zstd
        • databases/sqlite3
        • devel/gettext
        • devel/glib2
        • devel/pcre2
        • security/libsodium
        • sysutils/xxhash
        • textproc/icu4c
        • lang/luajit
        • textproc/hyperscan

        Runtime

        • databases/redis/bsd

        Build

        • devel/ragel
        • devel/cmake/core STEM->=4
        • devel/ninja
        • devel/dwz

        Test

        • mail/rspamd,hyperscan rspamd-4.2.0p0v0-hyperscan
        • databases/redis/bsd
        • devel/py-robotframework
        • sysutils/py-psutil
        OpenBSD README

        This README contains unresolved ports variables; replace them before using its commands.

        +-------------------------------------------------------------------------------
        | Running rspamd on OpenBSD
        +-------------------------------------------------------------------------------
        
        Configuration
        =============
        
        rspamd is very flexible and as a result configuration can be complex
        if you feel like tweaking - you should certainly read the upstream
        documentation rather than just trying to figure it out from the provided
        configuration files! However the defaults are reasonable and in many
        cases can be used as-is.
        
        Unusually for OpenBSD packages, you should not normally edit the existing
        files under /etc/rspamd. Instead, as directed by the headings at the
        top of each file, files should be created under /etc/rspamd/local.d or
        /etc/rspamd/override.d with your local changes. This will avoid the
        chance of future package updates failing to update the standard system
        configuration files with required changes.
        
        https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
        
        Redis
        -----
        The standard rspamd configuration has a certain spam score threshold
        defined in actions.conf above which emails are greylisted. (Non-spammy
        messages make it through without greylist; highly spammy messages are
        blocked; medium-scoring messages are greylisted).
        
        rspamd's greylisting requires a backend to store information about
        attempts in order that senders can be whitelisted and the mail allowed
        through. As some users had problems in the past if they didn't configure
        rspamd to use redis themselves, this OpenBSD package provides
        ${SYSCONFDIR}/rspamd/local.d/redis.conf setup to use a redis server on
        the local host by default to provide this store (so you will need
        to have redis running as well as rspamd: "rcctl enable redis rspamd").
        You are free to edit local.d/redis.conf to make changes as necessary
        (i.e. the above warning about editing existing files doesn't apply
        here).
        
        Integration with MTAs and using sockets
        ---------------------------------------
        For OpenSMTPd, you can either use the opensmtpd-filter-rspamd package which
        has its own pkg-readme file, or use rspamd as an external mda (mail delivery
        agent) which then hands the message over to another mda to deliver to the
        mailbox.
        
        For most other MTAs, see https://rspamd.com/doc/integration.html for details.
        At least for Sendmail and Postfix, configure rspamd's proxy worker in Milter.
        It's recommended to use unix sockets rather than the default TCP sockets -
        if you use Postfix with chroot you will need to place the proxy socket in
        that chroot - try configuration like this:
        
        - in ${SYSCONFDIR}/rspamd/local.d/worker-controller.inc
        
            bind_socket = "/var/run/rspamd/controller_socket mode=0600 owner=_rspamd";
        
        - in ${SYSCONFDIR}/rspamd/local.d/worker-normal.inc
        
            bind_socket = "/var/run/rspamd/normal_socket mode=0600 owner=_rspamd";
        
        - in ${SYSCONFDIR}/rspamd/local.d/worker-proxy.inc
          (you will also need to mkdir -p /var/spool/postfix/var/run)
        
            bind_socket = "/var/spool/postfix/var/run/rspamd-milter.sock mode=0600 owner=_postfix";
            upstream "local" {
              default = yes;
              hosts = "/var/run/rspamd/normal_socket";
            }
        
        - and in ${SYSCONFDIR}/postfix/main.cf use the chroot-relative path:
        
            smtpd_milters = unix:/var/run/rspamd-milter.sock
            non_smtpd_milters = unix:/var/run/rspamd-milter.sock
            milter_default_action = accept
        
        Used by (1 dependency relationships)

        Includes library, runtime, build and test dependencies.

        Package guides

        • Installing and updating packages
        • Configure Rspamd
        • Build a mail server with Dovecot and Rspamd

        Package details as JSON

        Report a bug