{"id":13493426,"url":"https://github.com/alash3al/smtp2http","last_synced_at":"2025-04-04T19:10:11.642Z","repository":{"id":41173367,"uuid":"157251927","full_name":"alash3al/smtp2http","owner":"alash3al","description":"A tiny software that receive a smtp request (email) and send it to the specified webhook as a http post request","archived":false,"fork":false,"pushed_at":"2023-11-16T07:14:12.000Z","size":1415,"stargazers_count":526,"open_issues_count":3,"forks_count":83,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-28T18:11:21.708Z","etag":null,"topics":["go","golang","mail","mailbox","smtp-server","smtp2http","webhook"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alash3al.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-12T17:38:51.000Z","updated_at":"2025-03-11T18:16:37.000Z","dependencies_parsed_at":"2024-06-20T01:24:38.386Z","dependency_job_id":"e8f93e82-6c22-407b-8c73-d99f1ded34d4","html_url":"https://github.com/alash3al/smtp2http","commit_stats":null,"previous_names":["uflare/smtp2http"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alash3al%2Fsmtp2http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alash3al%2Fsmtp2http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alash3al%2Fsmtp2http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alash3al%2Fsmtp2http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alash3al","download_url":"https://codeload.github.com/alash3al/smtp2http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234921,"owners_count":20905854,"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":["go","golang","mail","mailbox","smtp-server","smtp2http","webhook"],"created_at":"2024-07-31T19:01:15.107Z","updated_at":"2025-04-04T19:10:11.625Z","avatar_url":"https://github.com/alash3al.png","language":"Go","readme":"SMTP2HTTP (email-to-web)\n========================\nsmtp2http is a simple smtp server that resends the incoming email to the configured web endpoint (webhook) as a basic http post request.\n\nDev \n===\n- `go mod vendor`\n- `go build`\n\nDev with Docker\n==============\nLocally :\n- `go mod vendor`\n- `docker build -f Dockerfile.dev -t smtp2http-dev .`\n- `docker run -p 25:25 smtp2http-dev --timeout.read=50 --timeout.write=50 --webhook=http://some.hook/api`\n\nOr build it as it comes from the repo :\n- `docker build -t smtp2http .`\n- `docker run -p 25:25 smtp2http --timeout.read=50 --timeout.write=50 --webhook=http://some.hook/api`\n\nThe `timeout` options are of course optional but make it easier to test in local with `telnet localhost 25`\nHere is a telnet example payload : \n```\nHELO zeus\n# smtp answer\n\nMAIL FROM:\u003cemail@from.com\u003e\n# smtp answer\n\nRCPT TO:\u003cyouremail@example.com\u003e\n# smtp answer\n\nDATA\nyour mail content\n.\n\n```\n\nDocker (production)\n=====\n**Docker images arn't available online for now**\n**See \"Dev with Docker\" above**\n- `docker run -p 25:25 smtp2http --webhook=http://some.hook/api`\n\nNative usage\n=====\n`smtp2http --listen=:25 --webhook=http://localhost:8080/api/smtp-hook`\n`smtp2http --help`\n\nContribution\n============\nOriginal repo from @alash3al\nThanks to @aranajuan\n\n\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falash3al%2Fsmtp2http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falash3al%2Fsmtp2http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falash3al%2Fsmtp2http/lists"}