SKumarSpace / pocketbase-railway

Pocketbase running Railway
3 stars 3 forks source link

Sending mail using an external mail server does not work #3

Open Mys7erio opened 11 months ago

Mys7erio commented 11 months ago

Sending Mail Using an External Mailing Service Does Not Work

The following error gets shown to users currently when trying to send mail using a third party service:

tls: failed to verify certificate: x509: certificate signed by unknown authority.

The culprit

This is because although ca-certs are installed on the alpine container, it is not present on the final scratch based container which runs pocketbase.

Solution

The simple solution is to transfer the ca-certs to the final container before running the pocketbase service

Screenshot_2023-11-24_17-44-08