katefike / sage

A personal finance app that's like Mint, but better. It uses a dockerized postfix/dovecot email server. Parses transaction data from alert emails.
MIT License
5 stars 0 forks source link

Create a traefik container for TLS certificate management #116

Closed katefike closed 8 months ago

katefike commented 9 months ago

ABANDONED

The only reason I wanted a traefik container was so it would manage TLS certs. But setting it up in front of the MX is a big pain. At this rate it's easier to run a bash script to get or renew TLS certs.

Steps

Erroring:

kfike@prod:~/sage$ python3 scripts/get_all_emails.py 
FAILED
MAILSERVER ERROR: Failed to connect via IMAP to the inbox of user kfike: Response status "OK" expected, but "NO" received. Data: [b'[PRIVACYREQUIRED] Plaintext authentication disallowed on non-secure (SSL/TLS) connections.']

Fixed this error by using the development postfix/dovecot config script.

Forced head to 114-temporarily-disable-tls-to-get-first-email

(.venv) kfike@pop-os:~/Projects/sage$ git reset --hard  114-temporarily-disable-tls-to-get-first-email
HEAD is now at 549112b Cofigs for DOCKERIZED mx when it successfully received an email from gmail today :D
(.venv) kfike@pop-os:~/Projects/sage$ git push origin  116-create-a-traefik-container --force-with-lease
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:katefike/sage.git
 + 3fa9b78...549112b 116-create-a-traefik-container -> 116-create-a-traefik-container (forced update)