Installer v1.5.2

Security Fixes & Installation Improvements

Posted October 18, 2025 | Version 1.5.0 - 1.5.2

๐Ÿ“‹ What's New in v1.5.0 - v1.5.2

This release includes three important updates with critical security fixes, bug fixes, and installation improvements:

v1.5.1 Critical Security Fixes

Released October 18, 2025

  • ๐Ÿ›ก๏ธ ClamAV Antivirus Integration
    Integrated virus scanning into email pipeline; all attachments now scanned before delivery
  • ๐Ÿ“ง Virus Detection Headers
    Added X-Virus-Detected and X-Virus-Names headers
  • ๐Ÿšซ Automatic Quarantine
    Infected emails automatically quarantined with +20 spam points

v1.5.0 Bug Fixes & UI Enhancements

Released October 18, 2025

  • ๐Ÿ› Spam Headers Database Storage
    Fixed critical bug where spam headers weren't being stored in database
  • ๐Ÿงน Duplicate Header Removal
    Removed duplicate X-SpaCy-Spam-Score header (kept X-Spam-Score-Total)
  • ๐Ÿ”ง Thread Analysis Header Fix
    Removed misleading "disabled" header when thread analysis was actually running
  • ๐Ÿ“Š Spam Score Breakdown UI
    Added detailed spam score breakdown section to email detail view
  • ๐ŸŽ›๏ธ Email Cleanup Config Card
    Added cleanup configuration card to admin dashboard
  • ๐Ÿ”Œ Relay Port Support
    Added relay_port column to client_domains table for non-standard SMTP ports
  • โš™๏ธ System Settings Table
    Added system_settings table for centralized configuration

v1.5.2 Installation Fixes

Released October 18, 2025

  • ๐Ÿ“ฆ Cleanup Script Deployment
    Fixed installer not deploying cleanup_expired_emails.py
  • โฐ Cron Job Auto-Configuration
    Added automatic cron job setup for daily email cleanup (2 AM)
  • ๐Ÿ”จ Cron Package Dependency
    Added cron to core packages (fixes minimal Ubuntu installations)
  • ๐Ÿ“ Cleanup Log File
    Auto-creates cleanup.log with proper permissions

New Feature Email Retention System

v1.4.0 - v1.5.2

  • ๐Ÿ—‘๏ธ Email Retention System
    Automated deletion of emails older than retention period (default: 30 days)

๐Ÿ“ฅ Installation & Upgrade

Fresh Installation:
curl -sSL http://install.openefa.com/install.sh | sudo bash
Upgrade from v1.4.x or earlier:
cd /opt/openefa-installer
git pull origin main

# Update email filter with antivirus integration
sudo cp openefa-files/email_filter.py /opt/spacyserver/
sudo chown spacy-filter:spacy-filter /opt/spacyserver/email_filter.py
sudo chmod 755 /opt/spacyserver/email_filter.py

# Deploy cleanup script
sudo cp openefa-files/cleanup_expired_emails.py /opt/spacyserver/
sudo chown spacy-filter:spacy-filter /opt/spacyserver/cleanup_expired_emails.py
sudo chmod 755 /opt/spacyserver/cleanup_expired_emails.py

# Update web interface
sudo cp -r openefa-files/web/* /opt/spacyserver/web/
sudo chown -R spacy-filter:spacy-filter /opt/spacyserver/web

# Set up cron job
(sudo crontab -u spacy-filter -l 2>/dev/null || true; echo "0 2 * * * /opt/spacyserver/venv/bin/python3 /opt/spacyserver/cleanup_expired_emails.py >> /opt/spacyserver/logs/cleanup.log 2>&1") | sudo crontab -u spacy-filter -

# Apply database changes
sudo mysql -u root -p spacy_email_db < sql/schema_v1.sql

# Restart services
sudo systemctl restart spacy-db-processor
sudo systemctl restart spacyweb

โœ… Verification

Check Antivirus Integration:

systemctl status clamav-daemon
sudo tail -f /opt/spacyserver/logs/email_filter_debug.log | grep -i virus

Check Cleanup Script:

ls -lh /opt/spacyserver/cleanup_expired_emails.py
sudo crontab -u spacy-filter -l | grep cleanup
tail -20 /opt/spacyserver/logs/cleanup.log

Test Cleanup Manually:

sudo -u spacy-filter /opt/spacyserver/venv/bin/python3 /opt/spacyserver/cleanup_expired_emails.py

๐Ÿ“Š Summary

3

Critical Fixes

2

New Features

10

Enhancements

Total: 15 features/fixes across 14 files

๐Ÿ”— Links