{"id":13562673,"url":"https://github.com/syncloudsoftech/mailcatcher","last_synced_at":"2026-01-20T17:44:49.957Z","repository":{"id":108512350,"uuid":"558174616","full_name":"syncloudsoftech/mailcatcher","owner":"syncloudsoftech","description":"Lightweight (based on Alpine) Docker image for running a (fake) local SMTP server to test outgoing emails (powered by MailCatcher).","archived":false,"fork":false,"pushed_at":"2023-05-27T17:23:16.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-01T13:27:32.287Z","etag":null,"topics":["alpine","alpine-linux","docker","email","mail","mailcatcher","mailhog","smtp","smtp-server","testing"],"latest_commit_sha":null,"homepage":"https://syncloudsoft.com/","language":"Dockerfile","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/syncloudsoftech.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}},"created_at":"2022-10-27T03:03:53.000Z","updated_at":"2024-01-08T09:16:21.000Z","dependencies_parsed_at":"2024-03-16T21:59:43.449Z","dependency_job_id":"35b16980-4180-4e52-87f2-e944f8662723","html_url":"https://github.com/syncloudsoftech/mailcatcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syncloudsoftech%2Fmailcatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syncloudsoftech%2Fmailcatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syncloudsoftech%2Fmailcatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syncloudsoftech%2Fmailcatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syncloudsoftech","download_url":"https://codeload.github.com/syncloudsoftech/mailcatcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223019752,"owners_count":17074673,"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":["alpine","alpine-linux","docker","email","mail","mailcatcher","mailhog","smtp","smtp-server","testing"],"created_at":"2024-08-01T13:01:11.064Z","updated_at":"2026-01-20T17:44:49.926Z","avatar_url":"https://github.com/syncloudsoftech.png","language":"Dockerfile","readme":"# mailcatcher\n\nLightweight (based on [Alpine](https://www.alpinelinux.org/)) [Docker](https://www.docker.com) image for running a (fake) local [SMTP](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) server to test outgoing emails (powered by [MailCatcher](https://mailcatcher.me)).\n\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/syncloudsoftech/mailcatcher/cd.yml?branch=main)\n![Docker Pulls](https://img.shields.io/docker/pulls/syncloudsoftech/mailcatcher)\n\n## Usage\n\nTo launch a container from this image, you must have [Docker](https://www.docker.com) installed.\nIf already, run the below command:\n\n```shell\n$ docker run -d --name mailcatcher -p 1025:1025 -p 8025:8025 syncloudsoftech/mailcatcher\n```\n\nTo start/stop the (named) container at a later point in time, use below commnads:\n\n```\n# start \"mailcatcher\" named container\n$ docker start mailcatcher\n\n# stop \"mailcatcher\" named container\n$ docker stop mailcatcher\n```\n\nOnce running, you can access the webmail on [http://127.0.0.1:8025/](http://127.0.0.1:8025/) page.\n\n### docker-compose.yml\n\nTo include this container as a service in your existing `docker-compose.yml` setup, use below definition:\n\n```yml\nversion: '3'\n\nservices:\n  mailcatcher:\n    image: syncloudsoftech/mailcatcher\n    environment:\n      HTTP_PORT: '8025' # optional\n      SMTP_PORT: '1025' # optional\n    ports:\n      - '1025:1025'\n      - '8025:8025'\n```\n\n### Laravel\n\nIf your app is built with [Laravel](https://laravel.com/), you can configure it to use our docker service by adding below configuration to the `.env` file.\n\n```env\nMAIL_MAILER=smtp\n# or use MAIL_HOST=127.0.0.1 if using host network\nMAIL_HOST=mailcatcher\nMAIL_PORT=1025\nMAIL_USERNAME=null\nMAIL_PASSWORD=null\nMAIL_ENCRYPTION=null\nMAIL_FROM_ADDRESS=\"hello@example.com\"\nMAIL_FROM_NAME=\"${APP_NAME}\"\n```\n\n### Node.js\n\nIf your app uses [nodemailer](https://nodemailer.com/), configure it to use our docker service using below code:\n\n```js\nconst transporter = nodemailer.createTransport({\n  host: 'mailcatcher', // or use 127.0.0.1 if using host network\n  port: 1025,\n  secure: false,\n});\n```\n\n## Development\n\nBuilding or modifying the container yourself from source is also quite easy.\nJust clone the repository and run below command:\n\n```shell\n$ docker build -t mailcatcher .\n```\n\nRun the locally built container as follows:\n\n```shell\n$ docker run -it -p 1025:1025 -p 8025:8025 mailcatcher\n```\n\n## Testing\n\nSince [MailCatcher](https://mailcatcher.me) also includes a REST API for retrieving emails, it's super-easy to use it in testing workflows. See [https://mailcatcher.me/#api](https://mailcatcher.me/#api) for documentation.\n\n## License\n\nSee the [LICENSE](LICENSE) file.\n","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncloudsoftech%2Fmailcatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyncloudsoftech%2Fmailcatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncloudsoftech%2Fmailcatcher/lists"}