# zerosmtp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/msgwing/ZeroSMTP  
**GitHub Stars:** 4  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/zerosmtp

## Description
A free SMTP relay that still takes a username and password, for devices that cannot do OAuth 2.0.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "zerosmtp": {
    "command": "npx",
    "args": ["-y","zerosmtp-check"]
  }
}
```

## Documentation & README

<div align="center">

![ZeroSMTP — a free SMTP relay that still accepts basic auth. mx.msgwing.com, port 587 STARTTLS or 465 SSL/TLS.](https://raw.githubusercontent.com/msgwing/ZeroSMTP/HEAD/docs/assets/banner.png)

**Everything you need for the Microsoft 365 SMTP AUTH shutdown.**<br>
Find out what breaks in your tenant, check whether your hardware has a way
out, and keep it sending — including a free relay for the devices that will
never speak OAuth.<br>
The relay is free with no paid tier, capped at **200 messages/day**, and sends
from a shared `@msgwing.com` address rather than your own
([why](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/FAQ.md#will-emails-be-sent-from-my-own-domain-eg-youyourdomaincom)).

[![mx.msgwing.com status](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/msgwing/ZeroSMTP/status/status.json)](https://github.com/msgwing/ZeroSMTP/actions/workflows/service-healthcheck.yml)
[![Exchange Online Basic auth countdown](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/msgwing/ZeroSMTP/status/countdown.json)](docs/EXCHANGE-ONLINE-SMTP-AUTH.md)
[![Lint examples](https://github.com/msgwing/ZeroSMTP/actions/workflows/lint.yml/badge.svg)](https://github.com/msgwing/ZeroSMTP/actions/workflows/lint.yml)
[![21 ready-to-run examples](https://img.shields.io/badge/examples-21%20ready--to--run-blue)](#code-examples)
[![GitHub stars](https://img.shields.io/github/stars/msgwing/ZeroSMTP)](https://github.com/msgwing/ZeroSMTP/stargazers)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)

[![mx.msgwing.com uptime, every check on record](https://raw.githubusercontent.com/msgwing/ZeroSMTP/status/uptime-card.svg)](https://github.com/msgwing/ZeroSMTP/actions/workflows/service-healthcheck.yml)

[![Exchange Online Basic auth (SMTP AUTH) countdown](https://raw.githubusercontent.com/msgwing/ZeroSMTP/status/countdown-card.svg)](docs/EXCHANGE-ONLINE-SMTP-AUTH.md)

[**Get a free account →**](https://msgwing.com) · [**Exchange Online migration →**](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/EXCHANGE-ONLINE-SMTP-AUTH.md) · [Documentation site](https://docs.msgwing.com/) · [Quickstart](#quickstart) · [Code examples](#code-examples) · [FAQ](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/FAQ.md) · [Deutsch](https://github.com/msgwing/ZeroSMTP/blob/HEAD/README.de.md) · [Polski](https://github.com/msgwing/ZeroSMTP/blob/HEAD/README.pl.md)

</div>

<!-- BEGIN GENERATED CONTENTS -->
<!-- Generated by tools/build-readme-toc.py from this file's own
     headings. Do not edit by hand - a contents list that drifts is
     worse than none, because a missing row looks like nothing. -->

## Contents

- [What's in here](#whats-in-here)
- [Quickstart](#quickstart)
- [Why ZeroSMTP?](#why-zerosmtp)
- [⭐ Support ZeroSMTP](#-support-zerosmtp)
- [How does this compare to other options?](#how-does-this-compare-to-other-options)
- [GitHub Actions](#github-actions)
- [Code Examples](#code-examples)
- [Security & Deliverability](#security--deliverability)
- [Star History](#star-history)

<!-- END GENERATED CONTENTS -->

> ### Arrived from the GitHub Marketplace?
>
> This page is the README of the whole project, which is a free SMTP relay — so
> the action you came for is below the fold. Here it is:
>
> ```yaml
> - uses: msgwing/ZeroSMTP@v1
>   with:
>     host: smtp.office365.com
>     cert-expiry-days: '14'
> ```
>
> It checks outbound SMTP from the runner — ports, TLS, certificate and the
> AUTH mechanisms offered — and **fails the job when the mail server's
> certificate is inside the window you set**. Nobody watches a mail
> certificate; it expires on a Sunday and the first report is somebody saying
> scanning stopped working.
>
> No install and no npm: the tool has no dependencies, so the action runs the
> file shipped beside it. Every input, and the scheduled-canary setup that
> reports without failing, is in [**GitHub Actions**](#github-actions) further
> down.

## What's in here

| | |
| --- | --- |
| **1. Audit your tenant** | [`Find-SmtpAuthExposure.ps1`](https://github.com/msgwing/ZeroSMTP/blob/HEAD/Find-SmtpAuthExposure.ps1) — read-only. Reports every mailbox that can still use SMTP AUTH, counting the ones that *inherit* the tenant setting separately, because the usual `-eq $false` one-liner misses those entirely and can report zero on a fully exposed tenant. |
| **2. Check your hardware** | [Compatibility list](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/DEVICE-COMPATIBILITY.md) for printers, MFPs, scanners and NAS units — machine-readable, backed by [`data/devices.json`](https://github.com/msgwing/ZeroSMTP/blob/HEAD/data/devices.json) and published as data at [docs.msgwing.com/data/devices.json](https://docs.msgwing.com/data/devices.json). Which models have OAuth firmware, and [which ones the vendor has ruled out](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/NO-OAUTH-FIRMWARE.md), each row linking the vendor's own statement. |
| **3. Keep it sending** | A free SMTP relay — an outgoing mail gateway that still accepts a username and password — with [21 code examples across 19 languages](#code-examples), [Ansible and Docker Compose recipes](#deployment-recipes), and [scan to email setup by printer brand](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/PRINTERS.md) for HP, Canon, Ricoh, Xerox, Kyocera, Sharp, Brother and the rest. |

Plus [what every error message actually means](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/ERROR-MESSAGES.md), and a
[migration guide](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/EXCHANGE-ONLINE-SMTP-AUTH.md) that covers Graph API,
Direct Send and paid relays — not just this one.

**How big is this actually?** Nobody had published a number, so we measure one
every week: at least **24,960 public files on GitHub** still contain a
Microsoft 365 SMTP hostname. That is a count of files, not of systems that
will break, and [the page says exactly what it does and does not
mean](docs/BLAST-RADIUS.md) — along with the raw data, so you can check it
rather than trust it.

> **Getting `535 5.7.139 Authentication unsuccessful, basic authentication is disabled`?**
> That's Microsoft switching off Basic auth for SMTP AUTH — [start
> here](docs/ERROR-MESSAGES.md). Three of the four causes are still reversible
> until the end of December 2026.
>
> Want to know the day this changes? [Subscribe to the dated timeline](https://github.com/msgwing/ZeroSMTP/issues/305) —
> one comment per confirmed change, nothing else.
>
> ```bash
> npx zerosmtp-check --explain "535 5.7.139 Authentication unsuccessful"
> ```
>
> Paste whatever *your* client printed — a Postfix SASL line, a Python
> traceback, `1102` off a Kyocera panel, or the `curl: (67) Login denied` that
> hides the server's answer entirely. They are the same refusal wearing
> different clothes, and it says which case you are in and whether it can still
> be switched back on. No install, nothing sent.

---

```bash
curl --url "smtps://mx.msgwing.com:465" \
  --user "$ZEROSMTP_USERNAME:$ZEROSMTP_PASSWORD" \
  --mail-from "$ZEROSMTP_FROM" --mail-rcpt "$ZEROSMTP_TO" \
  --upload-file <(printf 'Subject: Test\r\n\r\nHello from ZeroSMTP!') --ssl-reqd
```

That's the whole thing — no SDK, no API key, just SMTP credentials that work
with anything that already speaks SMTP.

| | |
| --- | --- |
| **Server** | `mx.msgwing.com` |
| **Port** | `587` (STARTTLS) or `465` (SSL/TLS) |
| **Login** | your randomly generated `@msgwing.com` address |
| **Cost** | free — up to 200 emails/day ([limits](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/TROUBLESHOOTING.md#sending-limits-rate-limiting)) |
| **Catch** | mail is sent *from* `@msgwing.com`, not your own domain ([why](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/FAQ.md#will-emails-be-sent-from-my-own-domain-eg-youyourdomaincom)) |

## Quickstart

1. **[Register your free account →](https://msgwing.com)** — 30 seconds, no credit card, no trial. You immediately get a random `@msgwing.com` login and password.
2. Copy [`.env.example`](https://github.com/msgwing/ZeroSMTP/blob/HEAD/.env.example) to `.env` and fill in your credentials.
3. Run the curl snippet above (`export $(grep -v '^#' .env | xargs)` first), or pick your language from the [Code Examples](#code-examples) table — every example reads the same `.env` variables.
4. Having trouble? Check your network lets SMTP out at all — `Test-NetConnection mx.msgwing.com -Port 587` on Windows, or `openssl s_client -starttls smtp -connect mx.msgwing.com:587` elsewhere. That is what most first-run failures turn out to be. Then see [Error messages](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/ERROR-MESSAGES.md) · [Troubleshooting](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/TROUBLESHOOTING.md).

> Prefer not to install anything locally? Every runtime used below (Python, PHP,
> Node, Ruby, Go, Java, Kotlin/Gradle, .NET, Rust) is preinstalled in the
> included [Dev Container / Codespace](https://github.com/msgwing/ZeroSMTP/blob/HEAD/.devcontainer/devcontainer.json).
> [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/msgwing/ZeroSMTP)

![Connectivity check against mx.msgwing.com](https://raw.githubusercontent.com/msgwing/ZeroSMTP/HEAD/docs/assets/connection-check.png)

## Why ZeroSMTP?

- **Nothing to run and nothing to pay for.** No mail server, no API key, no
  credit card, no per-email pricing tier to graduate into.
- **Works with anything that already speaks SMTP** — apps, scripts, network
  printers, NAS boxes, IoT hardware. If it has a "SMTP server" field, it works.
- **Plain SMTP AUTH still accepted.** No OAuth2 flow to implement, which is
  the whole point for old devices that will never get a firmware update.
- **Managed reputation.** Accounts are randomly generated on a domain that's
  actively monitored for abuse, so you're not warming up an IP yourself.
- **21 copy-paste examples** across 19 languages, all reading the same
  environment variables, plus Ansible and Docker Compose recipes and setup
  guides for Windows Server, Linux, and printers by brand.
- **Verifiably up** — the card above is a real check against `mx.msgwing.com`,
  not a static image: every completed run is drawn, and the spacing printed on
  it is measured from those runs rather than copied from the schedule. GitHub
  delays scheduled workflows, so the cron asks for 15 minutes and the median
  gap is closer to 45.
- **Auditable handling** — where mail is processed, what is kept and for how
  long, and the TLS versions the relay actually accepts and refuses, measured
  rather than claimed: [What happens to mail sent through this
  relay](https://docs.msgwing.com/PRIVACY.html).

Good for: contact forms · password resets · CI/CD and monitoring alerts ·
scan-to-email · IoT and device notifications · homelabs.

> ### ⚠️ Losing SMTP AUTH on Exchange Online / Microsoft 365?
> Microsoft disables Basic authentication for SMTP AUTH by default at the
> **end of December 2026**. Printers, NAS boxes, backup jobs and monitoring
> tools that can't do OAuth stop sending — and the alerting ones fail
> *silently*, so you find out during the incident they should have warned
> you about.
>
> **[Dated timeline →](https://github.com/msgwing/ZeroSMTP/issues/305)** — subscribe and you get an email
> the day Microsoft changes either date. December 2026 is the default being
> switched off, not the removal; the final date is announced in H2 2027.
>
> **[Migration guide →](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/EXCHANGE-ONLINE-SMTP-AUTH.md)** covers every
> option (Graph API, Direct Send, on-prem relay, paid services), not just
> this one. **[What breaks →](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/AFFECTED-SYSTEMS.md)** is the audit list,
> including models whose vendor has said no OAuth firmware is coming.
>
> **Run [`Find-SmtpAuthExposure.ps1`](https://github.com/msgwing/ZeroSMTP/blob/HEAD/Find-SmtpAuthExposure.ps1)** to get the
> answer for your own tenant. Read-only, and it counts the mailboxes that
> inherit the tenant setting — the ones the usual one-liner misses.

Setup guides: [Network printers](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/PRINTERS.md) · [Popular applications](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/APPS.md) · [Linux (Debian/Ubuntu/Rocky/Fedora/openSUSE)](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/LINUX.md) · [System-wide mail relay (Postfix/msmtp/Exim4)](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/SYSTEM-MTA.md) · [Windows Server](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/WINDOWS-SERVER.md) · [Exchange Online SMTP AUTH migration](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/EXCHANGE-ONLINE-SMTP-AUTH.md) · [Monitoring alerts](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/MONITORING.md) · [OAuth compatibility list](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/DEVICE-COMPATIBILITY.md) · [No OAuth firmware coming](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/NO-OAUTH-FIRMWARE.md) · [Device case studies](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/DEVICE-CASE-STUDIES.md) · [Troubleshooting](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/TROUBLESHOOTING.md) · [Reliability (retries)](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/RELIABILITY.md) · [vs. other free relays](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/ALTERNATIVES.md) · [How much public code breaks](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/BLAST-RADIUS.md) · [FAQ](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/FAQ.md)

> **Did this get a specific device sending again?** Tell us which one — a
> [device report](https://github.com/msgwing/ZeroSMTP/issues/new?template=device_report.yml)
> takes a couple of minutes. Vendors publish headline model lists; firmware
> branches, regional names and OEM rebadges drift away from them, so a report
> from someone holding the hardware is the part of
> [the compatibility list](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/DEVICE-COMPATIBILITY.md) nobody else can copy.
> Confirming a device that *works* is just as useful as reporting one that
> doesn't.

## ⭐ Support ZeroSMTP

This project is **free, with no paid tier and no ads** — it exists because
the people who found it useful decided to help the next person find it too.

**One star on GitHub is the cheapest way to do that.** GitHub ranks and
recommends repositories partly by stars, so it changes whether the next
sysadmin with a dead printer at 2am finds this — or spends the night
rebuilding what is already here.

▶️ **[Give ZeroSMTP a star on GitHub](https://github.com/msgwing/ZeroSMTP/stargazers)**

Already starred? **[Create your free account](https://msgwing.com)** is the
second best thing you can do — it takes 30 seconds and it means the next
person who lands here finds a healthy, active service rather than a
side-project graveyard.

Have a question first? Browse
[Discussions](https://github.com/msgwing/ZeroSMTP/discussions) — the same
questions most people ask before trusting a free relay are already answered
there.

## How does this compare to other options?

|  | ZeroSMTP | Gmail SMTP relay | Amazon SES | Mailgun / SendGrid / Brevo (typical free tier) |
| --- | --- | --- | --- | --- |
| Cost | Free, no card required | Free (personal Google account) | Pay-per-email (a limited free allowance only applies from AWS EC2, first 12 months) | Free tier, usually capped low and gated behind signup + domain verification |
| Setup | Register, copy SMTP credentials, done | Needs a Google account; Google's terms discourage automated/bulk sending over it | Needs an AWS account, plus a "production access" request before sending to unverified addresses | Signup + domain verification for full features |
| Custom "From" domain | No — always `@msgwing.com` (see [FAQ](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/FAQ.md#will-emails-be-sent-from-my-own-domain-eg-youyourdomaincom)) | Yes, your Gmail/Workspace address | Yes | Yes, once your domain is verified |
| Best fit | Contact forms, password resets, notifications, printers/IoT — anywhere the from-address doesn't need to be your own domain | Low-volume personal scripts | Production apps that need it and can handle the AWS setup | Businesses that need branded sending and can handle the setup |

Free-tier terms above change over time — check each provider's current
pricing page before committing to one.

### What about self-hosting my own mail server?

Popular self-hosted options like [docker-mailserver](https://github.com/docker-mailserver/docker-mailserver),
[Mailu](https://github.com/Mailu/Mailu), or [mailcow](https://github.com/mailcow/mailcow-dockerized)
give you a mailbox on your own domain and full control — but you're the one
running Postfix, DKIM/SPF/DMARC, spam filtering, and IP/domain reputation,
which is real ongoing maintenance, not a one-time setup. ZeroSMTP is the
other end of that trade-off: zero setup and zero maintenance, in exchange
for sending from the shared `@msgwing.com` address instead of your own
domain. If you already run one of those and it's working, there's no reason
to switch. If you're not sure the effort is worth it yet for a script,
contact form, or side project, ZeroSMTP costs nothing to try first.

## GitHub Actions

Two actions, and they do opposite things.

**[`msgwing/ZeroSMTP`](https://github.com/marketplace/actions/zerosmtp-check) — check that mail *can* be sent.**
Runs the connectivity check from the runner and fails the job when the mail
server's certificate is inside a window you choose. Nobody watches a mail
certificate; it expires on a Sunday and the first report is a user saying
scanning stopped working. No credentials and no mail sent.

```yaml
- uses: msgwing/ZeroSMTP@v1
  with:
    host: smtp.office365.com
    cert-expiry-days: '14'
```

**[`msgwing/send-email-action`](https://github.com/msgwing/send-email-action) — actually send one.**
For CI failure alerts, deploy notifications and scheduled reports.
On the [GitHub Marketplace](https://github.com/marketplace/actions/zerosmtp-send-email),
it wraps the setup below into one step:

```yaml
- uses: msgwing/send-email-action@v1
  with:
    username: ${{ secrets.ZEROSMTP_USERNAME }}
    password: ${{ secrets.ZEROSMTP_PASSWORD }}
    from: ${{ secrets.ZEROSMTP_USERNAME }}
    to: you@example.com
    subject: "Build failed"
    body: "See the run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
```

## Code Examples

Ready-to-run, production-ready examples for `mx.msgwing.com:465` (SSL/TLS) or
`:587` (STARTTLS), one file per language:

| Language | File |
| --- | --- |
| Python | [python-zerosmtp.py](https://github.com/msgwing/ZeroSMTP/blob/HEAD/python-zerosmtp.py) |
| PHP (PHPMailer) | [php-zerosmtp.php](https://github.com/msgwing/ZeroSMTP/blob/HEAD/php-zerosmtp.php) |
| PHP (Symfony Mailer) | [php-symfony-mailer-zerosmtp.php](https://github.com/msgwing/ZeroSMTP/blob/HEAD/php-symfony-mailer-zerosmtp.php) |
| Node.js | [node-zerosmtp.mjs](https://github.com/msgwing/ZeroSMTP/blob/HEAD/node-zerosmtp.mjs) |
| TypeScript | [ts-zerosmtp.ts](https://github.com/msgwing/ZeroSMTP/blob/HEAD/ts-zerosmtp.ts) |
| Bash (curl) | [bash-curl-zerosmtp.sh](https://github.com/msgwing/ZeroSMTP/blob/HEAD/bash-curl-zerosmtp.sh) |
| Bash (swaks) | [bash-swaks-zerosmtp.sh](https://github.com/msgwing/ZeroSMTP/blob/HEAD/bash-swaks-zerosmtp.sh) |
| Java | [java-zerosmtp.java](https://github.com/msgwing/ZeroSMTP/blob/HEAD/java-zerosmtp.java) |
| C# (.NET / MailKit) | [cs-zerosmtp.cs](https://github.com/msgwing/ZeroSMTP/blob/HEAD/cs-zerosmtp.cs) |
| Go | [go-zerosmtp.go](https://github.com/msgwing/ZeroSMTP/blob/HEAD/go-zerosmtp.go) |
| Ruby | [ruby-zerosmtp.rb](https://github.com/msgwing/ZeroSMTP/blob/HEAD/ruby-zerosmtp.rb) |
| Rust | [rust-zerosmtp.rs](https://github.com/msgwing/ZeroSMTP/blob/HEAD/rust-zerosmtp.rs) |
| Kotlin | [kotlin-zerosmtp.kt](https://github.com/msgwing/ZeroSMTP/blob/HEAD/kotlin-zerosmtp.kt) |
| Elixir | [elixir-zerosmtp.exs](https://github.com/msgwing/ZeroSMTP/blob/HEAD/elixir-zerosmtp.exs) |
| Lua | [lua-zerosmtp.lua](https://github.com/msgwing/ZeroSMTP/blob/HEAD/lua-zerosmtp.lua) |
| Perl | [perl-zerosmtp.pl](https://github.com/msgwing/ZeroSMTP/blob/HEAD/perl-zerosmtp.pl) |
| C (libcurl) | [c-zerosmtp.c](https://github.com/msgwing/ZeroSMTP/blob/HEAD/c-zerosmtp.c) |
| Dart | [dart-zerosmtp.dart](https://github.com/msgwing/ZeroSMTP/blob/HEAD/dart-zerosmtp.dart) |
| Zig (libcurl) | [zig-zerosmtp.zig](https://github.com/msgwing/ZeroSMTP/blob/HEAD/zig-zerosmtp.zig) |
| Swift | [swift-zerosmtp.swift](https://github.com/msgwing/ZeroSMTP/blob/HEAD/swift-zerosmtp.swift) |
| PowerShell | [pwsh-zerosmtp.ps1](https://github.com/msgwing/ZeroSMTP/blob/HEAD/pwsh-zerosmtp.ps1) |

Each example reads credentials from `ZEROSMTP_*` environment variables
(`ZEROSMTP_USERNAME`, `ZEROSMTP_PASSWORD`, `ZEROSMTP_FROM`, `ZEROSMTP_TO`,
`ZEROSMTP_SUBJECT`) — never hardcode real credentials into a script.

### Deployment recipes

Not every migration is a code change. Two of the places SMTP settings
actually live:

| Recipe | File | What it does |
| --- | --- | --- |
| Ansible | [ansible-zerosmtp.yml](https://github.com/msgwing/ZeroSMTP/blob/HEAD/ansible-zerosmtp.yml) | Points a fleet's system mailer (cron, unattended-upgrades, `systemd OnFailure=`) at the relay via msmtp. Idempotent; credentials come from `-e` or ansible-vault, never from the file. |
| Docker Compose | [docker-compose-zerosmtp.yml](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docker-compose-zerosmtp.yml) | Runs one send from a container, reading `.env`. Useful for testing the credentials from inside the network the real app runs in. |

### Installing dependencies

Every example that needs a third-party library has a matching manifest at
the repo root, so you can install with each ecosystem's normal command
instead of hunting down library names/versions yourself:

| Language(s) | Install with |
| --- | --- |
| Node.js / TypeScript | `npm install` |
| PHP | `composer install` |
| Rust | `cargo build` (fetches deps automatically) |
| C# | `dotnet build cs-zerosmtp.csproj` |
| Java | `mvn compile` |
| Kotlin | `gradle build` |
| Swift | `swift build` |
| Zig | `zig build-exe zig-zerosmtp.zig -lc -lcurl` (needs libcurl headers) |
| Python, Ruby, Go, Bash, PowerShell | none — standard library only |

Easy Configuration:
- Login: randomly generated address @msgwing.com
- SMTP Server: mx.msgwing.com
- Port: 587 (STARTTLS) or 465 (SSL/TLS)
- Encryption: SSL/TLS - required

We respect your privacy - your data is not processed for any marketing or commercial purposes.

## Security & Deliverability

**What we do:**
- SPF, DKIM and DMARC (`p=reject`) are aligned on `msgwing.com` — check it
  yourself: `dig txt msgwing.com`, `dig txt _dmarc.msgwing.com`.
- Accounts that abuse the relay are actively removed (see
  [FAQ](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/FAQ.md#why-is-zerosmtp-free-whats-the-catch)).
- Sending is rate-limited per account to keep the shared domain's reputation
  good for everyone (see
  [sending limits](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/TROUBLESHOOTING.md#sending-limits-rate-limiting)).

**What we don't promise:** a shared domain means shared risk. No single
account controls the reputation of the whole pool, unlike your own domain,
where you're the only one who can damage it. If mail must come from your own
domain, ZeroSMTP is the wrong tool — see [Alternatives](https://github.com/msgwing/ZeroSMTP/blob/HEAD/docs/ALTERNATIVES.md).

**What we don't disclose, and why:** see
[SECURITY.md](https://github.com/msgwing/ZeroSMTP/blob/HEAD/SECURITY.md#infrastructure-and-third-party-integration-inquiries).

### Test it yourself

Don't take our word for it — check with [mail-tester.com](https://mail-tester.com/):

1. Create a free SMTP account at [msgwing.com](https://msgwing.com)
2. Use our PowerShell test script: [SendEmailTest_mail-tester.com.ps1](https://github.com/msgwing/ZeroSMTP/blob/HEAD/SendEmailTest_mail-tester.com.ps1)
3. Generate a random email at mail-tester.com and send a test message from your @msgwing.com address
4. Read the score and the detailed analysis

---

If you have any questions, feel free to contact us: abuse@msgwing.com

Registration is available at: https://msgwing.com

## Star History

[![GitHub stars](https://img.shields.io/github/stars/msgwing/ZeroSMTP?style=social)](https://star-history.com/#msgwing/ZeroSMTP&Date)

