this post was submitted on 18 Jul 2024
40 points (95.5% liked)

Selfhosted

40233 readers
752 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Just wonder what if my mail server went offline for some periods, and the sending party couldn't deliver.

Will there be any consequences except I don't get the mail? I tried searching but they all in the perspective of a sender and get a bounce, rather the other way around.

you are viewing a single comment's thread
view the rest of the comments
[–] mozz@mbin.grits.dev 33 points 4 months ago* (last edited 4 months ago) (1 children)

SMTP is designed with queues and retries

Unless something has changed massively since I was deeply involved with this stuff, the people that sent you email may get a notification after some hours that their message is being delayed, and maybe after like 24-48 hours they might get a bounce. But if it’s just your SMTP server going down for an hour or two every now and then, the system should be able handle that seamlessly (barring some hiccups like messages showing up with timestamps hours in the past which sometimes is confusing).

[–] umami_wasbi@lemmy.ml 5 points 4 months ago (2 children)

What if longer? 6 to 8 hours per day?

[–] Max_P@lemmy.max-p.me 15 points 4 months ago (1 children)

The problem with this is the probability of your server being available for the next retry is fairly low.

Usually some sort of exponential backoff is used so it might retry after 5 minutes, 15 minutes, an hour, 3 hours, 6 hours, 24 hours, 48 hours, give up.

6-8 hours is probably too much for anything serious where you don't want emails to just drop. It will work so if you're just using it to sign up to sites and stuff, you can make sure your server is on to receive the verification emails and stuff. But I wouldn't use it for anything important.

[–] umami_wasbi@lemmy.ml 1 points 4 months ago

Oh yeah. I didn't think of that. Thanks for the heads up.

[–] mozz@mbin.grits.dev 5 points 4 months ago* (last edited 4 months ago) (1 children)

I think 8 hours starts to get into territory where they might get an informational message about the delay? That also starts to be long enough that the emails might get lost in the distant past in the client and never be seen, by the time they arrive.

I think when I used to do this, it was one advisory message every 24 hours that a message was holding in the queue, and after 5 days it would bounce, but I have to assume that those limits have shrunk in the modern day. How much, IDK; it might be worth experimenting with it though before committing to creating that situation since it might not go okay.

[–] umami_wasbi@lemmy.ml 3 points 4 months ago

Thanks for the info. Greatly appreciated.