> A programmable, cloud-native email infrastructure platform written in Rust.
**Powered by IZUREX AGI LAB** โ experimental cognitive intelligence layer.
MAIL-CARD Core Engine
โโ SMTP Engine (async Rust)
โโ IMAP Engine (async Rust)
โโ POP3 Engine (async Rust)
โโ Mail Queue (RocksDB)
โโ Storage Layer
โโ Control Plane (REST API)
IZUREX AGI LAB Intelligence Layer
โโ Fraud Detection (ML)
โโ Spam Detection (ML)
โโ Behavioral Analysis
โโ Adaptive Routing
Developed by IZUREX AGI LAB
MAIL-CARD is a modern, high-performance email server built in Rust, designed for both private internal messaging networks and public internet email hosting.
MAIL-CARD includes enterprise-grade security with AI-enhanced threat detection:
- ๐ Transport Security: STARTTLS, TLS 1.3, Perfect Forward Secrecy
- ๐ก๏ธ Authentication: Multi-factor authentication, OAuth 2.0, SAML
- ๐ SPF Verification: Sender Policy Framework validation
- โ๏ธ DKIM Signing: DomainKeys Identified Mail authentication
- ๐ DMARC Validation: Domain-based Message Authentication
- ๐ซ Rate Limiting: Advanced abuse protection
- ๐ค AI Threat Detection: Machine learning-based security analysis
- ๐ Behavioral Analysis: Anomaly detection and pattern recognition
- Unified Architecture: Supports both private and public email hosting
- Modern Protocols: SMTP, IMAP, POP3 with full TLS support
- High Performance: Built on Rust with RocksDB storage
- Security First: DKIM signing, SPF validation, DMARC support
- API-Driven: RESTful HTTP API for management and monitoring
- Observability: Built-in metrics, logging, and health monitoring
- Scalable: Designed for single-node to distributed deployments
# Clone repository
git clone https://github.com/YOUR_REPO/mail-card.git
cd mail-card
# Build release
cargo build --release
# Run with default config
./target/release/mail-card serve --config config.example.toml# Pull latest image
docker pull mailcard/mail-card:latest
# Run with custom config
docker run -p 25:25 -p 80:80 -p 443:443 \
-v /path/to/config:/config \
mailcard/mail-card:latest- Protocol Servers: SMTP, IMAP, POP3, HTTP API
- Security Layer: TLS/SSL, DKIM, SPF, DMARC
- Core Engine: Message queue, routing, storage
- Storage Layer: RocksDB, object storage, search
- Observability: Metrics, logging, health monitoring
To build the first programmable, cloud-native email infrastructure with integrated cognitive intelligence.
MAIL-CARD combines modern Rust infrastructure with adaptive machine-learning systems to create an intelligent mail platform capable of learning, adapting, and securing communication systems.
MAIL-CARD's breakthrough capability is cognitive intelligence integration that provides:
- ๐ Automatic Phishing Detection - ML-powered financial fraud identification
- ๐ก๏ธ Fraud Pattern Recognition - Real-time scam and threat analysis
- ๐ Behavioral Anomaly Detection - User pattern learning and alerting
- โก Adaptive Spam Filtering - Self-improving spam classification
- ๐ Smart Delivery Optimization - AI-enhanced routing and performance
This positions MAIL-CARD uniquely at the intersection of fintech security, compliance, and modern infrastructure.
MAIL-CARD provides comprehensive developer tools for building custom email solutions.
# Send email
POST /api/v1/mail/send
{
"to": "user@example.com",
"from": "sender@example.com",
"subject": "Hello",
"body": "Message content"
}
# Analyze message with AI
POST /api/v1/mail/analyze
{
"message": "Full email content...",
"analysis_type": ["spam", "fraud", "security"]
}
# Get real-time metrics
GET /api/v1/metrics
{
"smtp_connections": 1250,
"messages_sent": 8432,
"queue_depth": 127,
"ai_accuracy": 0.94
}// Rust SDK
use mail_card_sdk::{MailCardClient, Message};
let client = MailCardClient::new("http://localhost:8080");
let message = Message::builder()
.to("user@example.com")
.from("sender@example.com")
.subject("Hello")
.body("World")
.build();
let result = client.send(message).await?;// Node.js SDK
const { MailCardClient } = require('@mail-card/sdk');
const client = new MailCardClient('http://localhost:8080');
await client.send({
to: 'user@example.com',
from: 'sender@example.com',
subject: 'Hello',
body: 'World'
});# Configure webhooks
POST /api/v1/webhooks
{
"url": "https://your-app.com/webhook",
"events": ["message.received", "message.delivered", "threat.detected"],
"secret": "webhook-secret"
}server_name = "mail.example.com"
[smtp]
bind = "0.0.0.0:25"
tls_bind = "0.0.0.0:465"
[imap]
bind = "0.0.0.0:143"
tls_bind = "0.0.0.0:993"
[pop3]
bind = "0.0.0.0:110"
tls_bind = "0.0.0.0:995"See sibaq-us-production-fixed.toml for a comprehensive production configuration.
# MX Record
example.com MX 10 mail.example.com
# SPF Record
example.com TXT "v=spf1 mx ip4:SERVER_IP -all"
# DKIM Record
mail._domainkey.example.com TXT "v=DKIM1; k=rsa; p=PUBLIC_KEY"
# DMARC Record
_dmarc.example.com TXT "v=DMARC1; p=none; rua=mailto:admin@example.com"MAIL-CARD is optimized for high-throughput email processing:
- Messages/Second: 10,000+ (depending on hardware)
- Concurrent Connections: 5,000+
- Storage Efficiency: Compressed message storage
- Memory Usage: < 100MB for 10,000 messages
- Startup Time: < 2 seconds
- TLS Encryption: End-to-end encrypted connections
- DKIM Signing: Cryptographic message authentication
- SPF Validation: Sender verification
- DMARC Processing: Domain-based authentication
- Rate Limiting: Protection against abuse
- Audit Logging: Comprehensive activity tracking
- Small organizations (< 1000 users)
- Development environments
- Quick deployments
- Medium organizations (1000-10000 users)
- Production workloads
- 99.9% uptime
- Large enterprises (> 10000 users)
- Multi-region deployment
- 99.99% uptime
MAIL-CARD provides comprehensive observability:
GET /health- Service health statusGET /ready- Readiness checkGET /metrics- Prometheus metrics
- SMTP connections and delivery rates
- Message queue depth
- Storage utilization
- Authentication success/failure rates
- Response times and throughput
# Run unit tests
cargo test
# Run integration tests
cargo test --test integration
# Run benchmarks
cargo bench
# Security audit
cargo auditWe welcome contributions! Please see our Contributing Guidelines for details.
# Install Rust toolchain
rustup install stable
rustup component add rustfmt clippy
# Install development dependencies
cargo install cargo-audit cargo-deny
# Run pre-commit checks
cargo fmt
cargo clippy
cargo testThis project is licensed under the MIT License - see the LICENSE file for details.
MAIL-CARD is maintained by IZUREX AGI LAB.
Support the project:
PayPal
https://paypal.me/Izurex
Contact:
silwimbaizukanji@gmail.com
You can support MAIL-CARD by:
- โญ Star the repository - Help others discover MAIL-CARD!
- ๐ Reporting bugs and issues
- ๐ก Contributing improvements
- ๐ Improving documentation
- ๐ Sharing the project
- ๐ฐ Sponsoring development
- Distributed clustering
- Advanced spam filtering
- Web administration interface
- Mailbox migration tools
- AI-powered email classification
- Advanced search capabilities
- Multi-tenant support
- Plugin system
- Production-ready stability
- Comprehensive documentation
- Enterprise features
- Long-term support
MAIL-CARD - Modern Email Server for the Future ๐

