{"id":31628096,"url":"https://github.com/jirutka/opensmtpd-filter-rewrite-from","last_synced_at":"2026-02-17T04:32:41.108Z","repository":{"id":44886825,"uuid":"203029728","full_name":"jirutka/opensmtpd-filter-rewrite-from","owner":"jirutka","description":"OpenSMTPD 6.6+ filter for rewriting From address","archived":false,"fork":false,"pushed_at":"2022-01-20T12:00:03.000Z","size":5,"stargazers_count":22,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-06T20:32:13.119Z","etag":null,"topics":["awk","filter","opensmtpd","opensmtpd-filter"],"latest_commit_sha":null,"homepage":null,"language":"Awk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jirutka.png","metadata":{"files":{"readme":"README.adoc","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":"2019-08-18T16:27:22.000Z","updated_at":"2025-06-25T18:54:50.000Z","dependencies_parsed_at":"2022-09-05T05:11:27.884Z","dependency_job_id":null,"html_url":"https://github.com/jirutka/opensmtpd-filter-rewrite-from","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jirutka/opensmtpd-filter-rewrite-from","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fopensmtpd-filter-rewrite-from","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fopensmtpd-filter-rewrite-from/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fopensmtpd-filter-rewrite-from/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fopensmtpd-filter-rewrite-from/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jirutka","download_url":"https://codeload.github.com/jirutka/opensmtpd-filter-rewrite-from/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fopensmtpd-filter-rewrite-from/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29533702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T03:01:11.216Z","status":"ssl_error","status_checked_at":"2026-02-17T03:00:31.803Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["awk","filter","opensmtpd","opensmtpd-filter"],"created_at":"2025-10-06T20:17:57.851Z","updated_at":"2026-02-17T04:32:41.093Z","avatar_url":"https://github.com/jirutka.png","language":"Awk","funding_links":[],"categories":[],"sub_categories":[],"readme":"= OpenSMTPD filter-rewrite-from\n:script-name: filter-rewrite-from\n\nThis is a _very_ simple OpenSMTPD filter for rewriting email address in both `MAIL FROM` command and `From` header in all footnote:[This implementation doesn’t support any conditions or different rewrite addresses based on the source. It’s really trivial, just for my current needs.] messages with the specified email address.\nIt’s useful when you want to ensure that all the relayed messages will be “send from” some _no-reply_ email address.\n\nThis filter is implemented in ~60 lines (LoC) of `awk`.\n\n\n== Requirements\n\n* http://pubs.opengroup.org/onlinepubs/009695399/utilities/awk.html[POSIX awk] (e.g. from Busybox, GNU, BSD, …)\n* https://www.opensmtpd.org/[OpenSMTPD] 6.6.0 or higher\n\n\n== Installation\n\nJust copy link:{script-name}[{script-name}] to some directory, e.g. `/usr/local/share/opensmtpd`.\nIf you have `awk` installed in a different directory than `/usr/bin`, adjust the shebang.\n\n\n== Configuration\n\nThe filter itself requires no configuration, only the desired From email address as the first argument.\n\nIt must be declared in smtpd.conf and attached to a listener:\n\n[source, subs=\"+attributes\"]\n----\nfilter \"rewrite-from\" proc-exec \"/usr/local/share/opensmtpd/{script-name} no-reply@example.org\"\n\nlisten on socket filter \"rewrite-from\"\n----\n\n\n== See Also\n\n* https://poolp.org/posts/2018-11-03/opensmtpd-released-and-upcoming-filters-preview/[OpenSMTPD released and upcoming filters preview] by https://github.com/poolpOrg[Gilles Chehade]\n* https://poolp.org/posts/2019-07-27/july-2019-report-tons-of-smtpd-work-mostly/[July 2019 report: tons of smtpd work mostly] by https://github.com/poolpOrg[Gilles Chehade]\n\n\n== License\n\nThis project is licensed under http://opensource.org/licenses/ISC/[ISC License].\nFor the full text of the license, see the link:LICENSE[LICENSE] file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjirutka%2Fopensmtpd-filter-rewrite-from","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjirutka%2Fopensmtpd-filter-rewrite-from","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjirutka%2Fopensmtpd-filter-rewrite-from/lists"}