Vault SMTP Credentials Management
Secure credential storage and rotation with HashiCorp Vault integration.
Documentation Structure
Comprehensive guide organized by functional area:
Core Architecture
- Architecture - System architecture and design
- Storage Workflow - Credential storage process
- Retrieval - Credential retrieval mechanisms
User Features
- Secure Viewing UI - Web interface for viewing credentials
- Credential Rotation - Automated rotation procedures
- Emergency Reset - Emergency credential reset
Operations & Security
- Audit Logging - Audit trail and monitoring
- Disaster Recovery - Recovery procedures
- API Endpoints - API documentation
- Security Considerations - Security best practices
- Compliance - Compliance requirements
- Implementation Checklist - Implementation guide
Overview
This document describes the secure storage and management of MailU SMTP admin credentials in HashiCorp Vault. All SMTP credentials are encrypted before storage, automatically rotated every 180 days, and protected with comprehensive audit logging.
Purpose
Traditional approaches to storing SMTP credentials create security vulnerabilities:
-
Credentials stored in ENV files on VPS are exposed if VPS is compromised
-
Manual credential rotation is error-prone and often neglected
-
No centralized audit trail for credential access
-
Difficult to recover credentials after VPS failure
Vault-based SMTP credential storage provides:
-
Centralized Storage - Credentials stored in Vault, not on VPS
-
Encryption at Rest - AES-256-GCM encryption before Vault storage
-
Automated Rotation - 180-day rotation policy with zero downtime
-
Audit Trail - All credential access logged with timestamp and user
-
Disaster Recovery - Rapid credential recovery from Vault backups
Key Benefits
-
VPS Compromise Protection - If VPS is compromised, credentials can be rotated immediately
-
Zero-Downtime Rotation - Automated rotation without service interruption
-
Admin Troubleshooting - PenguinMails admins can retrieve credentials for support
-
Emergency Reset - Rapid credential reset in case of security incident
-
Compliance - Audit trail supports SOC 2, ISO 27001, and GDPR requirements