{"id":20263224,"url":"https://github.com/hanzoai/smtp-relay","last_synced_at":"2025-07-04T08:37:58.981Z","repository":{"id":92732900,"uuid":"113248389","full_name":"hanzoai/smtp-relay","owner":"hanzoai","description":"📧 HTTP API to relay email through SMTP servers","archived":false,"fork":false,"pushed_at":"2018-05-08T09:21:45.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-02T16:58:42.449Z","etag":null,"topics":["golang","smtp","smtp-protocol","smtp-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanzoai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-06T00:27:21.000Z","updated_at":"2020-08-16T20:59:54.000Z","dependencies_parsed_at":"2023-03-13T17:26:49.939Z","dependency_job_id":null,"html_url":"https://github.com/hanzoai/smtp-relay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hanzoai/smtp-relay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanzoai%2Fsmtp-relay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanzoai%2Fsmtp-relay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanzoai%2Fsmtp-relay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanzoai%2Fsmtp-relay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanzoai","download_url":"https://codeload.github.com/hanzoai/smtp-relay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanzoai%2Fsmtp-relay/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263478536,"owners_count":23473015,"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":["golang","smtp","smtp-protocol","smtp-server"],"created_at":"2024-11-14T11:34:06.859Z","updated_at":"2025-07-04T08:37:58.942Z","avatar_url":"https://github.com/hanzoai.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smtp-relay\nSimple HTTP API to relay messages to SMTP servers.\n\n\n## Installation\nInstall deps:\n```\n$ make deps\n```\n\nInstall the following command-line tools:\n\n- gcloud is used to create and delete Kubernetes Engine clusters. gcloud is included in the Google Cloud SDK.\n- kubectl is used to manage Kubernetes, the cluster orchestration system used by Kubernetes Engine. You can install kubectl using gcloud:\n\n```\n$ gcloud components install kubectl\n```\n\nSet some defaults:\n```\ngcloud config set project crowdstart-us\ngcloud config set compute/zone us-central1-b\n```\n\n## Usage\n```\n$ make run\n```\n\nYou can test the server is running by sending an email payload to it:\n\n```\n$ curl -i --user user:pass -H \"Content-Type: application/json\" -H \"Accept: application/json\" -X POST -d '{\"username\":\"foo\", \"password\":\"asdf\", \"host\":\"\", \"port\":\"\",\"mailfrom\":\"\",\"mailto\":[],\"msg\":\"\"}' https://smtp-relay.hanzo.ai\n```\n\n## Deployment\n\nCreate cluster named `smtp-relay` with 2 nodes:\n```\n$ gcloud container clusters create smtp-relay --num-nodes=2\nCreating cluster smtp-relay...done.                                                                    Created [https://container.googleapis.com/v1/projects/crowdstart-us/zones/us-central1-b/clusters/smtp-relay].\nkubeconfig entry generated for smtp-relay.\nNAME        ZONE           MASTER_VERSION  MASTER_IP       MACHINE_TYPE   NODE_VERSION  NUM_NODES  STATUS\nsmtp-relay  us-central1-b  1.7.8-gke.0     35.202.117.238  n1-standard-1  1.7.8-gke.0   2          RUNNING\n```\n\nYou can list clusters for in your project or get the details for a single cluster using the following commands:\n\n```\n$ gcloud container clusters list\n$ gcloud container clusters describe smtp-relay\n```\n\nTo create a deployment:\n\n```\n$ kubectl create -f deployment.yaml\n```\n\nVerify the three replicas are running by querying the list of the labels that identify the web frontend:\n\n```\nkubectl get pods -l app=smtp-relay\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanzoai%2Fsmtp-relay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanzoai%2Fsmtp-relay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanzoai%2Fsmtp-relay/lists"}