{"id":38480911,"url":"https://github.com/nitintf/nullmail","last_synced_at":"2026-01-17T05:27:43.988Z","repository":{"id":307959232,"uuid":"1031052831","full_name":"nitintf/nullmail","owner":"nitintf","description":"A fully self-deployable and open source Temp Mail SMTP Service written in GO","archived":false,"fork":false,"pushed_at":"2025-08-03T08:34:50.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-03T10:12:36.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nullmail.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitintf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-02T22:48:52.000Z","updated_at":"2025-08-03T08:36:15.000Z","dependencies_parsed_at":"2025-08-03T10:28:38.786Z","dependency_job_id":null,"html_url":"https://github.com/nitintf/nullmail","commit_stats":null,"previous_names":["nitintf/nullmail"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nitintf/nullmail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitintf%2Fnullmail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitintf%2Fnullmail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitintf%2Fnullmail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitintf%2Fnullmail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitintf","download_url":"https://codeload.github.com/nitintf/nullmail/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitintf%2Fnullmail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28499508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"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":[],"created_at":"2026-01-17T05:27:43.903Z","updated_at":"2026-01-17T05:27:43.982Z","avatar_url":"https://github.com/nitintf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nullmail\n\nA development SMTP server that captures emails without actually sending them, with a modern web interface for viewing received messages.\n\n## Features\n\n- **SMTP Server**: Accepts emails on port 2525 (or configurable port)\n- **Web Interface**: Modern Next.js client for viewing captured emails\n- **Redis Storage**: Persistent email storage using Redis\n- **TLS Support**: Supports encrypted connections\n- **Development Ready**: Easy setup for local development and testing\n\n## Quick Start\n\n### Prerequisites\n\n- Go 1.21.3 or higher\n- Node.js and pnpm\n- Docker and Docker Compose (for Redis)\n\n### Setup\n\n1. **Start Redis services**:\n   ```bash\n   make docker-up\n   ```\n\n2. **Run the SMTP server**:\n   ```bash\n   make run\n   ```\n\n3. **Start the web client** (in another terminal):\n   ```bash\n   make run-client\n   ```\n\n4. **Access the web interface** at `http://localhost:3000`\n\n### Testing Email Reception\n\nSend a test email to the SMTP server:\n\n```bash\nmake test-smtp\n```\n\nOr manually with `swaks`:\n```bash\nswaks --to user@nullmail.local --from sender@example.com --server localhost:2525 --body \"Test email\"\n```\n\n## Development\n\n### Available Commands\n\n**Go/SMTP Server:**\n- `make run` - Start SMTP server in development mode\n- `make build` - Build the binary\n- `make test` - Run tests\n- `make fmt` - Format Go code\n- `make vet` - Run go vet\n- `make check` - Run formatting and vetting\n\n**Client:**\n- `make run-client` - Start Next.js development server\n\n**Docker:**\n- `make docker-up` - Start all services (Redis, etc.)\n- `make docker-down` - Stop all services\n- `make docker-build` - Build Docker image\n\n**Redis:**\n- `make redis-logs` - View Redis logs\n- `make redis-reset` - Clear all stored emails\n\n### Project Structure\n\n```\nnullmail/\n├── cmd/nullmail/          # Main application entry point\n├── internal/              # Internal Go packages\n│   ├── smtp/             # SMTP server implementation\n│   ├── email/            # Email parsing and validation\n│   └── redis/            # Redis client\n├── client/               # Next.js web interface\n│   ├── app/              # Next.js app router\n│   ├── components/       # React components\n│   └── lib/              # Client utilities\n└── infra/                # Infrastructure configs\n```\n\n## Configuration\n\n### Environment Variables\n\n**SMTP Server:**\n- `DEBUG=true` - Enable debug logging\n- `ENV=production` - Set production mode\n- `REDIS_URL` - Redis connection string (default: localhost:6379)\n- `REDIS_PASSWORD` - Redis password (default: dev123)\n\n**Client:**\n- Standard Next.js environment variables\n\n### Ports\n\n- SMTP Server: 2525 (configurable via command line argument)\n- Web Client: 3000 (Next.js default)\n- Redis: 6379\n\n## API\n\nThe web client connects to the SMTP server's stored emails via:\n\n- `GET /api/emails/[address]` - Retrieve emails for a specific address\n\n## License\n\nThis project is for development and testing purposes.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitintf%2Fnullmail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitintf%2Fnullmail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitintf%2Fnullmail/lists"}