Does the courier have a TTL for an email? #932
-
Some users register with incorrect emails, so will the Kratos disable confirmation emails due to the inability to send? Or those emails will be forever garbage in sending queue and server logs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Here you have the message struct, it does not store any TTL or retry count: https://github.com/ory/kratos/blob/master/courier/message.go#L22-L34 |
Beta Was this translation helpful? Give feedback.
Here you have the message struct, it does not store any TTL or retry count: https://github.com/ory/kratos/blob/master/courier/message.go#L22-L34
And here is the couriers strategy on a send error: https://github.com/ory/kratos/blob/master/courier/courier.go#L152-L161
So I guess the message will be send indefinitely unless you delete it from the database (possible workaround). We should probably implement some strategy to avoid that.