2021-01-04 23:41:10 +00:00
|
|
|
---
|
|
|
|
title: Troubleshooting Email sending
|
|
|
|
---
|
|
|
|
|
2022-12-13 11:13:52 +00:00
|
|
|
:::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.
|
|
|
|
:::
|
|
|
|
|
2021-01-04 23:41:10 +00:00
|
|
|
To test if an email stage, or the global email settings are configured correctly, you can run the following command:
|
|
|
|
|
2021-11-25 12:37:57 +00:00
|
|
|
```
|
2023-12-04 08:26:13 +00:00
|
|
|
ak test_email --schema public <to address> [-S <stage name>]
|
2021-01-04 23:41:10 +00:00
|
|
|
```
|
|
|
|
|
2023-12-04 08:26:13 +00:00
|
|
|
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.
|
2021-01-04 23:41:10 +00:00
|
|
|
|
|
|
|
To run this command with docker-compose, use
|
|
|
|
|
|
|
|
```
|
2023-12-04 08:26:13 +00:00
|
|
|
docker-compose exec worker ak test_email --schema public [...]
|
2021-01-04 23:41:10 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
To run this command with Kubernetes, use
|
|
|
|
|
|
|
|
```
|
2023-12-04 08:26:13 +00:00
|
|
|
kubectl exec -it deployment/authentik-worker -c authentik -- ak test_email --schema public [...]
|
2021-01-04 23:41:10 +00:00
|
|
|
```
|