I want to privately peer-to-peer send emails between me and my friend's self hosted personal email servers. How can I make sure a message from me (A) gets delivered to my friend (B), if me and my friend's servers are never online at the same time, but at least one of our mutual friends (C, D, and E) will be online overlapping at times with each of us, but I don't know which of C, D, and E ahead of time?
Ideally I'd like it to work like this:
- My mail server (A) tries to deliver directly to (B).
- If I don't receive a successful delivery status notification within some time limit, my mail server sends the email to C, D, and E, as relays for later delivery to B.
What technologies can this be accomplished with? I imagine this is something people would want in messy mesh networks?