Technical Documentation

Email Delivery InfrastructureArchitecture Documentation

Comprehensive guide to our enterprise-grade, traffic-segmented email delivery platform

Architecture Overview

Traffic Segmentation Model

Our infrastructure follows industry-leading practices used by Microsoft 365, Amazon SES, SendGrid, and Mailgun. We maintain completely separate infrastructure paths for three distinct traffic types, ensuring optimal deliverability and IP reputation protection.

Business Email

OfficeConnect Platform

  • Multi-protocol support (IMAP, POP3, SMTP, MAPI, EWS)
  • Real-time email synchronization
  • Ultra-high reputation IP pools
  • Dedicated MTA clusters in Mumbai

Transactional

M3C.quantum Platform

  • Sub-10-second OTP delivery
  • Priority classification & routing
  • Protected transactional IP pools
  • Multi-DC MTA clusters (Mumbai + Chennai)

Promotional

M3C.promo Platform

  • High-volume capacity: 10 crore+ emails
  • Advanced throttling management
  • Isolated promotional IP pools
  • Bulk MTA clusters in Chennai

High-Level System Diagram

Email Processing Pipeline

Inbound Email Flow

Internet Traffic
FlexCloud Load Balancers
Traffic Classification
Business Queue
Transactional Queue
Promotional Queue

Outbound Email Flow

Dedicated MTA Clusters
Segmented IP Pools
IP Warm-up & Reputation
Recipient Servers
Core Infrastructure Components
  • Load Balancers: Multi-DC active-active configuration
  • MTA Clusters: Dedicated clusters per traffic type
  • Database Servers: Real-time replication and sync
  • Queue Managers: Priority-based email routing
IP Pool Management
  • Business IPs: Ultra-high reputation, low volume
  • Transactional IPs: Protected pools with SLA guarantees
  • Promotional IPs: Bulk-optimized, isolated reputation
  • Warm-up Strategy: Gradual volume increase protocol

Security & Compliance

Transport Security

  • TLS 1.2/1.3 Encryption: All email traffic encrypted in transit with modern TLS protocols
  • Certificate Management: Automated SSL/TLS certificate rotation and monitoring
  • Perfect Forward Secrecy: Session keys never reused, protecting past communications

Email Authentication

  • DKIM Signing: All outbound emails cryptographically signed with 2048-bit keys
  • SPF Records: Authorized sender IP lists published in DNS for verification
  • DMARC Policy: Domain-level authentication reporting and policy enforcement

Compliance Standards

  • SOC 2 Type II: Annual third-party audits for security, availability, and confidentiality
  • DPDPA Alignment: Data protection practices aligned with Digital Personal Data Protection Act
  • ISO 27001: Information security management system certification

Data Protection

  • Encryption at Rest: All stored email data encrypted using AES-256
  • Access Controls: Role-based access with multi-factor authentication requirements
  • Audit Logging: Comprehensive activity logs retained for compliance and forensics

Reliability & Scalability

High Availability Architecture

Infrastructure Redundancy

  • Multi-DC Setup: Active-active configuration across Mumbai and Chennai data centers
  • N+1 Redundancy: All critical components have backup capacity
  • Geographic Distribution: Traffic distributed across multiple availability zones

Failover Mechanisms

  • Automatic Failover: Sub-60-second detection and recovery for MTA failures
  • Database Replication: Real-time synchronous replication with automatic promotion
  • Load Balancer HA: Active-passive pairs with health check monitoring

99.99% Uptime SLA

Our infrastructure is designed to deliver 99.99% uptime, equivalent to less than 53 minutes of downtime per year. This is achieved through redundant systems, automated failover, and proactive monitoring.

53m
Max Downtime/Year
<60s
Failover Time
24/7
NOC Monitoring

Rate Limiting & Throttling

Inbound Rate Limits

  • Connection Limits: Per-IP connection throttling to prevent abuse
  • Message Rate: Configurable per-sender message rate controls
  • Greylisting: Temporary rejection of suspicious traffic patterns

Outbound Throttling

  • Recipient Throttling: ISP-specific sending rate optimization
  • Domain Limits: Per-domain sending limits to maintain reputation
  • Adaptive Throttling: Dynamic rate adjustment based on recipient feedback

Integration Points

SMTP Relay

Standard SMTP relay integration for existing applications and email clients.

Host: smtp.netgains.in
Port: 587 (TLS) | 465 (SSL)
Auth: Username + Password
  • Standard SMTP authentication
  • TLS 1.2/1.3 encryption required
  • Automatic traffic classification

REST API

RESTful API for transactional and promotional email with advanced features.

POST /v1/send
Authorization: Bearer <token>
Content-Type: application/json
  • Template management & variables
  • Batch sending capabilities
  • Real-time delivery tracking

Webhooks

Real-time event notifications for delivery status, bounces, and engagement.

  • Delivery Events: Sent, delivered, bounced, deferred
  • Engagement Events: Opens, clicks, unsubscribes
  • Security: HMAC signature verification
  • Retry Logic: Exponential backoff for failed deliveries

Protocol Support

Multi-protocol support for business email clients and applications.

  • IMAP: Full mailbox synchronization support
  • POP3: Legacy email client compatibility
  • MAPI: Microsoft Outlook native protocol
  • EWS: Exchange Web Services for enterprise

Operational Model

Logging

  • SMTP Logs: Complete transaction logs for every email
  • Delivery Logs: Recipient server responses and status codes
  • Audit Logs: All administrative actions and configuration changes
  • Retention: 90-day default retention with extended options

Retries

  • Soft Bounces: Retry up to 72 hours with exponential backoff
  • Hard Bounces: Immediate failure with no retry attempts
  • Deferral Handling: Intelligent retry scheduling based on recipient feedback
  • Priority Queues: OTP/transactional retries prioritized over promotional

Alerting

  • Performance Alerts: Queue depth, delivery rates, latency spikes
  • Security Alerts: Authentication failures, suspicious patterns
  • Infrastructure: Server health, disk space, network connectivity
  • Escalation: 24/7 NOC with automated escalation procedures

Monitoring & Analytics

Real-time Metrics

  • Messages sent, delivered, bounced, deferred per minute
  • Queue depth and processing time by traffic type
  • IP pool reputation scores and blacklist monitoring
  • Server resource utilization (CPU, RAM, disk, network)

Historical Analytics

  • Delivery trends and performance over time
  • Bounce rate analysis and categorization
  • Engagement metrics (opens, clicks, conversions)
  • Custom reporting and data export capabilities

FAQs & Troubleshooting

How does traffic segmentation improve deliverability?

Traffic segmentation isolates different email types onto separate infrastructure and IP pools. This means promotional campaigns never impact the reputation of your business email or critical transactional messages. Each traffic type maintains its own IP reputation, optimized sending patterns, and ISP relationships. This architectural separation is the same approach used by Microsoft 365, Amazon SES, and SendGrid to achieve industry-leading inbox rates.

What happens if one data center fails?

Our active-active multi-DC architecture ensures automatic failover within 60 seconds. Email traffic is continuously load-balanced across Mumbai and Chennai data centers. If one location experiences issues:

  • Load balancers automatically redirect all traffic to healthy data center
  • Database replication ensures no data loss with real-time synchronization
  • Queued emails continue processing without interruption
  • NOC team receives immediate alerts and begins recovery procedures

How long does IP warm-up take?

IP warm-up typically takes 4-6 weeks depending on your sending volume and email quality. We follow a gradual volume increase protocol:

Week 1-2:

Start with 50-100 emails/day to your most engaged users. Focus on recipients who regularly open and click.

Week 3-4:

Double volume every 2-3 days while monitoring bounce and complaint rates closely.

Week 5-6:

Gradually reach full production volume while maintaining list hygiene and engagement metrics.

Ongoing:

Continue monitoring reputation scores and adjust sending patterns based on ISP feedback.

Why are my emails going to spam?

Email deliverability depends on multiple factors. Common issues and solutions:

Authentication Not Configured

Ensure DKIM, SPF, and DMARC records are properly configured in your DNS. Our system provides the exact records you need to publish. Without proper authentication, ISPs treat your emails as suspicious.

Poor List Quality

High bounce rates damage IP reputation. Remove invalid addresses, implement double opt-in, and suppress complainers. Aim for bounce rates below 2% and complaint rates below 0.1%.

Content Triggers

Avoid spam trigger words, excessive punctuation, all caps, and misleading subject lines. Maintain a good text-to-image ratio and always include a clear unsubscribe link.

Engagement Issues

ISPs track recipient engagement. Segment your list and send relevant content to engaged users. Remove recipients who haven't opened emails in 6+ months. Re-engagement campaigns can help but may need separate IPs.

How do I troubleshoot API integration issues?

Common API troubleshooting steps:

1
Verify API credentials: Ensure your API key is active and has the correct permissions. Check for typos in the Authorization header.
2
Check request format: Validate JSON syntax, ensure Content-Type header is set to application/json, and confirm all required fields are present.
3
Review error responses: API returns detailed error messages with specific codes. Common: 400 (bad request), 401 (unauthorized), 429 (rate limit), 500 (server error).
4
Test with API logs: Enable detailed logging in your application to see full request/response cycle. Check our API logs in the dashboard for server-side processing details.
5
Contact support: If issues persist, provide: API endpoint, request payload (sanitized), response code, timestamp, and your account ID for faster resolution.

Need Help with Implementation?

Our technical team is available 24/7 to assist with architecture questions, integration support, and best practices.