{"id":13412694,"url":"https://github.com/axllent/mailpit","last_synced_at":"2026-01-06T04:12:43.011Z","repository":{"id":50475410,"uuid":"519188364","full_name":"axllent/mailpit","owner":"axllent","description":"An email and SMTP testing tool with API for developers","archived":false,"fork":false,"pushed_at":"2025-05-13T07:28:57.000Z","size":2512,"stargazers_count":7055,"open_issues_count":3,"forks_count":184,"subscribers_count":21,"default_branch":"develop","last_synced_at":"2025-05-13T08:37:18.452Z","etag":null,"topics":["email-testing","go","golang","mailpit","pop3-server","smtp-relay","smtp-server","smtp-testing"],"latest_commit_sha":null,"homepage":"https://mailpit.axllent.org","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axllent.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["axllent"]}},"created_at":"2022-07-29T11:22:27.000Z","updated_at":"2025-05-13T07:29:00.000Z","dependencies_parsed_at":"2023-09-23T03:50:00.744Z","dependency_job_id":"815d896c-cb34-487d-a989-088e30fc9c2b","html_url":"https://github.com/axllent/mailpit","commit_stats":{"total_commits":786,"total_committers":21,"mean_commits":37.42857142857143,"dds":0.04834605597964381,"last_synced_commit":"21eef69a60877c17f2d40f6260c7f7844aa24f22"},"previous_names":[],"tags_count":157,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axllent%2Fmailpit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axllent%2Fmailpit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axllent%2Fmailpit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axllent%2Fmailpit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axllent","download_url":"https://codeload.github.com/axllent/mailpit/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253969260,"owners_count":21992263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email-testing","go","golang","mailpit","pop3-server","smtp-relay","smtp-server","smtp-testing"],"created_at":"2024-07-30T20:01:27.946Z","updated_at":"2026-01-06T04:12:43.005Z","avatar_url":"https://github.com/axllent.png","language":"Go","readme":"\u003ch1 align=\"center\"\u003e\n  Mailpit - email testing for developers\n\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://github.com/axllent/mailpit/actions/workflows/tests.yml\"\u003e\u003cimg src=\"https://github.com/axllent/mailpit/actions/workflows/tests.yml/badge.svg\" alt=\"CI Tests status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/axllent/mailpit/actions/workflows/release-build.yml\"\u003e\u003cimg src=\"https://github.com/axllent/mailpit/actions/workflows/release-build.yml/badge.svg\" alt=\"CI build status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/axllent/mailpit/actions/workflows/build-docker.yml\"\u003e\u003cimg src=\"https://github.com/axllent/mailpit/actions/workflows/build-docker.yml/badge.svg\" alt=\"CI Docker build status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/axllent/mailpit/actions/workflows/codeql-analysis.yml\"\u003e\u003cimg src=\"https://github.com/axllent/mailpit/actions/workflows/codeql-analysis.yml/badge.svg\" alt=\"Code quality\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://goreportcard.com/report/github.com/axllent/mailpit\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/axllent/mailpit\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://github.com/axllent/mailpit/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/axllent/mailpit.svg\" alt=\"Latest release\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://hub.docker.com/r/axllent/mailpit\"\u003e\u003cimg src=\"https://img.shields.io/docker/pulls/axllent/mailpit.svg\" alt=\"Docker pulls\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://mailpit.axllent.org\"\u003eWebsite\u003c/a\u003e  •\n  \u003ca href=\"https://mailpit.axllent.org/docs/\"\u003eDocumentation\u003c/a\u003e  •\n  \u003ca href=\"https://mailpit.axllent.org/docs/api-v1/\"\u003eAPI\u003c/a\u003e\n\u003c/p\u003e\n\n\u003chr\u003e\n\n**Mailpit** is a small, fast, low memory, zero-dependency, multi-platform email testing tool \u0026 API for developers.\n\nIt acts as an SMTP server, provides a modern web interface to view \u0026 test captured emails, and includes an API for automated integration testing.\n\nMailpit was originally **inspired** by MailHog which is [no longer maintained](https://github.com/mailhog/MailHog/issues/442#issuecomment-1493415258) and hasn't seen active development or security updates for a few years now.\n\n![Mailpit](https://raw.githubusercontent.com/axllent/mailpit/develop/server/ui-src/screenshot.png)\n\n\n## Features\n\n- Runs entirely from a single [static binary](https://mailpit.axllent.org/docs/install/) or multi-architecture [Docker images](https://mailpit.axllent.org/docs/install/docker/)\n- Modern web UI with advanced [mail search](https://mailpit.axllent.org/docs/usage/search-filters/) to view emails (formatted HTML, highlighted HTML source, text, headers, raw source, and MIME attachments\nincluding image thumbnails), including optional [HTTPS](https://mailpit.axllent.org/docs/configuration/http/) \u0026 [authentication](https://mailpit.axllent.org/docs/configuration/http/)\n- [SMTP server](https://mailpit.axllent.org/docs/configuration/smtp/) with optional STARTTLS or SSL/TLS, authentication (including an \"accept any\" mode)\n- A [REST API](https://mailpit.axllent.org/docs/api-v1/) for integration testing\n- Real-time web UI updates using web sockets for new mail \u0026 optional [browser notifications](https://mailpit.axllent.org/docs/usage/notifications/) when new mail is received\n- Optional [POP3 server](https://mailpit.axllent.org/docs/configuration/pop3/) to download captured message directly into your email client\n- [HTML check](https://mailpit.axllent.org/docs/usage/html-check/) to test \u0026 score mail client compatibility with HTML emails\n- [Link check](https://mailpit.axllent.org/docs/usage/link-check/) to test message links (HTML \u0026 text) \u0026 linked images\n- [Spam check](https://mailpit.axllent.org/docs/usage/spamassassin/) to test message \"spamminess\" using a running SpamAssassin server\n- [Create screenshots](https://mailpit.axllent.org/docs/usage/html-screenshots/) of HTML messages via web UI\n- Mobile and tablet HTML preview toggle in desktop mode\n- [Message tagging](https://mailpit.axllent.org/docs/usage/tagging/) including manual tagging or automated tagging using filtering and \"plus addressing\"\n- [SMTP relaying](https://mailpit.axllent.org/docs/configuration/smtp-relay/) (message release) - relay messages via a different SMTP server including an optional allowlist of accepted recipients\n- [SMTP forwarding](https://mailpit.axllent.org/docs/configuration/smtp-forward/) - automatically forward messages via a different SMTP server to predefined email addresses\n- Fast message [storing \u0026 processing](https://mailpit.axllent.org/docs/configuration/email-storage/) - ingesting 100-200 emails per second over SMTP depending on CPU, network speed \u0026 email size,\neasily handling tens of thousands of emails, with automatic email pruning (by default keeping the most recent 500 emails)\n- [Chaos](https://mailpit.axllent.org/docs/integration/chaos/) feature to enable configurable SMTP errors to test application resilience\n- `List-Unsubscribe` syntax validation\n- Optional [webhook](https://mailpit.axllent.org/docs/integration/webhook/) for received messages\n\n\n## Installation\n\nThe Mailpit web UI listens by default on `http://0.0.0.0:8025` and the SMTP port on `0.0.0.0:1025`.\n\nMailpit runs as a single binary and can be installed in different ways:\n\n\n### Install via package managers\n\n- **Mac**: `brew install mailpit` (to run automatically in the background: `brew services start mailpit`)\n- **Arch Linux**: available in the AUR as `mailpit`\n- **FreeBSD**: `pkg install mailpit`\n\n\n### Install via script (Linux \u0026 Mac)\n\nLinux \u0026 Mac users can install it directly to `/usr/local/bin/mailpit` with:\n\n```shell\nsudo sh \u003c \u003c(curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh)\n```\n\nYou can also change the install path to something else by setting the `INSTALL_PATH` environment, for example:\n\n```shell\nINSTALL_PATH=/usr/bin sudo sh \u003c \u003c(curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh)\n```\n\n\n### Download static binary (Windows, Linux and Mac)\n\nStatic binaries can always be found on the [releases](https://github.com/axllent/mailpit/releases/latest). The `mailpit` binary can be extracted and copied to your `$PATH`, or simply run as `./mailpit`.\n\n\n### Docker\n\nSee [Docker instructions](https://mailpit.axllent.org/docs/install/docker/) for 386, amd64 \u0026 arm64 images.\n\n\n### Compile from source\n\nTo build Mailpit from source, see [Building from source](https://mailpit.axllent.org/docs/install/source/).\n\n\n## Usage\n\nRun `mailpit -h` to see options. More information can be seen in [the docs](https://mailpit.axllent.org/docs/configuration/runtime-options/).\n\nIf installed using homebrew, you may run `brew services start mailpit` to always run mailpit automatically.\n\n\n### Testing Mailpit\n\nPlease refer to [the documentation](https://mailpit.axllent.org/docs/install/testing/) on how to easily test email delivery to Mailpit.\n\n\n### Configuring sendmail\n\nMailpit's SMTP server (default on port 1025), so you will likely need to configure your sending application to deliver mail via that port. \nA common MTA (Mail Transfer Agent) that delivers system emails to an SMTP server is `sendmail`, used by many applications, including PHP. \nMailpit can also act as substitute for sendmail. For instructions on how to set this up, please refer to the [sendmail documentation](https://mailpit.axllent.org/docs/install/sendmail/).\n\n---\n\n\u003cp align=\"center\"\u003e\n  For team features, multiple inboxes, and a hosted setup, try\n  \u003ca href=\"https://mailtrap.io/?ref=mailpit\"\u003eMailtrap\u003c/a\u003e, our friendly companion.\n\u003c/p\u003e\n","funding_links":["https://github.com/sponsors/axllent"],"categories":["Go","Mailing","Email","Basic Commands","Uncategorized","Sending","Testing","电子邮件","Repositories","Terminal","Development 💻"],"sub_categories":["Search and Analytic Databases","Email Server","Uncategorized","SMTP Testing","Email","检索及分析资料库","Testing Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxllent%2Fmailpit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxllent%2Fmailpit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxllent%2Fmailpit/lists"}