Skip to content

A proof-of-concept for running a MTA and mail server with Dovecot and Postfix in Kubernetes.

License

Notifications You must be signed in to change notification settings

corybuecker/k8s-mail

Repository files navigation

Pre-read

Before using this tool, I highly recommend reading through my blog posts:

  1. Configuring Kubernetes and NGINX Ingress for a mail server
  2. Setting up Network File System (NFS) on Kubernetes
  3. Setting up Dovecot for IMAP and email submission on Kubernetes (K8s)
  4. Running a mail server in Kubernetes (K8s), tying it all together

Dovecot and Postfix can be dangerous if misconfigured. The risks run from open relaying, where a malicious party forwards spam through your mail server, to unauthorized access of your email. Be certain that you understand each setting and how it affects deliverablilty and security.

Build Kubernetes configuration

  1. Run npm install
  2. Run npm run build
  3. Answer the question about Sendgrid.
  4. Run kubectl apply -f kubernetes_with_secrets.yml

About

A proof-of-concept for running a MTA and mail server with Dovecot and Postfix in Kubernetes.

Topics

Resources

License

Stars

Watchers

Forks