Common Issues¶
This guide covers the most frequently encountered issues in Mailborder V6 and their solutions.
Email Issues¶
Email Not Arriving at Mailborder¶
Symptoms: - No email reaching Mailborder - Dashboard shows zero message counts - Mailq is empty
Diagnosis:
-
Check MX records:
Should return Mailborder server hostname/IP. -
Check port 25 open:
Should show Postfix listening. -
Test external connectivity:
From external machine. -
Check firewall:
Solutions:
- MX not pointing to Mailborder: Update DNS MX record
- Firewall blocking: Allow port 25 inbound
- Postfix not running:
sudo systemctl start postfix - Wrong interface: Check Postfix
inet_interfacessetting
Email Not Being Delivered¶
Symptoms: - Email accepted but never reaches users - Growing mail queue - Delivery errors in logs
Diagnosis:
-
Check mail queue:
-
View deferred messages:
-
Check relay host configuration:
-
Test relay connectivity:
-
Check virtuoso logs:
Solutions:
- Relay host unreachable: Check network, firewall, DNS
- Relay rejecting: Add Mailborder IP to relay's allowed senders
- Authentication failure: Verify relay credentials
- TLS required: Enable TLS in relay configuration
- Wrong relay host: Update relay host setting
Force queue flush:
All Email Going to Quarantine¶
Symptoms: - Every email quarantined - High spam scores on legitimate email - User complaints about missing email
Diagnosis:
-
Check spam thresholds: Web Interface → Email Security → Spam Filtering
-
Review quarantine: Web Interface → Email Security → Quarantine
-
Check recent config changes:
-
Test with known-good email: Send from trusted source, check score.
-
Check Rspamd status:
Solutions:
- Thresholds too low: Increase spam threshold (6.0 → 8.0)
- RBL false positives: Disable aggressive RBLs
- Rspamd misconfigured: Check Rspamd logs
- Recent policy change: Revert to previous settings
- DNS issues: Test DNS resolution
Temporary workaround:
# Disable spam filtering temporarily
sudo mb-config set spam.enabled false
sudo systemctl reload mb-filter
Legitimate Email Marked as Spam¶
Symptoms: - Specific senders always quarantined - Business partners' email blocked - False positive rate high
Diagnosis:
-
Check spam score breakdown: View email in quarantine, see detailed score.
-
Identify triggering rules: Look for high-scoring tests.
-
Check sender authentication: SPF, DKIM, DMARC results.
Solutions:
Whitelist sender:
Or via Web Interface: Email Security → Whitelist/Blacklist → Add Entry
Adjust thresholds: Increase spam threshold for specific domain:
Train Bayesian filter: Mark false positives as ham (legitimate).
Spam Getting Through¶
Symptoms: - Obvious spam delivered - Low spam scores on spam - User complaints
Diagnosis:
-
Review spam samples: Check why they scored low.
-
Check enabled engines: Verify Rspamd, RBLs enabled.
-
Check blacklists: Are known spam sources whitelisted?
Solutions:
Lower thresholds:
Enable additional engines: - Enable SpamAssassin - Add more RBLs - Enable greylisting
Blacklist persistent spammers:
Update signatures:
Service Issues¶
Service Won't Start¶
Symptoms: - systemctl start mb-rpcd fails - Service immediately stops - Error in logs
Diagnosis:
-
Check service status:
-
View detailed logs:
-
Check dependencies:
-
Verify configuration:
-
Check permissions:
Solutions:
Dependency not running:
# Check MariaDB
sudo systemctl status mariadb
sudo systemctl start mariadb
# Check Redis
sudo systemctl status redis
sudo systemctl start redis
Configuration error:
# Restore previous config
sudo mb-config restore
# Or reset to defaults
sudo mb-config reset --section services
Permission issue:
# Fix ownership
sudo chown -R mailborder:mailborder /run/mailborder
sudo chown -R mailborder:mailborder /var/log/mailborder
# Recreate socket directory
sudo systemctl restart mb-rpcd
Port already in use:
Services Keep Restarting¶
Symptoms: - Services cycling (start, crash, restart) - mb-status shows fluctuating states - High restart counts in SystemD
Diagnosis:
-
Check crash logs:
-
Monitor in real-time:
-
Check resource limits:
-
Check system resources:
Solutions:
Out of memory:
Add:
Then:
Configuration error:
Add:
Fix issue, then re-enable restart.
Dependency failure: Check if Rspamd, ClamAV, MariaDB are stable.
High CPU Usage¶
Symptoms: - Server load high - Slow email processing - Web interface sluggish
Diagnosis:
-
Identify CPU hog:
-
Check process counts:
-
Review scanning times:
-
Check email queue:
Solutions:
Too many concurrent scans:
# Reduce concurrent processes
sudo mb-config set system.max_concurrent_scans 8
sudo systemctl reload mb-filter
Large emails:
ClamAV scanning:
Rspamd learning:
High Memory Usage¶
Symptoms: - RAM usage >90% - Swapping active - OOM kills
Diagnosis:
-
Check memory usage:
-
Identify memory hog:
-
Check for leaks:
Solutions:
Reduce PHP memory:
Reduce concurrent processes:
Add swap space:
Upgrade RAM: Physical upgrade or increase VM allocation.
Web Interface Issues¶
Cannot Access Web Interface¶
Symptoms: - Browser shows "Connection refused" - Timeout connecting - SSL error
Diagnosis:
-
Check Nginx:
-
Check port 443:
-
Test locally:
-
Check firewall:
-
Check SSL certificate:
Solutions:
Nginx not running:
Firewall blocking:
SSL certificate error:
# Check certificate
sudo ls -la /etc/mailborder/ssl/
# Regenerate self-signed
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout /etc/mailborder/ssl/mailborder.key \
-out /etc/mailborder/ssl/mailborder.crt
sudo systemctl reload nginx
Wrong interface: Check Nginx listen directive in /etc/nginx/sites-available/mailborder.
Login Not Working¶
Symptoms: - Credentials rejected - "Invalid password" error - 2FA code not accepted
Diagnosis:
-
Verify username/email:
-
Check account enabled:
-
Check mb-rpcd:
-
Check logs:
Solutions:
Forgot password:
Account locked:
2FA sync issue: Check device time:
Temporarily disable 2FA:
Database connection:
Web Interface Slow¶
Symptoms: - Pages take >5 seconds to load - AJAX requests timeout - Timeouts in browser console
Diagnosis:
-
Check Redis:
-
Check database:
-
Check PHP-FPM:
-
Check mb-rpcd:
Solutions:
Redis not running:
Database slow queries:
PHP-FPM pool size:
Change:
Clear cache:
Authentication Issues¶
Two-Factor Authentication Problems¶
Symptoms: - TOTP code always invalid - "Code expired" error - Cannot login with 2FA
Diagnosis:
-
Check time sync:
-
Check time difference:
Compare with authenticator app time.
Solutions:
Time not synced:
Large time difference:
Disable 2FA (emergency):
Passkey Not Working¶
Symptoms: - Passkey prompt doesn't appear - "Invalid passkey" error - Browser compatibility issue
Diagnosis:
-
Check browser support: Must be Chrome 90+, Firefox 88+, Safari 14+, Edge 90+
-
Check HTTPS: Passkeys require HTTPS (not HTTP)
-
Check logs:
Solutions:
Browser outdated: Update to latest version.
HTTP instead of HTTPS: Always use https:// URL.
Passkey deleted: Remove and re-register passkey.
Database issue:
Database Issues¶
Database Connection Failed¶
Symptoms: - Services can't start - "Can't connect to MySQL" errors - Web interface shows database error
Diagnosis:
-
Check MariaDB:
-
Test connection:
-
Check credentials:
Solutions:
MariaDB not running:
Wrong password:
Update config:
Corrupt tables:
Database Performance Issues¶
Symptoms: - Slow queries - High CPU usage by MariaDB - Timeouts
Diagnosis:
-
Check slow queries:
-
Check table sizes:
Solutions:
Optimize tables:
Rebuild indexes:
Increase buffer pool:
Add:
Next Steps¶
For specific issue types, see: