Enable TLS and Authentication
mainMailCrab supports TLS and authentication for the SMTP server.
Automatic Certificate Generation
Set ENABLE_TLS_AUTH=true. MailCrab will generate a self-signed certificate and print the key-pair. Any username/password combination is accepted.
docker run --rm --env ENABLE_TLS_AUTH=true -p 1080:1080 -p 1025:1025 marlonb/mailcrab:latestUsing Custom Certificates
To use your own certificates, mount your key and certificate files to /app/key.pem and /app/cert.pem inside the container:
docker run --rm --env ENABLE_TLS_AUTH=true -v key.pem:/app/key.pem:ro -v cert.pem:/app/cert.pem:ro -p 1080:1080 -p 1025:1025 marlonb/mailcrab:latest