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

        p5-Mail-SpamAssassin-4.0.2

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

        Current snapshot ยท amd64

        mailfilter to identify and mark spam

        Project homepage: http://spamassassin.apache.org/

        Description

        SpamAssassin is a mail filter to identify spam. Using its rule base and optional network sources (DNS-based lists and collaborative spam-tracking databases), it carries out a wide range of heuristic tests on mail headers and body text to identify "spam", also known as unsolicited commercial email. Once identified, the mail can then be optionally tagged as spam for later filtering using the user's own mail user-agent application. SpamAssassin requires very little configuration; you do not need to continually update it with details of your mail accounts, mailing list memberships, etc. It accomplishes filtering without this knowledge, as much as possible. Read /usr/local/share/doc/SpamAssassin/README for further installation instructions. Or if you are in a hurry you can read: /usr/local/share/doc/SpamAssassin/OpenBSD-SpamAssassin-mini-howto.html The SpamAssassin Wiki is available at <http://wiki.apache.org/spamassassin> and contains up-to-date information on configuring SpamAssassin, and using some of the more advanced features of it.

        Package information

        Ports path
        mail/p5-Mail-SpamAssassin
        Package architecture
        amd64
        Maintainer
        Giovanni Bechis <giovanni@openbsd.org>
        Categories
        mail, perl5
        Available flavors
        None listed

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

        Direct dependencies

        Runtime

        • www/p5-HTML-Parser STEM->=3.31
        • mail/p5-Mail-DKIM STEM->=0.31
        • mail/p5-Email-Address-XS
        • mail/p5-Mail-DMARC
        • net/p5-Net-DNS STEM->=0.34
        • net/p5-NetAddr-IP
        • security/p5-IO-Socket-SSL
        • archivers/p5-Archive-Zip
        • devel/re2c
        • devel/p5-BSD-Resource
        • devel/p5-IO-String
        • mail/p5-Mail-SPF p5-Mail-SPF-*|p5-Mail-SPF-Query-*
        • net/p5-GeoIP2 p5-GeoIP2-*|p5-IP-Country-DB_File-*|p5-IP-Country-*
        • net/p5-Net-LibIDN2
        • net/p5-Net-Patricia
        • security/gnupg
        • textproc/p5-Encode-Detect
        • net/curl curl-*|p5-libwww-*
        • www/p5-HTTP-Date

        Build

        • www/p5-HTML-Parser STEM->=3.31
        • mail/p5-Mail-DKIM STEM->=0.31
        • mail/p5-Email-Address-XS
        • mail/p5-Mail-DMARC
        • net/p5-Net-DNS STEM->=0.34
        • net/p5-NetAddr-IP
        • security/p5-IO-Socket-SSL
        • archivers/bzip2

        Test

        • www/p5-HTML-Parser STEM->=3.31
        • mail/p5-Mail-DKIM STEM->=0.31
        • mail/p5-Email-Address-XS
        • mail/p5-Mail-DMARC
        • net/p5-Net-DNS STEM->=0.34
        • net/p5-NetAddr-IP
        • security/p5-IO-Socket-SSL
        • archivers/p5-Archive-Zip
        • devel/re2c
        • devel/p5-BSD-Resource
        • devel/p5-IO-String
        • mail/p5-Mail-SPF p5-Mail-SPF-*|p5-Mail-SPF-Query-*
        • net/p5-GeoIP2 p5-GeoIP2-*|p5-IP-Country-DB_File-*|p5-IP-Country-*
        • net/p5-Net-LibIDN2
        • net/p5-Net-Patricia
        • security/gnupg
        • textproc/p5-Encode-Detect
        • net/curl curl-*|p5-libwww-*
        • www/p5-HTTP-Date
        • databases/p5-BerkeleyDB
        • devel/p5-Devel-Cycle
        • mail/razor-agents
        • net/p5-Sys-Hostname-Long
        OpenBSD README

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

        +-----------------------------------------------------------------------
        | Running p5-Mail-SpamAssassin on OpenBSD
        +-----------------------------------------------------------------------
        
        This is just a mini-README to get you up and running if you are in a
        hurry. Please go to http://spamassassin.apache.org/ for further information.
        
        Configuration
        =============
        You can use spamassassin in many ways. Larger installations might use
        it in combination with smtp-vilter, MailScanner or amavisd-new (all are
        available in packages). A common method for a simple setup is to use
        the spamc/spamd combination with procmail. To configure this, add
        "spamassassin" to your "pkg_scripts" line in /etc/rc.conf.local.
        
        (Use "${RCDIR}/spamassassin start" to start the daemon right away).
        
        The final step: put this at the top of your .procmailrc.
        
        -- cut here -- -- -- -- -- -- --
        :0fw
        * < 256000
        | spamc
        
        :0e
        {
        EXITCODE=$?
        }
        
        :0:
        * ^X-Spam-Status: Yes
        caughtspam # This is the mailbox where all spam goes.
        -- -- -- -- -- -- -- -- -- -- --
        
        If you do not want to use procmail, please check the online docs at
        http://spamassassin.apache.org/doc.html and the documentation for any
        other software you use to implement spamassassin (MailScanner, etc).
        
        
        Customizing
        ===========
        The spam filtering is not perfect. But since the feedback is very
        extensive you should be able to do what is necessary to get most spam
        filtered.
        
        If you want to add custom settings to spamassassin you can create the
        file ${SYSCONFDIR}/mail/spamassassin/local.cf . All possible options
        are described in: man Mail::SpamAssassin::Conf
        
        Used by (6 dependency relationships)

        Includes library, runtime, build and test dependencies.

        Package guides

        • Installing and updating packages
        • Configure Postfix

        Package details as JSON

        Report a bug