{"id":25969084,"url":"https://github.com/diraneyya/smptc-docker","last_synced_at":"2026-04-24T21:33:53.677Z","repository":{"id":253171089,"uuid":"842645884","full_name":"diraneyya/smptc-docker","owner":"diraneyya","description":"A command-line client for SMTP in a docker container, which can be used for testing SMTP servers in a docker-compose application.","archived":false,"fork":false,"pushed_at":"2024-08-14T22:19:57.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-16T17:32:15.322Z","etag":null,"topics":["cli-app","debugging-tool","docker-compose","smtp-client"],"latest_commit_sha":null,"homepage":"","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/diraneyya.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":"2024-08-14T19:15:56.000Z","updated_at":"2024-08-14T22:23:09.000Z","dependencies_parsed_at":"2024-08-15T00:13:53.426Z","dependency_job_id":null,"html_url":"https://github.com/diraneyya/smptc-docker","commit_stats":null,"previous_names":["diraneyya/smptc-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/diraneyya/smptc-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diraneyya%2Fsmptc-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diraneyya%2Fsmptc-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diraneyya%2Fsmptc-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diraneyya%2Fsmptc-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diraneyya","download_url":"https://codeload.github.com/diraneyya/smptc-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diraneyya%2Fsmptc-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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":["cli-app","debugging-tool","docker-compose","smtp-client"],"created_at":"2025-03-04T22:39:00.596Z","updated_at":"2026-04-24T21:33:53.662Z","avatar_url":"https://github.com/diraneyya.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SMTP client in a docker container\n\nUsing this docker image, you can test SMTP servers within a docker-compose application.\n\nThe SMTP CLI client is [smtpc](https://github.com/msztolcman/smtpc), and the image is available on Docker Hub at [orwa84/smtpc](https://hub.docker.com/r/orwa84/smtpc), which is built for both Intel (amd64) and Apple Silicone (arm64) architectures.\n\n## Setup\n\nIn order to use this repo to build a Docker image and publish it to Docker Hub (or any other registry), you must install the [`direnv` utility](https://direnv.net/).\n\nAfter installing `direnv` and hooking it into your shell, you must create your own `.envrc` file at the root of the repository (see the provided example [`.envrc.example`](./.envrc.example)), and then, run the following command at least once:\n```bash\ndirenv allow .\n```\n\nThis will read the contents of the file `.envrc` provided, and convert them into variables in the environment. From this point on, navigating to the repo directory on your computer will automatically lead to defining these ENV variables (called the \"build variables\") in the shell.\n\n## Build variables\n\n| **Variable** | **Default** | **Description** |\n|------|-----|--------------------|\n| **SMTPC_IMAGE** | none | The image path on Docker Hub, usually in the format `$USER/$IMAGE` (e.g. _orwa84/smtpc_) |\n| **PYTHON_TAG** | 3.12-slim | The tag to be used for the Python base image from the list of [available tags](https://hub.docker.com/_/python/tags) |\n\n## Build script\n\nTo build the image using the variables provided, you can use the build script as follows:\n```bash\n./build.sh\n```\n\nAlternatively, it is also possible not to use the variables (not requiring `direnv` at all) and to pass the desired path for the Docker Hub image as a parameter to the script. For example:\n```bash\n./build.sh orwa84/smtpc\n```\n\nNote that this will not work in case the ENV variable **SMTPC_IMAGE** was defined, in which case the value of the ENV variable will be used instead of the passed parameter.\n\n## Pushing to container registry\n\nTo push the image to Docker Hub as the _latest_ image, assuming that the image path is \"orwa84/smtpc\" and the python image tag is \"3.12-slim\", you can use the following commands:\n```bash\ndocker tag orwa84/smtpc:3.12-slim orwa84/smtpc:latest\ndocker push -a orwa84/smtpc\n```\n\nIn the above commands, the tag \"latest\" is added to the image, then the image is pushed to Docker Hub with all of the tags associated with it (using the `-a` CLI option).\n\n## Questions or comments?\n\nPlease do not hesitate to [open an issue](https://github.com/diraneyya/smptc-docker/issues/new/choose) with any comments or suggestions you might have.\n\nI also hope that you find the organization and the thought that went into this repository useful.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiraneyya%2Fsmptc-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiraneyya%2Fsmptc-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiraneyya%2Fsmptc-docker/lists"}