{"id":19199374,"url":"https://github.com/supme/smtprelay","last_synced_at":"2026-06-11T21:32:01.451Z","repository":{"id":57613315,"uuid":"112740871","full_name":"Supme/smtpRelay","owner":"Supme","description":"small SMTP relay","archived":false,"fork":false,"pushed_at":"2019-02-06T07:47:29.000Z","size":23705,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T12:11:33.939Z","etag":null,"topics":["email","go","golang","relay","smtp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"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/Supme.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-12-01T13:05:35.000Z","updated_at":"2018-04-02T15:15:01.000Z","dependencies_parsed_at":"2022-08-30T00:01:32.622Z","dependency_job_id":null,"html_url":"https://github.com/Supme/smtpRelay","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Supme%2FsmtpRelay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Supme%2FsmtpRelay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Supme%2FsmtpRelay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Supme%2FsmtpRelay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Supme","download_url":"https://codeload.github.com/Supme/smtpRelay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240272395,"owners_count":19775025,"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":["email","go","golang","relay","smtp"],"created_at":"2024-11-09T12:26:53.335Z","updated_at":"2026-06-11T21:32:01.422Z","avatar_url":"https://github.com/Supme.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smtpRelay\nsmall SMTP relay\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/Supme/smtpRelay)](https://goreportcard.com/report/github.com/Supme/smtpRelay)\n\n[Download binary](https://github.com/Supme/smtpRelay/releases)\n\nexample config.ini\n``` $ini\n# Db for queue emails\nQueueDbDialect = \"mssql\"\nQueueDbConnect = \"server=127.0.0.1;user id=SmtpRelayLog;password=pa55w0rd;database=SmtpRelayLog;connection timeout=300\"\n\n# Db for log\nStatusDbDialect = \"mssql\"\nStatusDbConnect = \"server=127.0.0.1;user id=SmtpRelayLog;password=pa55w0rd;database=SmtpRelayLog;connection timeout=300\"\n\nHostname = \"localhost\" # hostname for HELO, if blank, then get mashine hostname\n\nAllowIP = [\"127.0.0.1\", \"192.168.1.20\"] # allow sender IP\n\nAllowDomains = [\"dmbasis.ru\"] # allow send email domain\n\nSMTPListenAddr = \":2500\" # SMTP server listen on (example: \"127.0.0.1:2500\")\n\nSendStream = 10\nResendStream = 2\n\nMaxRepeatSend = 2\nRepeatIntervalMinutes = 5\n\nDebug = false\n```\n\nexecute with default config file ./config ini\n```\n./smtpRelay\n```\n\nor change config file path\n```\n./smtpRelay -c /path/to/youconfig.ini\n```\n\nFor run as service in Windows use [NSSM](http://nssm.cc/download)\n\n\n\nin log database create table \"statuses\" structure\n\n| id | queued_at | sending_at | from | rcpt | message_type | message_id | status |\n|----|:-----------:|:------------:|:------:|:------:|:------------:|:------------:|--------:|\n\nmessage_type is string from \"X-Postmaster-Msgtype\" header\n\nmessage_id is string from \"Message-Id\" header\n\nin queue database create table \"queues\" structure\n\n| id | created_at | updated_at | message_type | message_id | from | from_hostname | rcpt   | rcpt_hostname | data | repeat | later_status|\n|----|:-----------:|:------------:|:------:|:------:|:------:|:------------:|:------------:|:------------:|:------------:|:------------:|--------:|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupme%2Fsmtprelay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupme%2Fsmtprelay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupme%2Fsmtprelay/lists"}