Problem Statement: A Policy-Enforcing Corporate Mail Platform
Frames corporate email as a security-critical communication backbone, not merely a messaging store.
Problem statement
Design a secure corporate email system that stores and retrieves mail via standard protocols (SMTP, IMAP, POP3, Exchange ActiveSync), enforces organizational policies on every message, scans attachments for malware, applies Data Loss Prevention rules to outbound content, optionally encrypts sensitive payloads end-to-end, and journals every message for compliance e-discovery.
This is not a personal webmail product. Corporate email sits at the intersection of legal obligation, regulatory compliance, and active adversarial targeting. Microsoft reported that 91% of cyberattacks begin with a phishing email delivered to a corporate mailbox. Proofpoint's 2025 State of the Phish report found that 84% of organizations experienced at least one successful phishing attack in the prior 12 months. The system must therefore treat every inbound message as potentially hostile and every outbound message as potentially exfiltrating.
Why the problem is distinctive
A consumer email service optimizes for delivery speed and storage cost. A corporate email system adds four orthogonal constraints that a consumer system does not face:
- Policy enforcement is mandatory, not optional. Every message—internal, inbound, outbound—must pass through DLP rules, transport rules, and content filters before delivery or archival. A message that bypasses the policy engine is a compliance violation, not merely a bug.
- Journaling is a legal requirement. Regulations such as SEC Rule 17a-4, FINRA 4511, HIPAA, and GDPR Article 30 require that organizations retain communications for defined periods and produce them under legal hold. The journal must be tamper-evident, append-only, and searchable across years of data.
- Encryption is not a feature toggle. TLS for transport is table stakes. But corporate email also demands S/MIME or PGP for end-to-end message-level encryption, and at-rest encryption with customer-managed keys for regulated industries.
- The threat model is active and evolving. Business Email Compromise (BEC) cost organizations $2.9 billion in 2023 according to the FBI IC3 report. The system must detect impersonation, credential phishing, malware-laden attachments, and social engineering—often in real time.
The four architectural planes
- Mail transport plane: SMTP relay, inbound/outbound routing, TLS negotiation, queue management, retry logic, and delivery to mailbox stores.
- Security and policy plane: Spam filtering, malware scanning, DLP rule evaluation, transport rules, encryption/decryption, and policy verdict logging.
- Storage and retrieval plane: Mailbox databases, IMAP/POP/ActiveSync protocol servers, search indexes, folder management, and quota enforcement.
- Compliance and governance plane: Journaling, e-discovery search, legal hold, retention policies, audit logging, and admin console.
A strong interview answer keeps these planes separate. The transport plane must not block on compliance processing for time-critical delivery. The security plane must be able to quarantine a message without corrupting the mailbox store. The compliance plane must be able to search years of journaled mail without impacting live mailbox performance.
Key Highlights
- •Corporate email is a security-critical system, not a messaging convenience; 91% of cyberattacks begin with a phishing email.
- •Four architectural planes: transport, security/policy, storage/retrieval, compliance/governance.
- •Every message must pass through policy enforcement; bypass is a compliance violation.
- •Journaling is legally mandated under SEC, FINRA, HIPAA, and GDPR, not optional.
- •The threat model includes BEC ($2.9B losses in 2023), credential phishing, malware, and impersonation.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate mail transport from security policy enforcement: the former may retry, while the latter must fail closed."
- "Before selecting storage engines, let me define which decisions happen at the SMTP gateway, which in the security pipeline, and which at the mailbox layer."