{"id":13620486,"url":"https://github.com/trumail/trumail","last_synced_at":"2025-09-29T00:32:42.680Z","repository":{"id":41086739,"uuid":"106785666","full_name":"trumail/trumail","owner":"trumail","description":":email: :white_check_mark: A Fast and Free Email Verification API written in Go","archived":true,"fork":false,"pushed_at":"2018-06-15T00:20:41.000Z","size":236,"stargazers_count":1049,"open_issues_count":0,"forks_count":232,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-01-18T22:38:55.624Z","etag":null,"topics":["api","docker","email","golang","validation","verification"],"latest_commit_sha":null,"homepage":"https://trumail.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trumail.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-13T06:18:55.000Z","updated_at":"2025-01-17T23:35:07.000Z","dependencies_parsed_at":"2022-08-03T11:45:51.256Z","dependency_job_id":null,"html_url":"https://github.com/trumail/trumail","commit_stats":null,"previous_names":["sdwolfe32/trumail"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trumail/trumail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumail%2Ftrumail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumail%2Ftrumail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumail%2Ftrumail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumail%2Ftrumail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trumail","download_url":"https://codeload.github.com/trumail/trumail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumail%2Ftrumail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277450939,"owners_count":25819971,"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","status":"online","status_checked_at":"2025-09-28T02:00:08.834Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","docker","email","golang","validation","verification"],"created_at":"2024-08-01T21:00:56.344Z","updated_at":"2025-09-29T00:32:42.407Z","avatar_url":"https://github.com/trumail.png","language":"Go","readme":"# Trumail\n\n[![CircleCI](https://circleci.com/gh/sdwolfe32/trumail.svg?style=svg)](https://circleci.com/gh/sdwolfe32/trumail)\n[![GoDoc](https://godoc.org/github.com/sdwolfe32/trumail/verifier?status.svg)](https://godoc.org/github.com/sdwolfe32/trumail/verifier)\n\nTrumail is a free and open source email validation/verification system. It is available in three forms, the Golang client library `verifier` for use in your own Go projects, a public API endpoint (more info: https://trumail.io), and a public Docker image on DockerHub (see: https://hub.docker.com/r/sdwolfe32/trumail/). \n\nNOTE: While we do offer a managed, enterprise level service to paying customers, it is highly recommended that you host the service yourself either using a Docker image or by forking and serving this project on your own instance. Please keep in mind, self-hosting Trumail requires bidirectional communication on port 25 which most residential ISPs restrict - AWS and Digitalocean both permit this sort of communication.\n\n## Using the API (public or self-hosted)\n\nUsing the API is very simple. All that's needed to validate an address is to send a `GET` request using the below URL with one of our three supported formats (json/jsonp(with \"callback\" (all lowercase) queryparam)/xml).\n```\nhttps://api.trumail.io/v2/lookups/{format}?email={email}\u0026token={token}\n```\n\n## Using the library\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\ttrumail \"github.com/sdwolfe32/trumail/verifier\"\n)\n\nfunc main() {\n  v := trumail.NewVerifier(\"YOUR_HOSTNAME.COM\", \"YOUR_EMAIL@DOMAIN.COM\")\n  \n  // Validate a single address\n  log.Println(v.Verify(\"test@gmail.com\"))\n}\n```\n\n## Running with Go\n\n```\ngo get -d github.com/sdwolfe32/trumail/...\ngo install github.com/sdwolfe32/trumail\ntrumail\n```\n\n## Running with Docker\n\n```\ndocker run -p 8080:8080 -e SOURCE_ADDR=my.email@gmail.com sdwolfe32/trumail\n```\n\n## How it Works\n\nVerifying the deliverability of an email address isn't a very complicated process. In fact, the process Trumail takes to verify an address is really only half that of sending a standard email transmission and is outlined below...\n```\nFirst a TCP connection is formed with the MX server on port 25.\n\nHELO my-domain.com              // We identify ourselves as my-domain.com (set via environment variable)\nMAIL FROM: me@my-domain.com     // Set the FROM address being our own\nRCPT TO: test-email@example.com // Set the recipient and receive a (200, 500, etc..) from the server\nQUIT                            // Cancel the transaction, we have all the info we need\n```\nAs you can see we first form a tcp connection with the mail server on port 25. We then identify ourselves as example.com and set a reply-to email of admin@example.com (both these are configured via the SOURCE_ADDR environment variable). The last, and obviously most important step in this process is the RCPT command. This is where, based on the response from the mail server, we are able to conclude the deliverability of a given email address. A 200 implies a valid inbox and anything else implies either an error with our connection to the mail server, or a problem with the address requested.\n\nThe BSD 3-clause License\n========================\n\nCopyright (c) 2018, Steven Wolfe. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n - Redistributions of source code must retain the above copyright notice,\n   this list of conditions and the following disclaimer.\n\n - Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n - Neither the name of Trumail nor the names of its contributors may\n   be used to endorse or promote products derived from this software without\n   specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","funding_links":[],"categories":["Go","golang"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrumail%2Ftrumail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrumail%2Ftrumail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrumail%2Ftrumail/lists"}