{"id":28902606,"url":"https://github.com/alfiosalanitri/imapsync-docker","last_synced_at":"2026-04-29T09:05:34.477Z","repository":{"id":297587990,"uuid":"997241331","full_name":"alfiosalanitri/imapsync-docker","owner":"alfiosalanitri","description":"A minimal Docker image to synchronize emails between two IMAP mailboxes using imapsync","archived":false,"fork":false,"pushed_at":"2025-06-06T09:40:52.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T11:10:04.586Z","etag":null,"topics":["docker","imapsync","sysadmin-tool"],"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/alfiosalanitri.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,"zenodo":null}},"created_at":"2025-06-06T07:34:49.000Z","updated_at":"2025-06-11T12:39:54.000Z","dependencies_parsed_at":"2025-06-06T09:38:02.882Z","dependency_job_id":null,"html_url":"https://github.com/alfiosalanitri/imapsync-docker","commit_stats":null,"previous_names":["alfiosalanitri/imapsync-docker"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alfiosalanitri/imapsync-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfiosalanitri%2Fimapsync-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfiosalanitri%2Fimapsync-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfiosalanitri%2Fimapsync-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfiosalanitri%2Fimapsync-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alfiosalanitri","download_url":"https://codeload.github.com/alfiosalanitri/imapsync-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alfiosalanitri%2Fimapsync-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32418203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["docker","imapsync","sysadmin-tool"],"created_at":"2025-06-21T11:10:02.975Z","updated_at":"2026-04-29T09:05:34.473Z","avatar_url":"https://github.com/alfiosalanitri.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# imapsync-docker\n\n🛠️ A minimal Docker image to synchronize emails between two IMAP mailboxes using `imapsync`.\n\nPublished on GitHub Container Registry:  \n👉 `ghcr.io/alfiosalanitri/imapsync-docker`\n\n---\n\n## 🚀 Features\n\n- Based on Alpine for a lightweight image\n- Includes imapsync and required dependencies\n- Simple `.env`-based configuration\n- Ready for CI/CD with versioned tags\n\n---\n\n## 📦 Usage\n\n```bash\ncp .env.example .env\n```\n\n2. **Edit `.env` with your mailbox credentials**:\n\n```ini\nUSER_1=user@host1.it\nPASSWORD_1=yourpassword\nHOST_1=imap.host1.it\nSSL_1=yes\n\nUSER_2=user@host2.it\nPASSWORD_2=yourpassword\nHOST_2=imap.host2.it\nSSL_2=yes\n```\n\n| Variable     | Required | Description                           |\n| ------------ | -------- | ------------------------------------- |\n| `HOST_1`     | ✅        | Source IMAP server hostname or IP     |\n| `USER_1`     | ✅        | Source mailbox login                  |\n| `PASSWORD_1` | ✅        | Source mailbox password               |\n| `SSL_1`      | ❌        | Set to `yes` to enable SSL for source |\n| `HOST_2`     | ✅        | Target IMAP server hostname or IP     |\n| `USER_2`     | ✅        | Target mailbox login                  |\n| `PASSWORD_2` | ✅        | Target mailbox password               |\n| `SSL_2`      | ❌        | Set to `yes` to enable SSL for target |\n\n\n3. **Run**:\n\n```bash\ndocker run --rm --env-file .env ghcr.io/alfiosalanitri/imapsync-docker:latest\n```\n\n### 📝 Usage Notes\n\nWhen running on Arch Linux with rootless Docker, hostname resolution (e.g. mail.example.com) may not work due to systemd-resolved or DNS configuration in the user namespace.\n\n✅ As a workaround, use the server’s IP address instead of its DNS name in HOST_1 and HOST_2.\n\n---\n\n## 🛠️ Build Locally \n\n```bash\ndocker build -t imapsync-docker .\ndocker run --rm --env-file .env imapsync-docker\n```\n\n---\n\n\u003e Recommended for production use.\n\n---\n\n## 🧬 Release Workflow\n\n1. Commit your changes.\n2. Run the release script with a semver tag:\n\n```bash\n./release.sh v1.0.0\n```\n\nThis will:\n- Commit (if needed)\n- Tag the commit\n- Push the tag\n- Trigger GitHub Actions to publish the image as:\n  - `ghcr.io/alfiosalanitri/imapsync-docker:v1.0.0`\n  - `...:latest`\n\n---\n\n## 📁 Files\n\n- `Dockerfile`: Builds the imapsync container.\n- `entrypoint.sh`: Sync logic.\n- `.env.example`: Example env file.\n- `release.sh`: Automates release \u0026 tagging.\n- `.github/workflows/publish.yml`: Publishes images to GHCR.\n\n---\n\n## 🔐 Security Notes\n\nNever commit your .env file.\n\nFor production use, consider using Docker secrets or environment injection tools.\n\n---\n\n## 🛠 Built With\n\n[imapsync](https://imapsync.lamiral.info/) – IMAP synchronization utility\n\n[Alpine Linux](https://alpinelinux.org/) – small base image\n\n[Docker Compose](https://docs.docker.com/compose/) – simple orchestration\n\n---\n\n## 📜 License\n\nThis project is licensed under the MIT License — see the [LICENSE](./LICENSE) file for details.\n\n---\n\n## 🤝 Contributing\n\nFeel free to open issues or submit pull requests to improve functionality, automation, or performance.\n\n---\n\n## 💡 Inspiration\n\nOriginally created to simplify email migrations and backups for developers and sysadmins using Docker.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfiosalanitri%2Fimapsync-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falfiosalanitri%2Fimapsync-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falfiosalanitri%2Fimapsync-docker/lists"}