-
|
to configure a timout wherein emails are dropped completely after a preset amount of time that can be included as an option to sending emails. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
Mailpit already has this at the server-retention level with For example: mailpit --max-age 24h
mailpit --max 500 --max-age 24hUse If you meant "the sending app chooses a different expiry per email", that is a different feature. For that, you would need custom tagging plus an external cleanup script/API call, or a new Mailpit feature. That should make the retention setting easier for the next person to find. |
Beta Was this translation helpful? Give feedback.
-
|
We use an SMTP proxy (MTA) for this. Mails with a special recipient address get rejected after a delay. Works great, so in our case we don't need this feature in Mailpit. |
Beta Was this translation helpful? Give feedback.
-
|
more like an will attempt to queue mail for delivery timeout and error if time window expires. |
Beta Was this translation helpful? Give feedback.
-
|
This has been discussed a few times in the past , but the reasoning is outlined in #547. It's simply out-of-scope for Mailpit which is designed for email capture, and not email relay/server. Whilst it can relay / forward, this kind of queue/retry/reject logic should be handled with a proper mail server like postfix. |
Beta Was this translation helpful? Give feedback.
If auto-forwarding is set, it will just slow down the rate Mailpit can accept messages because the bottleneck will be the relay server. But can it get stuck? - I don't think so - although technically anything can get stuck if you DoS/DDoS it. I will emphasise again however that Mailpit is designed to receive emails, and not as a high performance relay server.