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

        mailscanner-4.85.2.1p2

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

        Current snapshot ยท amd64

        virus/spam scanning framework

        Project homepage: http://www.mailscanner.info/

        Description

        MailScanner is a complete e-mail security system designed for use on e-mail gateways. It protects against viruses, and detects attacks against e-mail client packages (such as Outlook, Outlook Express, Eudora). It can also detect almost all unsolicited commercial e-mail (spam) passing through it and respond to all incidents in a wide variety of ways. Not only can it scan for known viruses, but it can also protect against unknown viruses hidden inside e-mail attachments by refusing entry to attachments whose filenames match any given pattern. This can include generic patterns that trap filenames attempting to hide the true filename extension (e.g. ".txt.vbs"). It is superior to many commercial packages in its ability to handle attacks against itself, such as Denial Of Service attacks caused by messages containing the "Zip of Death". It is easy to install into an existing e-mail gateway, requiring very little knowledge of sendmail and no change to an existing sendmail configuration. MailScanner itself is entirely open source, but it uses widely known commercial virus scanning packages at its core. The other software it uses is all high quality open source software, leading to a system that can be trusted for performance and reliability. Optionally, unrar, unarj, and/or unace may be installed and MailScanner will use them if they are installed.

        Package information

        Ports path
        mail/mailscanner
        Package architecture
        amd64
        Maintainer
        Brad Smith <brad@comstyle.com>
        Categories
        mail
        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

        • archivers/lha
        • archivers/p5-Archive-Zip STEM->=1.30p0
        • archivers/unzip
        • archivers/zoo
        • converters/p5-Convert-BinHex
        • converters/p5-Convert-TNEF
        • databases/p5-DBD-SQLite
        • databases/p5-DBI
        • devel/p5-IO-String
        • devel/p5-OLE-Storage_Lite
        • devel/p5-Sys-SigAction
        • mail/p5-MIME-tools
        • mail/tnef STEM->=1.4.7
        • net/p5-Net-CIDR
        • net/p5-Net-IP
        • net/p5-Sys-Hostname-Long
        • net/wget
        • security/p5-Digest-SHA1
        • sysutils/p5-Filesys-Df
        • textproc/antiword
        • www/p5-HTML-Parser
        OpenBSD README

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

        +-----------------------------------------------------------------------
        | Running mailscanner on OpenBSD
        +-----------------------------------------------------------------------
        
        The MailScanner port is using the original MailScanner tarball from 
        www.mailscanner.info. This tarball puts all the MailScanner files in 
        subdirectories
        
        bin	MailScanner binary / MailScanner start script etc.
        etc	MailScanner config files / rules / report templates
        lib	Virus wrapper and autoupdate scripts / MailScanner Perl libraries
        docs	Documentation
        var	pid file
        
        In order to make this OpenBSD compliant the port installs those files
        in the following directories:
        
        ${TRUEPREFIX}/libexec/MailScanner	MailScanner binary, virus wrapper/autoupdate
        ${TRUEPREFIX}/lib/MailScanner		MailScanner Perl libraries
        ${TRUEPREFIX}/share/MailScanner		MailScanner report templates
        ${TRUEPREFIX}/share/doc/MailScanner	Documentation
        ${TRUEPREFIX}/share/examples/MailScanner Example files
        ${SYSCONFDIR}/MailScanner		MailScanner config files / rules
        
        See http://www.mailscanner.info  and the sample configuration
        files in ${SYSCONFDIR}/MailScanner for further instructions.
        
        To activate this package, you must do the following for sendmail:
        
        1. Set the following in your sendmail.mc file:
        
        	define(`confDELIVER_MODE',`queue')
        	define(`confPRIVACY_FLAGS',`noetrn')
        
           (if you do not have a sendmail.mc file, use
            /usr/share/sendmail/cf/openbsd-proto.mc)
        
           and regenerate your sendmail.cf
        
           (if you do not know how, try:
        
        	m4 /usr/share/sendmail/m4/cf.m4 sendmail.mc > test.cf
           )
           
        
        2. Put the following line in /etc/rc.conf.local:
        
        	sendmail_flags=-L sm-mta -bd -OQueueDirectory=/var/spool/mqueue.in
        
        3. Add the following to /etc/rc.local:
        
          # MailScanner
          if [ -x /usr/sbin/sendmail ]; then
                echo -n ' sm-mta-queue'; /usr/sbin/sendmail -q30s -L sm-mta-queue
          fi
        
        4. Add "mailscanner" to your pkg_scripts line in /etc/rc.conf.local.
        
        5. Add the following to root's crontab:
        
          # Check the status of MailScanner every hour
          0       *       *       *       *       ${TRUEPREFIX}/bin/check_mailscanner -q
        
        
        For other MTAs, configure according to MailScanner's documentation,
        and follow steps 4 and 5 above.
        

        Package guides

        • Installing and updating packages

        Package details as JSON

        Report a bug