neilalexander / yggmail

End-to-end encrypted email for the mesh networking age
https://matrix.to/#/#yggmail:matrix.org
Mozilla Public License 2.0
139 stars 18 forks source link

Yggmail should report back to user if email failed to send #1

Open rany2 opened 3 years ago

rany2 commented 3 years ago

Is your feature request related to a problem? Please describe. The yggmail service I'm sending the email to is down but I am not made aware.

Describe the solution you'd like I would like for my yggmail server to return an email to me letting me know that sending that email failed and for what reason.

Describe alternatives you've considered N/A

Additional context Postfix does something like this by default.

neilalexander commented 3 years ago

Given that we’ll retry sending the mail pretty much indefinitely, that leaves us with two questions:

  1. When should we notify that something went wrong, after the first try or successive ones?
  2. For just how long should we attempt to re-send mails?
  3. We might want to obey the Expires header in either case
nxshock commented 3 years ago

Looks like we needs new config option to set re-send attempts count. May be with additional re-send rate field...

adbenitez commented 3 years ago

normal email servers usually send an email from "mailer daemon" saying something like "after X hour your message couldn't be delivery to X@example.com, there is no action needed on your side"

d47081 commented 10 months ago

As understand, not 'delivered' mails are pending in queue table (SQLite)

so if the lifetime of queue infinitive (until both nodes connected) it has no sense to make any alerts (that disturb just)