Arivu Technologies
INFRASTRUCTURE ENGINEERING - ARIVU INTERNALProduction Ready

Enterprise Mail
Self-Hosted Infrastructure at Arivu

Arivu Technologies runs its own enterprise-grade, self-hosted mail and groupware infrastructure on mail.arivu.tech - 10+ microservices including Postfix MTA, Dovecot IMAP, SOGo groupware, Rspamd ML anti-spam, DNSSEC resolver, and a self-healing Watchdog. Zero SaaS dependency. Complete data sovereignty.

MAILCOW LIVE SPECmail.arivu.tech LIVE
FQDNmail.arivu.tech
PlatformMailcow Dockerized (Docker Compose)
Container Network172.22.1.0/24 (isolated bridge)
SMTP Ports25, 465 (SMTPS), 587 (Submission)
IMAP/POP3 Ports143/993 + 110/995 (TLS)
Anti-Spam EngineRspamd Neural + DNSBL multi-provider
DKIM Signing2048-bit RSA + Ed25519
Auth MFAWebAuthn / FIDO2 hardware key support
01 / WHY SELF-HOST?

Data sovereignty, zero vendor lock-in.

Google Workspace and Microsoft 365 are convenient - but they mean an external company holds every email archive, communication metadata, and security key for your organization. As Arivu Technologies scaled its engineering team, the recurring per-mailbox SaaS cost and data residency concerns made the case for a self-hosted solution compelling.

Data Sovereignty

100% control over email archives, metadata, and encryption keys - on-premises, no third-party access.

Cost Elimination

No per-user recurring SaaS licensing fees. Fixed infrastructure cost as Arivu's team grows.

Deliverability Control

Custom DKIM, SPF, DMARC, and PTR records give full control over sender reputation scoring.

10+ Services
Containerized microservices (Docker Compose)
Multi-DNSBL
IP reputation checked at TCP handshake
Zero SaaS
No Google Workspace or Microsoft 365 dependency
FIDO2 Ready
WebAuthn hardware key admin protection
02 / SYSTEM ARCHITECTURE

Isolated container topology.

INGRESS LAYER - Public Internet
Email Clients (SMTP 25/465/587)
IMAP/POP3 Clients (143/993, 110/995)
Web Browsers (HTTPS 443)
CORE SERVICES - Container Network 172.22.1.0/24
Nginx Web Proxy (SSL Termination)
Postfix MTA + Postscreen (DNSBL)
Dovecot IMAP/POP3 Engine
SOGo Groupware + Webmail
Rspamd Neural Anti-Spam + DKIM
Olefy Office Attachment Scanner
SECURITY & DATA LAYER
MariaDB (127.0.0.1:13306)
Redis (127.0.0.1:7654)
Netfilter (Fail2ban + iptables)
Unbound DNSSEC Resolver
03 / 10 MICROSERVICES

Every service, documented.

Postfix MTA + Postscreen
Mail Transport Agent & Anti-Abuse

Handles SMTP on ports 25/465/587. Postscreen blocks abusive IPs at TCP handshake via multi-provider DNSBL before any SMTP conversation starts.

Dovecot
IMAP/POP3 Mail Storage & Indexing

Encrypted IMAP/POP3 via ports 143/993 and 110/995. Maildir storage format. Optimized: FTS and ClamAV disabled for lean memory footprint.

SOGo Groupware
Webmail + Calendar + Contacts + Tasks

Full groupware suite with shared calendars, address books, and task lists. Native ActiveSync/CalDAV/CardDAV sync for iOS, Android, macOS, and Outlook.

Rspamd + Olefy
ML Anti-Spam, DKIM, ARC Signing

Neural Bayesian spam engine with SPF/DKIM verification, DMARC policies, fuzzy hashes. Olefy scans Office attachments for VBA macros. Auto-signs outgoing mail with 2048-bit RSA/Ed25519 keys.

MariaDB
Relational Database Backend

Stores domains, mailboxes, aliases, DKIM keys, and quota data. Isolated container on 172.22.1.0/24 network bound to 127.0.0.1:13306.

Redis
Session Cache & Rate Limiting Store

Sub-millisecond rate limiting counters, session data, Rspamd fuzzy hash cache, and Netfilter ban list coordination. Bound to 127.0.0.1:7654.

Nginx Reverse Proxy
Web Proxy, SSL Termination & UI

FastCGI proxy to PHP-FPM Admin UI and SOGo Webmail. Handles HTTPS 443 with Let's Encrypt TLS certificates. Automated renewal via acme.sh.

Unbound DNS Resolver
Recursive DNSSEC Resolver

Containerized recursive DNS resolver with DNSSEC validation. Bypasses public resolvers (8.8.8.8) to avoid DNSBL query rate limits and prevent DNS cache poisoning.

Netfilter (Fail2ban)
Dynamic Firewall & Brute-Force Protection

Parses authentication failure logs from Postfix, Dovecot, SOGo, and Web UI. Auto-injects iptables/nftables DROP rules for brute-force attackers.

Watchdog Service
Self-Healing Container Monitor

Active health checks on every container. Unhealthy containers auto-restart. Discord/Slack webhook + admin email alerts on service restarts and IP ban events.

04 / INSPECTABLE CONFIGURATION

Real production config from mail.arivu.tech.

data/conf/postfix/main.cf

Multi-provider IP reputation scoring on TCP handshake - before any SMTP conversation. Weighted scoring: Spamhaus (weight 8), Barracuda (7), with DNSWL whitelisting (negative score to -8) to prevent false positives.

1# Multi-tiered DNSBL IP reputation engine
2postscreen_dnsbl_sites =
3 wl.mailspike.net=127.0.0.[18;19;20]*-2
4 hostkarma.junkemailfilter.com=127.0.0.1*-2
5 list.dnswl.org=127.0.[0..255].0*-2
6 list.dnswl.org=127.0.[0..255].1*-4
7 list.dnswl.org=127.0.[0..255].2*-6
8 list.dnswl.org=127.0.[0..255].3*-8
9 bl.spamcop.net*2
10 b.barracudacentral.org=127.0.0.2*7
11 zen.spamhaus.org=127.0.0.[10;11]*8
12
13# Primary MTA identity
14myhostname = mail.arivu.tech
15mynetworks_style = host
16
17# SMTP security enforcement
18smtpd_tls_security_level = may
19smtp_tls_security_level = may
20smtpd_sasl_auth_enable = yes
05 / ANTI-SPAM & DELIVERABILITY POSTURE

Multi-layer defense. High deliverability.

Inbound protection (multi-DNSBL Postscreen + Rspamd ML) and outbound reputation (DKIM/SPF/DMARC signing) are configured to achieve high inbox placement in Gmail, Outlook, and Yahoo.

Mail Authentication Records
SPF: v=spf1 mx ip4:[VPS-IP] ~all
DKIM: Selector: mail._domainkey.arivu.tech · 2048-bit RSA
DMARC: v=DMARC1; p=quarantine; rua=mailto:postmaster@arivu.tech
PTR: mail.arivu.tech → VPS IP (aligned)

Postscreen Multi-DNSBL (Inbound)

  • Spamhaus Zen (weight 8) - known spammers, open relays
  • Barracuda Central (weight 7) - aggressive spam domain/IP filtering
  • DNSWL whitelisting (negative score to -8) - prevents false positives on clean senders
  • SpamCop + SuomiSpam - real-time spam trap enforcement

Rspamd Neural Engine (Inbound)

  • Bayesian statistical learning from spam/ham corpus
  • Fuzzy hash matching for known spam payloads
  • SPF, DKIM, DMARC policy enforcement
  • ARC (Authenticated Received Chain) verification for forwarded mail

Olefy Office Attachment Defense (Inbound)

  • Scans .doc, .xls, .xlsm for malicious VBA macros
  • Detects embedded scripts before delivery to mailbox
  • Plugs directly into Rspamd milter chain
06 / SOGo ENTERPRISE GROUPWARE

Full webmail + calendar + contacts + tasks.

Webmail Interface

Full-featured browser-based email client. Shared folders, message threading, HTML composition with attachment support.

Shared Calendar (CalDAV)

Team calendars with meeting invites, resource booking, and free/busy visibility. Native iOS, Android, macOS, and Outlook sync via CalDAV.

Address Book (CardDAV)

Shared team contacts synchronized across all devices. Contact groups, vCard import/export, and fine-grained sharing permissions.

Microsoft ActiveSync (EAS)

Push email and calendar sync to mobile devices using ActiveSync protocol - same protocol used by Microsoft 365.

Session Security

8-hour session timeout (SOGO_EXPIRE_SESSION=480). Custom 16-character URL encryption key encrypts embedded mail tokens in links.

Autodiscovery

Zero-touch client setup: Outlook Autodiscover XML/JSON, Mozilla Thunderbird Autoconfig, and Apple .mobileconfig profile generation.

07 / CONFIGURATION SUMMARY

Every critical parameter, documented.

CategoryParameterValuePurpose
IdentityMAILCOW_HOSTNAMEmail.arivu.techPrimary FQDN for EHLO/HELO and Web UI
TimezoneTZAsia/KolkataStandardized mail headers and logs
NetworkIPV4_NETWORK172.22.1.0/24Isolated Docker container subnet
NetworkENABLE_IPV6falseIPv4-only to prevent open relay risk
StorageMAILDIR_GC_TIME7200 minutes2-hour retention buffer for deleted mail
PerformanceSKIP_CLAMDy (disabled)Reduced RAM footprint (Olefy replaces)
PerformanceSKIP_FTSy (disabled)Lean memory without full-text indexer
GroupwareSOGO_EXPIRE_SESSION480 minutes8-hour webmail session duration
OperationsUSE_WATCHDOGy (enabled)Automated container health monitoring
08 / SECURITY ISOLATION POSTURE

Defense in depth, containerized.

Private Network Isolation

All inter-service communication bound to the 172.22.1.0/24 bridge network. Administrative ports (MySQL :13306, Redis :7654, Doveadm :19991) bound to 127.0.0.1 loopback only - inaccessible from the public internet.

Netfilter Dynamic Firewall

Fail2ban continuously parses authentication failure logs across Postfix, Dovecot, SOGo, and the Web UI admin panel. Brute-force IPs receive automatic iptables/nftables DROP rules - no human action required.

Unbound DNSSEC Resolver

Containerized recursive DNS resolver with DNSSEC validation bypasses public resolvers (Google 8.8.8.8) to avoid DNSBL query rate limits and protect against DNS cache poisoning attacks.

WebAuthn / FIDO2 MFA

Hardware security key (YubiKey, etc.) support enabled for the Mailcow Admin UI. Eliminates password-only authentication risk for the administrative control plane.

09 / DISASTER RECOVERY & OPS

Self-healing. Point-in-time recovery.

Automated Watchdog self-heals container failures. Cold standby sync enables rapid server failover. Backup suite captures all state for point-in-time restore.

Watchdog Auto-Heal

Active health checks every 60 seconds across all containers. Unhealthy containers automatically restart. Discord/Slack webhook + admin email alerts on restarts and IP ban events.

Cold Standby Sync

create_cold_standby.sh keeps a secondary server synchronized with current production state. In a hardware failure, failover to standby with minimal downtime.

Full Backup Suite

backup_and_restore.sh captures MariaDB relational data, Redis cache, Rspamd ML state, vmail Maildir storage (all mailboxes), and SSL/TLS certificates in a single compressed archive.

Automated Updates

Mailcow updates managed via update.sh with automatic pre-update backup and rollback capability. No manual Docker image management required.

REST API Automation

Full JSON REST API allows Arivu to automate mailbox creation, alias mapping, quota updates, DKIM key generation, and domain routing from internal HR/IT dashboards.

10 / ENGINEERING CREDIBILITY & BUSINESS VALUE

What this says about how Arivu engineers.

Running a production Mailcow stack isn't just a cost-saving measure - it demonstrates Arivu's engineering culture: full-stack, infrastructure-literate engineers who own what they build from application layer to DNS record.

Production Infrastructure Ownership

Arivu's engineers configure, operate, and maintain production containerized infrastructure - not just SaaS-configured apps.

DNS, SPF, DKIM, DMARC Expertise

End-to-end email authentication configuration - from PTR records to DMARC rua reporting - reflects deep networking and deliverability knowledge.

Security-First Mindset

Multi-DNSBL reputation scoring, Fail2ban dynamic firewall, WebAuthn MFA, and private network isolation reflect the same security posture applied to client production systems.

11 / MAIL DELIVERY PIPELINE

How an email travels through the stack.

01

TCP Connection

Inbound SMTP connection on port 25. Postscreen immediately checks sender IP against multi-provider DNSBL scoring - before any SMTP conversation.

02

DNSBL Scoring

Spamhaus (8), Barracuda (7), DNSWL negative scores (-8). Threshold exceeded = connection rejected at TCP level.

03

SMTP Authentication

EHLO, STARTTLS, AUTH PLAIN/LOGIN. Postfix validates sender authentication credentials via Dovecot SASL.

04

Rspamd Milter

Every message body, headers, and attachments pass through Rspamd for Bayesian scoring, SPF/DKIM/DMARC check, and Olefy Office macro scan.

05

LMTP Delivery

Postfix delivers via LMTP to Dovecot for Maildir storage. Dovecot sessions with Redis for rate limiting and session cache.

06

DKIM Auto-Sign

Outgoing mail from arivu.tech is automatically signed with 2048-bit RSA or Ed25519 DKIM key via Rspamd before transmission.

12 / FAQs

Questions about Arivu's mail infrastructure?

Why self-hosted mail vs. Google Workspace or Microsoft 365?

How is the Mailcow stack protected against brute-force attacks?

How does email delivery reputation work?

What is the disaster recovery procedure?

ARIVU INFRASTRUCTURE ENGINEERING · BENGALURU

Need enterprise mail infrastructure with data sovereignty?

Arivu deploys production-hardened Mailcow stacks for organizations that need on-premises email, self-hosted groupware, or complete email infrastructure independence from SaaS vendors.