this post was submitted on 31 Mar 2024
20 points (85.7% liked)

Selfhosted

40313 readers
185 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
 

I noticed that I wasn't getting many mails (I need better monitoring), and discovered that my iredmail server was poorly.

I have spent far too much time and energy on getting it back and working these past few days, but I've finally got it back up and stable.

Some background: I've had iredmail running for probably going on 6 years now and have had very few issues at all. It runs on an Ubuntu VM on Proxmox and originally was running in the same VM on ESXi (I migrated it over). I haven't changed anything to do with the VM for years other than the Ubuntu LTS updates every 2-3 years, it's always been there and stable. I occasionally will update the Ubuntu OS and iredmail itself, no problems.

Back to the problem... I noticed that Postfix was running OK, but was showing a bunch of errors about clamav not being able to connect. Odd. I then noticed that amavis was not running and had seemed to just die. I couldn't find any reason in any log file. Very strange. Bunch of hunting, checking config file history in the git repo. Nothing significant for years.

Find that restarting the server got everything back up and running. Great, lets go to bed.... Wake up next morning to find that amavis was dead again - it only lasted about 40 mins and then just closed for no reason. Right, ok, time to turn off clamAV as that seemed be be coming up a bit wheilst looking, follow the guide, all is well. Hmm, this seems to be working, but I don't really want clamav off. A whole bunch of duck duck going and I still couldn't figure out a root cause.

And then it clicked, the thing that was causing amavis to close was that it was running out of memory and it was being killed. Bump the memory up to 4GB and re-enable everything as it originally was and.... it seems to have worked. Been going strong for over a day now.

I don't know what it was that's changed recently which has meant the memory requirements have gone up a bit, but at least it's now fixed and it took all of 2 minutes to adjust.

The joys of selfhosting!

you are viewing a single comment's thread
view the rest of the comments
[–] Pissio@feddit.it 1 points 7 months ago* (last edited 7 months ago) (1 children)

It's just a myth put around by some inexperienced user who has tried to set up a mail server or more likely by large companies who wants to give you ‘for free' the service.

It was actually much more difficult to manage them many years ago when you had to invent by hand how to filter spam. Now with common standards supported by many pre-packaged solutions, everything is much simpler and accessible to the less experienced. Of course, I admit that it takes a minimum of experience to make a backup of a text file containing the mailboxes and this could definitely be the toughest challenge 🙄.

[–] KairuByte@lemmy.dbzer0.com 1 points 7 months ago (1 children)

The potential for data loss is more catastrophic, a misconfiguration can go unnoticed for long periods of time, your IP can be listed as spam without notification, and more. Not to mention, short term downtime of a couple days can result in loss of emails.

Is it easy to spin up a docker image and call it a day? Certainly. But there is a lot more involved in a healthy email server, and there are a lot of pitfalls.

[–] Pissio@feddit.it 2 points 7 months ago (1 children)

Again ? We are in a self-hosting community and users must be helped to be autonomous, e-mail is a service that needs to be regained more than others, especially now that it is easier to manage and is for the most part hostage  of large companies that make their own interests at the expense of users.

Someone will make mistakes , someone will miss a few emails and it is absolutely normal and physiological as for all kinds of services.

I got tired of discussing it with you, Your attitude is neither appropriate nor constructive for this community.

Welcome to my blocklist.

[–] KairuByte@lemmy.dbzer0.com 1 points 7 months ago* (last edited 7 months ago)

Oh no.

Anyway.

Edit: lmao just realized, you upvote your own comments from any alt. It’s the only thing that explains you having got +1 on a comment within 3 minutes of posting, on a 4 day old thread.