01 Messaging Infrastructure
Enterprise Mail Server
As part of my apprenticeship lab environment, I designed and deployed a
production-grade mail server from scratch on Red Hat Enterprise Linux 9, integrated into an existing
enterprise setup with Red Hat Identity Management (IdM/FreeIPA) and OpenShift (OKD). The stack used
Postfix, Dovecot and Nginx to serve sunrise-avengers.ch with secure IMAP/SMTP, LDAP-based
mailbox provisioning, DKIM signing, SPF/DMARC validation, Thunderbird and Outlook autoconfiguration,
authenticated outbound relay through Brevo and controlled internal relay access for OKD-hosted and
dedicated applications.
Mailbox provisioning was handled pragmatically through IdM group membership, so new users received a mailbox automatically without manual setup, while a dedicated exclusion group covered service accounts. To overcome residential ISP PTR and reputation limitations, I configured Brevo as an authenticated smarthost and completed the required DNS validation through Cloudflare. Network access and relay permissions were segmented through pfSense across multiple VLANs to ensure only authorized internal systems could send mail.
- Context
- Apprenticeship lab project
- Scope
- Architecture, deployment, security and mail flow operations