Nginx Mailer

Nginx Mailer is a lightweight Docker container that serves static websites and sends contact-form submissions to an email address via Simple Mail Transfer…

  • Development
  • Network Services
  • Productivity
  • Tools & Utilities
Nginx Mailer is a lightweight Docker container that serves static websites and sends contact-form submissions to an email address via Simple Mail Transfer Protocol (SMTP), with optional Cloudflare Turnstile protection for personal or portfolio sites that need a simple contact form without a full backend.

Platform availability

Available on 1 of 10 platforms

  • Unraid
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server (not listed)

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

56/100 Fair

Maintained
95last commit 31 days ago
Popular
102 GitHub stars
Easy to install
351 install platform, install notes, Docker image
Light to run
No data

Based on 3 of 4 factors.

Availability: platform listings confirmed today, links checked 28 days ago

GitHub stars
2
Open issues
0
Last commit
2026-10-20
Latest release
v1.0.1
License
GPL-3.0
Activity
steady

Checked 9 days ago - source: GitHub (GeiserX/nginx-mailer)

Resources & Compatibility

ARM (e.g. Raspberry Pi) is supported.

Checked 54 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Map container port 80 to a host port The nginx service listens on port 80 inside the container, so expose it with a port map such as -p 8080:80; otherwise you cannot open the service from your browser. source
  • Custom templates need mounted folders and variables If you use a config template like default.conf.template, put it in ./templates, mount that folder to /etc/nginx/templates, and pass placeholders as environment variables (settings set with -e); missing values leave placeholders such as ${MY_DOMAIN} unreplaced and can break the site. source
  • IPv6 may be enabled by default If your host has IPv6, the container updates the default config so nginx also listens on IPv6. That is automatic, but it can help if your mailer is reached over an IPv6 address or your network blocks IPv4. source
  • Initial setup Mount the static site directory to /usr/share/nginx/html and set SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD, SMTP_FROM, and CONTACT_EMAIL. source

Fetched 45 days ago - each note links to its source

Alternatives (11)

  • Apache HTTP Server - Open-source HTTP server offering cross-platform support, modular architecture, secure configuration, robust content delivery, and extensive…
  • BunkerWeb - BunkerWeb is a self-hosted, open-source web application firewall and NGINX-based web server that protects services with secure-by-default s…
  • Caddy - Caddy is an extensible web server and reverse proxy that serves Transport Layer Security (TLS) by default, making it simple to secure and r…
  • Corvus - Self-hosted reverse proxy and web application firewall with a web console; it provides domain forwarding, free SSL, live traffic monitoring…
  • Haproxy - HAProxy is a TCP proxy and a HTTP reverse proxy.
  • Microsoft IIS - Internet Information Services (IIS) for Windows® Server is a flexible, secure and easy-to-manage Web server for hosting anything on the Web.
  • Træfik Proxy - The Cloud Native Application Proxy Simplify networking complexity while designing, deploying, and operating applications.
  • Varnish - Varnish is an open-source HyperText Transfer Protocol (HTTP) accelerator for website operators that serves cached pages from memory in fron…
  • lighttpd - Lighttpd is a secure, lightweight web server that uses memory and CPU more efficiently than comparable servers, with FastCGI, CGI, authenti…
  • nginx - Nginx is an HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy, and mail proxy server.
  • nginx-ui

Checked 40 days ago - source: AlternativeTo

Common questions

How do I provide the static website files?

Mount your site folder to /usr/share/nginx/html, for example read-only with -v /path/to/site:/usr/share/nginx/html:ro. nginx serves that folder on port 80.

Which port should I publish for the site and contact form?

Expose container port 80 to a host port, such as -p 80:80. The static site, /api/contact, and /health are all served through nginx.

Which SMTP environment variables do I need to set?

Set SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD, SMTP_FROM, and CONTACT_EMAIL. Use port 465 for SMTP over TLS or another port for STARTTLS.

Can I use Cloudflare Turnstile for CAPTCHA?

Yes, the container includes optional Cloudflare Turnstile CAPTCHA integration for the contact form.

Answers sourced from github.com

Community

Collected 53 days ago - public community threads