2024-09-21 06:23:03 +05:00
|
|
|
## SMTP Bridge
|
2024-09-21 02:52:59 +05:00
|
|
|
|
|
|
|
## Deploy
|
|
|
|
1. Create `compose.yml`
|
|
|
|
```yml
|
|
|
|
services:
|
2024-09-21 06:23:03 +05:00
|
|
|
smtp-bridge:
|
|
|
|
image: git.shihaam.dev/shihaam/smtp-bridge
|
2024-09-21 02:52:59 +05:00
|
|
|
restart: always
|
|
|
|
env_file: .env
|
|
|
|
ports:
|
|
|
|
- 2525:2525
|
|
|
|
```
|
|
|
|
2. Fill .env
|
|
|
|
```
|
2024-09-21 06:23:03 +05:00
|
|
|
TELEGRAM_API_KEY=''
|
|
|
|
TELEGRAM_DOMAIN='telegram.local'
|
|
|
|
NTFY_TOKEN='your_ntfy_token_here'
|
|
|
|
NTFY_URL='https://ntfy.sh'
|
|
|
|
NTFY_DOMAIN='ntfy.local'
|
2024-09-21 02:52:59 +05:00
|
|
|
```
|
|
|
|
3. Start the container `docker compose up -d`
|
2024-09-21 06:35:23 +05:00
|
|
|
4. Configure your application to use this brige
|
|
|
|
```
|
|
|
|
SMTP
|
|
|
|
Host: <IP address of the bridge>
|
|
|
|
Port: 2525
|
|
|
|
SSL: non
|
|
|
|
Authentication: non
|
|
|
|
Username: it_doesnt@matter.com
|
|
|
|
Password: this_field_is_ignored
|
|
|
|
Sender Address: this_also@ignored.com
|
|
|
|
```
|
|
|
|
5. Send test email to your ntfy topic or telegram chat id, example below
|
|
|
|
```
|
|
|
|
topic@ntfy.local
|
|
|
|
chatid@telegram.local
|
|
|
|
```
|