<@U04UQ68083H> Kratos isn't sending the email veri...
# ory-copilot
m
@chilly-king-10285 Kratos isn't sending the email verification to my email. I don't see any error logs! How can I debug this connection issue on self hosted?
c
A message from kapa.ai
To debug the email verification issue in your self-hosted Ory Kratos setup, you need to ensure that your configuration is set up correctly. 1. Email Verification Setup: Your identity schema must have an email in its traits and the following configuration added to it:
Copy code
json {    "<http://ory.sh/kratos|ory.sh/kratos>": {    "verification": {    "via": "email"    }    }   }
You can find more details about this in the [Account activation and email verification settings](https://www.ory.sh/docs/kratos/self-hosted/account-activation-email-verification) documentation. 2. SMTP Configuration: Email verification requires a working SMTP connection. Ensure that your configuration file has the courier SMTP connection configured:
Copy code
yaml courier:    smtp:    connection_uri: <smtps://username:password@smtp-server:1234/>
3. Verification Flow Enabled: Make sure that the verification flow is enabled in your configuration:
Copy code
yaml selfservice:    flows:     verification:     enabled: true     ui_url: <http://127.0.0.1:4455/verification>
4. Certificate-based Authentication: If your SMTP server enforces certificate-based authentication, you can configure the client certificate and client private key to use to connect to the server. The files must contain PEM encoded data:
Copy code
yaml courier:    smtp:    client_cert_path: /somepath/client.cert    client_key_path: /somepath/client.key
You can find more details about this in the [Mail courier in self-hosted Ory Kratos](https://www.ory.sh/docs/kratos/self-hosted/mail-courier-selfhosted) documentation. If you've checked all these and the issue persists, you might want to look into debugging Ory Kratos in Docker with Delve as explained in the [Debugging Ory Kratos in Docker with Delve](https://www.ory.sh/docs/kratos/debug/debug-docker-delve-ory-kratos) documentation.