This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/website/docs/troubleshooting/emails.md
Marc 'risson' Schmitt 79fc46372c
management commands: add --schema option where relevant
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
2023-12-04 09:26:13 +01:00

28 lines
801 B
Markdown

---
title: Troubleshooting Email sending
---
:::info
Some hosting providers block outgoing SMTP ports, in which case you'll have to host an SMTP relay on a different port with a different provider.
:::
To test if an email stage, or the global email settings are configured correctly, you can run the following command:
```
ak test_email --schema public <to address> [-S <stage name>]
```
If you omit the `-S` parameter, the email will be sent using the global settings. Otherwise, the settings of the specified stage will be used.
To run this command with docker-compose, use
```
docker-compose exec worker ak test_email --schema public [...]
```
To run this command with Kubernetes, use
```
kubectl exec -it deployment/authentik-worker -c authentik -- ak test_email --schema public [...]
```