{"id":13832754,"url":"https://github.com/Cameri/smtp-nostr-gateway","last_synced_at":"2025-07-09T19:31:12.868Z","repository":{"id":139002434,"uuid":"532622747","full_name":"cameri/smtp-nostr-gateway","owner":"cameri","description":"SMTP to Nostr NIP-04 Gateway","archived":false,"fork":false,"pushed_at":"2022-09-11T00:47:34.000Z","size":14,"stargazers_count":35,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-05-01T19:15:08.256Z","etag":null,"topics":["nostr","nostr-protocol","nostr-tools"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/cameri.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}},"created_at":"2022-09-04T18:24:53.000Z","updated_at":"2024-02-20T16:19:20.000Z","dependencies_parsed_at":"2024-01-13T16:29:41.225Z","dependency_job_id":"a186af3a-9d10-4f3e-be84-a6fcf169ded1","html_url":"https://github.com/cameri/smtp-nostr-gateway","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/cameri%2Fsmtp-nostr-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameri%2Fsmtp-nostr-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameri%2Fsmtp-nostr-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameri%2Fsmtp-nostr-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cameri","download_url":"https://codeload.github.com/cameri/smtp-nostr-gateway/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225581832,"owners_count":17491794,"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":["nostr","nostr-protocol","nostr-tools"],"created_at":"2024-08-04T11:00:29.856Z","updated_at":"2024-11-20T15:31:02.695Z","avatar_url":"https://github.com/cameri.png","language":"JavaScript","funding_links":[],"categories":["Install from Source","Bridges and Gateways"],"sub_categories":["Nostr","Client reviews and/or comparisons"],"readme":"# SMTP Nostr Gateway\n\n# Dependencies\n- Node v18\n- `iptables` or `ufw` (not explained here)\n\n## Getting Started\n1. Add firewall rules to allow SMTP traffic (see this [guide](https://www.cyberciti.biz/faq/how-to-save-iptables-firewall-rules-permanently-on-linux/) to make this change permanent)\n\n    ```sh\n    sudo iptables -A INPUT -p tcp --dport 25 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT\n    sudo iptables -A OUTPUT -p tcp --sport 25 -m conntrack --ctstate ESTABLISHED -j ACCEPT\n    ```\n\n2. Create key \u0026 certificate for TLS\n    ```sh\n    # Warning: Follow the steps below at your own risk\n\n    export DOMAIN=your.domain # e.g. wlvs.space\n    \n    cd certs/\n\n    # Generate private key\n    openssl genrsa -des3 $DOMAIN.key 1024\n\n    # Generate certificate sign request\n    openssl req -new -key $DOMAIN.key -out $DOMAIN.csr\n\n    # Remove passphrase from key\n    openssl rsa -in $DOMAIN.original -out $DOMAIN.key\n\n    # Generate certificate from request \u0026 private key\n    openssl x509 -req -days 365 -in $DOMAIN.csr -signkey $DOMAIN.key -out $DOMAIN.crt\n\n    # Update the cert and key file on index.js \n    ```\n\n3. Create file with secret (once)\n\n    ```sh\n    mkdir -p /etc/smtp-nostr-gateway\n    echo -n \"definitely-do-not-use-this-secret\" | sudo tee /etc/smtp-nostr-gateway/secret\n    ```\n\n4. Install packages\n\n    ```sh\n    npm install\n    ```\n\n5. Run\n\n    ```sh\n    sudo SECRET=$(cat /etc/smtp-nostr-gateway/secret) node index.js\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCameri%2Fsmtp-nostr-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCameri%2Fsmtp-nostr-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCameri%2Fsmtp-nostr-gateway/lists"}