{"id":37099299,"url":"https://github.com/mailsac/smtpd-proxyhandler","last_synced_at":"2026-01-14T12:04:01.862Z","repository":{"id":39610245,"uuid":"281713827","full_name":"mailsac/smtpd-proxyhandler","owner":"mailsac","description":"HAProxy SMTP proxy-protocol handler for extending golang smtpd library","archived":false,"fork":false,"pushed_at":"2022-06-24T16:05:01.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-19T15:17:26.846Z","etag":null,"topics":["smtp-proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"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/mailsac.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":"2020-07-22T15:25:20.000Z","updated_at":"2022-06-24T15:59:17.000Z","dependencies_parsed_at":"2022-09-26T18:21:28.054Z","dependency_job_id":null,"html_url":"https://github.com/mailsac/smtpd-proxyhandler","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mailsac/smtpd-proxyhandler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailsac%2Fsmtpd-proxyhandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailsac%2Fsmtpd-proxyhandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailsac%2Fsmtpd-proxyhandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailsac%2Fsmtpd-proxyhandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mailsac","download_url":"https://codeload.github.com/mailsac/smtpd-proxyhandler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailsac%2Fsmtpd-proxyhandler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["smtp-proxy"],"created_at":"2026-01-14T12:04:01.280Z","updated_at":"2026-01-14T12:04:01.855Z","avatar_url":"https://github.com/mailsac.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smtpd-proxyhandler\nHAProxy SMTP proxy-protocol handler for extending the golang [mailsac mailproto/smtpd fork](https://github.com/mailsac/smtpd) library.\n\nhttps://www.haproxy.org/download/1.8/doc/proxy-protocol.txt\n\nv1 protocol is supported.\nv2 protocol is not supported (TBD).\n\nThis package allows an upstream proxy to modify the end user IP address on an SMTP connection.\n\n## Usage\n\n```go\nimport (\n    proxyhandler \"github.com/mailsac/smtpd-proxyhandler\"\n    \"github.com/mailsac/smtpd\"\n)\n\nserver := smtpd.NewServer(messageHandler)\n\n// ... set up server, then add upstream proxy IP addresses\nallowProxyIPs := []string{\"10.0.0.1\", \"10.0.0.2\"}\nhandler := proxyhandler.ProxyHandlerV1{ TrustIPs: allowProxyIPs }\nserver.Extend(\"PROXY\", \u0026handler)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailsac%2Fsmtpd-proxyhandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmailsac%2Fsmtpd-proxyhandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailsac%2Fsmtpd-proxyhandler/lists"}