{"id":13588202,"url":"https://github.com/namshi/docker-smtp","last_synced_at":"2025-04-04T08:09:15.361Z","repository":{"id":41583595,"uuid":"42860712","full_name":"namshi/docker-smtp","owner":"namshi","description":"SMTP docker container","archived":false,"fork":false,"pushed_at":"2022-10-05T21:20:34.000Z","size":39,"stargazers_count":553,"open_issues_count":33,"forks_count":196,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-03-28T07:08:22.086Z","etag":null,"topics":["amazon-ses","docker","docker-smtp","gmail-smtp","smtp","smtp-server"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/namshi.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":"2015-09-21T10:54:18.000Z","updated_at":"2025-03-11T04:12:11.000Z","dependencies_parsed_at":"2022-09-17T17:12:21.956Z","dependency_job_id":null,"html_url":"https://github.com/namshi/docker-smtp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namshi%2Fdocker-smtp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namshi%2Fdocker-smtp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namshi%2Fdocker-smtp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namshi%2Fdocker-smtp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/namshi","download_url":"https://codeload.github.com/namshi/docker-smtp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142070,"owners_count":20890652,"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":["amazon-ses","docker","docker-smtp","gmail-smtp","smtp","smtp-server"],"created_at":"2024-08-01T15:06:34.114Z","updated_at":"2025-04-04T08:09:15.324Z","avatar_url":"https://github.com/namshi.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Docker-SMTP\n[![](https://images.microbadger.com/badges/image/namshi/smtp.svg)](https://microbadger.com/images/namshi/smtp)\n\nThis is a SMTP docker container for sending emails. You can also relay emails to gmail and amazon SES.\n\n## Environment variables\n\nThe container accepts `RELAY_NETWORKS` environment variable which *MUST* start with `:` e.g `:192.168.0.0/24` or `:192.168.0.0/24:10.0.0.0/16`.\n\nThe container accepts `KEY_PATH` and `CERTIFICATE_PATH` environment variable that if provided will enable TLS support. The paths must be to the key and certificate file on a exposed volume. The keys will be copied into the container location.\n\nThe container accepts `MAILNAME` environment variable which will set the outgoing mail hostname.\n\nThe container also accepts the `PORT` environment variable, to set the port the mail daemon will listen on inside the container. The default port is `25`.\n\nTo configure the binding address, you can use `BIND_IP` and `BIND_IP6` environment variables. The default `BIND_IP` is `0.0.0.0`. The default `BIND_IP6` is `::0`.\n\nTo disable IPV6 you can set the `DISABLE_IPV6` environment variable to any value.\n\nThe container accepts `OTHER_HOSTNAMES` environment variable which will set the list of domains for which this machine should consider itself the final destination.\n\n## Below are scenarios for using this container\n\n### As SMTP Server\nYou don't need to specify any environment variable to get this up.\n\n### As a Secondary SMTP Server\nSpecify 'RELAY_DOMAINS' to setup what domains should be accepted to forward to lower distance MX server.\n\nFormat is `\u003cdomain1\u003e : \u003cdomain2\u003e : \u003cdomain3\u003e etc`\n\n### As Gmail Relay\nYou need to set the `GMAIL_USER` and `GMAIL_PASSWORD` to be able to use it.\n\n### As Amazon SES Relay\nYou need to set the `SES_USER` and `SES_PASSWORD` to be able to use it.\u003cbr/\u003e\nYou can override the SES region by setting `SES_REGION` as well.\nIf you use Google Compute Engine you also should set `SES_PORT` to 2587.\n\n### As generic SMTP Relay\nYou can also use any generic SMTP server with authentication as smarthost.\u003c/br\u003e\nYou need to set `SMARTHOST_ADDRESS`, `SMARTHOST_PORT` (connection parameters), `SMARTHOST_USER`, `SMARTHOST_PASSWORD` (authentication parameters), and `SMARTHOST_ALIASES`: this is a list of aliases to puth auth data for authentication, semicolon separated.\u003c/br\u003e\n\n```\nExample:\n\n * SMARTHOST_ADDRESS=mail.mysmtp.com\n * SMARTHOST_PORT=587\n * SMARTHOST_USER=myuser\n * SMARTHOST_PASSWORD=secret\n * SMARTHOST_ALIASES=*.mysmtp.com\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamshi%2Fdocker-smtp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamshi%2Fdocker-smtp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamshi%2Fdocker-smtp/lists"}