Quick Start Guide¶
This guide helps you get Mailborder V6 up and running quickly, from installation to processing your first emails.
Perfect for administrators who want to get started fast and dive into details later.
Prerequisites¶
Before starting this quick start guide:
- [x] Debian 11+ or Ubuntu 20.04+ server ready
- [x] Root or sudo access
- [x] Static IP address configured
- [x] Internet connectivity
- [x] Details of your internal mail server
Time Required: 30-60 minutes for basic setup and testing.
Step 1: Install Mailborder (5 minutes)¶
Add Repository and Install¶
# Add Mailborder repository
wget -qO - https://repo.mailborder.com/gpg.key | sudo apt-key add -
echo "deb [arch=amd64] https://repo.mailborder.com/apt stable main" | \
sudo tee /etc/apt/sources.list.d/mailborder.list
# Update and install
sudo apt update
sudo apt install mailborder
The package installation will automatically: - Install all dependencies (Postfix, MariaDB, Redis, Rspamd, ClamAV, Nginx, PHP) - Configure basic system settings - Create mailborder system user
Run Initial Setup¶
During setup, you'll be prompted for:
- Administrator Email: Your email address for login
- Administrator Password: Secure password (12+ characters)
The setup script will: - Create and populate the database - Generate encryption keys - Configure services - Start all daemons
Expected Output:
Installation complete!
Access the web interface at:
https://YOUR-SERVER-IP/
Default credentials:
Email: admin@example.com
Password: (as entered)
Verify Installation¶
All services should show [RUNNING]. If any show [STOPPED], see Troubleshooting Service Start Issues.
Step 2: Configure Email Relay (5 minutes)¶
Mailborder needs to know where to deliver clean email.
Via Web Interface¶
- Navigate to
https://YOUR-SERVER-IP/ - Log in with your administrator credentials
-
Go to System Settings → Email Processing
-
Configure relay host:
-
Click Test Connection to verify
- Click Save Settings
Via Command Line (Alternative)¶
sudo mb-config set relay.host mail.example.com
sudo mb-config set relay.port 25
sudo systemctl reload mb-virtuoso
Step 3: Configure Accepted Domains (2 minutes)¶
Tell Mailborder which domains to accept email for.
Via Web Interface¶
- Go to System Settings → Domains
- Click Add Domain
- Enter your domain:
example.com - Type: Local (deliver to relay host)
- Click Save
Repeat for additional domains.
Via Command Line¶
sudo mb-domain add example.com --type local
sudo mb-domain add example.net --type local
sudo mb-domain list
Step 4: Test Email Flow (10 minutes)¶
Before going live, verify everything works.
Test 1: Clean Email Delivery¶
From your workstation or mail server, send a test email to an address on your internal mail server:
To: testuser@example.com
Subject: Test Clean Email
Body: This is a test of Mailborder email delivery.
Configure your mail server or workstation to send through Mailborder: - SMTP Server: YOUR-MAILBORDER-IP - Port: 25 - No authentication required (if from trusted network)
Verify delivery:
- Check if email arrived in recipient's mailbox
- In Mailborder web interface, go to Monitoring → Email Logs
- Find the test email
- Verify: Status = Delivered, Spam Score < 2.0
Test 2: Spam Detection¶
Send an obvious spam email:
To: testuser@example.com
Subject: BUY V1AGRA NOW!!! CHEAP PRICES!!!
Body: Click here to claim your prize! Act now! Limited time offer!!!
Verify quarantine:
- Email should NOT arrive in recipient's mailbox
- In Mailborder, go to Email Security → Quarantine
- Find the test email with high spam score (>7.0)
- Status should be Quarantined
Test 3: Virus Detection¶
Send email with EICAR test virus:
Create a text file named eicar.txt with this content:
Email this file as an attachment.
Verify blocking:
- Email should be quarantined or rejected
- Check Email Security → Quarantine or Monitoring → Email Logs
- Virus field should show: Eicar-Test-Signature
If all three tests pass, your Mailborder is working correctly!
Step 5: Tune Spam Settings (5 minutes)¶
Adjust spam thresholds based on your organization's needs.
Recommended Starting Values¶
For most organizations:
-
Go to Email Security → Spam Filtering
-
Set thresholds:
-
Enable engines:
- [x] Rspamd
- [x] RBL Checks
-
[x] SPF/DKIM/DMARC Validation
-
Click Save Settings
Monitor and Adjust¶
Over the next week:
- Review quarantine daily
- Look for false positives (legitimate email incorrectly quarantined)
- Look for false negatives (spam that got through)
- Adjust thresholds accordingly
If too many false positives (legitimate email quarantined): - Increase thresholds (e.g., Pass < 7.0, Quarantine 7.0-25.0)
If too much spam getting through: - Decrease thresholds (e.g., Pass < 5.0, Quarantine 5.0-15.0) - Enable additional scanning engines
Step 6: Configure DNS (10 minutes)¶
Option A: Mailborder as Primary MX (Recommended)¶
This is the most common deployment: Mailborder receives all email directly from the Internet.
Current DNS (before Mailborder):
New DNS (with Mailborder):
Steps:
-
Add A record for Mailborder:
-
Update MX record to point to Mailborder:
-
Keep old MX as backup (optional):
DNS propagation takes 5 minutes to 48 hours depending on TTL.
Option B: Mailborder Behind Existing Gateway¶
If you already have an email gateway or firewall:
- Configure existing gateway to forward email to Mailborder
- Configure Mailborder to deliver to internal mail server
- No DNS changes needed
Email flow:
Verify Reverse DNS (Critical)¶
Ensure your Mailborder IP has a PTR record:
Should return: mailborder.example.com.
If not, contact your ISP or hosting provider to configure reverse DNS. Without reverse DNS, many mail servers will reject your outbound email.
Step 7: Configure Outbound Email (Optional)¶
If Mailborder should also scan outbound email:
Configure Internal Mail Server¶
Point your mail server to use Mailborder as a smart host:
For Postfix:
For Exchange: 1. Create Send Connector 2. Address space: * (all domains) 3. Smart host: mailborder.example.com
For Zimbra:
Update Mailborder Outbound Settings¶
- In Mailborder web interface: System Settings → Outbound
- Enable Scan Outbound Email: Yes
- Outbound Spam Thresholds: Lower than inbound (e.g., 4.0)
- Block Outbound Spam: Quarantine or Reject
- Click Save
This protects your organization from compromised accounts sending spam.
Step 8: Go Live (5 minutes)¶
Once testing is complete and DNS is updated:
Monitor Closely¶
For the first 24 hours:
- Check email flow every hour
- Dashboard → Email Statistics
-
Ensure email is being delivered
-
Review quarantine frequently
- Look for false positives
-
Release legitimate email immediately
-
Watch for delivery issues
- Monitor → Email Logs
- Filter by Status = Failed
-
Investigate any failures
-
Monitor system resources
- Dashboard → System Health
- CPU, RAM, disk usage should be reasonable
Common Go-Live Issues¶
No Email Arriving at Mailborder
- Check DNS propagation:
dig example.com MX - Check firewall: Port 25 must be open
- Check Postfix is listening:
netstat -tlnp | grep :25
Email Queuing on Mailborder
- Check relay host is reachable:
telnet mail.example.com 25 - Check relay host accepts email from Mailborder IP
- Review logs:
tail -f /var/log/mailborder/virtuoso.log
High False Positive Rate
- Temporarily increase spam thresholds
- Review quarantine, identify patterns
- Whitelist trusted senders
- Tune over several days
Performance Issues
- Check CPU/RAM usage
- Verify disk space available
- Check service status:
mb-status - See Performance Monitoring
Step 9: User Communication (10 minutes)¶
Inform your users about the new spam filtering:
Email Announcement Template¶
Subject: New Email Security System Active
Hello,
We've implemented a new email security system (Mailborder) to protect
against spam, viruses, and malware.
What This Means for You:
- Less spam in your inbox
- Protection from viruses and phishing
- Suspicious emails will be quarantined for review
Quarantine Access:
- You'll receive a daily summary of quarantined emails
- You can release legitimate emails if needed
- Access quarantine at: https://mailborder.example.com/portal
If You're Missing Email:
1. Check your quarantine
2. Add sender to your personal whitelist
3. Contact IT support if you need assistance
Questions? Contact: support@example.com
Thank you,
IT Department
Train Key Users¶
- Show a few users how to access quarantine
- Demonstrate how to release emails
- Explain spam scores and why email was quarantined
- Collect feedback for tuning
Step 10: Ongoing Maintenance (5 minutes daily)¶
Maintain Mailborder health with quick daily checks:
Daily Tasks (5 minutes)¶
- Check Dashboard
- Verify all services running
- Review email statistics
-
Look for alerts
-
Review Quarantine
- Scan for false positives
- Release legitimate email
-
Delete obvious spam
-
Check for Updates
- Signature updates (automatic)
- System updates available
Weekly Tasks (30 minutes)¶
- Review Logs
- Look for patterns (repeated failures, blocked senders)
- Check top spam sources
-
Verify performance metrics
-
Tune Policies
- Adjust spam thresholds based on false positive rate
- Update whitelist/blacklist
-
Refine policy rules
-
User Feedback
- Collect reports of missed spam or blocked legitimate email
- Adjust settings accordingly
Monthly Tasks (1-2 hours)¶
- Full System Review
- Routine Maintenance
- Database optimization
- Log rotation
-
Backup verification
-
Security Updates
- Apply system updates
- Review security advisories
-
Update SSL certificates if needed
-
Reporting
- Generate monthly reports for management
- Email volume trends
- Spam/virus statistics
- Cost savings (time saved from spam)
Quick Reference Commands¶
Essential Mailborder commands:
# Service status
sudo mb-status
# Restart all services
sudo systemctl restart mb-*
# View real-time email processing
sudo tail -f /var/log/mailborder/filter.log
# Check mail queue
sudo mailq
# Add domain
sudo mb-domain add newdomain.com --type local
# Add whitelist entry
sudo mb-whitelist add sender@example.com
# Add blacklist entry
sudo mb-blacklist add spammer@spam.com
# View recent logs
sudo journalctl -u mb-rpcd -n 50
# Check configuration
sudo mb-config show
# Update signatures
sudo mb-update --signatures
# System health check
sudo mb-doctor
Next Steps¶
Now that Mailborder is running:
Enhance Security¶
- Set Up 2FA - Multi-factor authentication for admins
- Configure Passkeys - Passwordless authentication
- Install SSL Certificate - Trusted certificate
Advanced Features¶
- GeoIP Filtering - Block by country
- Custom Policies - Advanced policy rules
- API Integration - Automate with scripts
Scale Up¶
- High Availability - Redundant deployment
- Performance Tuning - Optimize for high volume
- Clustering - Multi-node deployment
Learn More¶
- Admin Interface Guide - Master the interface
- Email Security Features - Understand how it works
- Troubleshooting Guide - Fix issues quickly
Getting Help¶
- Documentation: Full docs at
/usr/share/mailborder/docs/ - Community: Forums at https://community.mailborder.com
- Support: Email support@mailborder.com
- Emergency: See Getting Support
Congratulations! Your Mailborder V6 deployment is complete and protecting your email.