{"id":50846601,"url":"https://github.com/namecoder1/warmup-bot","last_synced_at":"2026-06-14T10:04:20.986Z","repository":{"id":352682466,"uuid":"1216187088","full_name":"namecoder1/warmup-bot","owner":"namecoder1","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-20T17:33:31.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-20T18:43:40.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/namecoder1.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-20T16:51:33.000Z","updated_at":"2026-04-20T17:33:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/namecoder1/warmup-bot","commit_stats":null,"previous_names":["namecoder1/warmup-bot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/namecoder1/warmup-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namecoder1%2Fwarmup-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namecoder1%2Fwarmup-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namecoder1%2Fwarmup-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namecoder1%2Fwarmup-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/namecoder1","download_url":"https://codeload.github.com/namecoder1/warmup-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namecoder1%2Fwarmup-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34316855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-06-14T10:04:20.238Z","updated_at":"2026-06-14T10:04:20.981Z","avatar_url":"https://github.com/namecoder1.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contesto progetto: Email Warm-up Bot per Smartables\n\n## Cosa stiamo costruendo\nUn server TypeScript che gira 24/7 su un **Raspberry Pi 5 (16GB)** il cui scopo è aumentare la\n**reputazione dei domini email** degli alias `security@smartables.it` e `support@smartables.it`,\nentrambi creati su **Zoho Mail** (piano Mail Lite, 10€/anno).\n\nIl problema è che questi alias sono appena stati creati e Gmail li classifica in spam nonostante\nSPF, DKIM e DMARC siano tutti configurati correttamente. Il warm-up serve a costruire storico e\nreputazione simulando conversazioni reali.\n\n## Come funziona\n1. **4 account Gmail** (con 2FA e App Password attiva) inviano mail scritte da OpenAI a\n   `security@smartables.it` o `support@smartables.it` tramite SMTP Gmail.\n2. Il bot legge l'inbox Zoho via **IMAP** e trova le mail non lette.\n3. Genera una risposta contestuale via **OpenAI GPT-4o-mini**.\n4. Risponde via **SMTP Zoho** usando l'alias corretto (`security@` o `support@`).\n5. Il ciclo si ripete 2–3 volte al giorno per alias, con delay casuali tra le mail per sembrare\n   umano. Opera solo tra le 08:00 e le 22:00.\n\n## Stack tecnico\n- **TypeScript** con `tsx` per esecuzione diretta\n- **nodemailer** per SMTP (sia Gmail che Zoho)\n- **imap + mailparser** per leggere inbox Zoho\n- **openai** SDK per generare mail e risposte\n- **dotenv** per le variabili d'ambiente\n- **PM2** per tenerlo attivo 24/7 sul Raspberry Pi\n\n\n## Variabili d'ambiente e dove si trovano\n\n| Variabile | Dove si trova |\n|---|---|\n| `ZOHO_USER` | È `info@smartables.it` (account principale Zoho) |\n| `ZOHO_APP_PASSWORD` | **Già creata** → Zoho Mail → Settings → Security → App Passwords → nome \"Mailer Server Raspberry\" |\n| `OPENAI_API_KEY` | platform.openai.com → API Keys |\n| `GMAIL_ACCOUNTS` | Per **ognuno dei 4 account Gmail**: Gmail → Account Google → Sicurezza → attiva 2FA → App Password → seleziona \"Mail\" → copia la password generata. Formato nel `.env`: `email1@gmail.com:apppass1,email2@gmail.com:apppass2,...` |\n| `ZOHO_ALIASES` | Sono `security@smartables.it,support@smartables.it` (già creati in Zoho Admin Console) |\n| `MAILS_PER_DAY` | Numero intero, default `2` |\n\n## Configurazione Zoho già fatta\n- IMAP abilitato: `imappro.zoho.eu:993 SSL`\n- SMTP abilitato: `smtppro.zoho.eu:465 SSL`\n- Alias `security@smartables.it` e `support@smartables.it` aggiunti all'utente principale in Admin Console\n- DKIM selector `zmail._domainkey` verificato e presente nel DNS GoDaddy\n- SPF Zoho (`v=spf1 include:zohomail.eu ~all`) presente nel DNS\n- DMARC (`p=quarantine`) presente nel DNS\n- BIMI record (`default._bimi`) presente con `https://smartables.it/logo.svg`\n\n## Contesto Smartables\nSmartables è un SaaS B2B per ristoranti italiani che gestisce prenotazioni e recupero tavoli via\nWhatsApp. Stack principale: Next.js 16, Supabase, Telnyx, Resend, Stripe. Questo bot è un\nprogetto separato e temporaneo (max 1 mese) che non fa parte del prodotto principale.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamecoder1%2Fwarmup-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamecoder1%2Fwarmup-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamecoder1%2Fwarmup-bot/lists"}