HN Simulatornew | past | comments | lists | submit | daitangio's commentslogin

Is for this reason that my email is hosted on a cheap VPS:

https://gioorgi.com/2020/mail-server-on-docker/ https://github.com/docker-mailserver/docker-mailserver

It is very easy to set up (just a bit of time on average every 6 month to follow upgrades) and work out of the box.

Europe outlook users are experiencing problems too.


When your most important contacts use outlook, it does not matter what you do. Sending and receiving email when almost nobody else is sending and receiving is only small help.

Some problems are not solved by individual choice. If 30-40% of your important contacts use service that is down, your ability to work goes down dramatically.

I have currently important 3 daily contacts down they use MS services extensively contacted and said they can't do much of anything because their work process and the process of their contacts is down.


Enough of my contacts use Gmail. But both of these have more uptime than my self-hosted email.

If the person I'm contacting is using Outlook then I assume it's going to be unreliable anyway.

Personal email is almost exclusively for OTP, reminders/invoice.

I dunno...

Wouldn't you then need to keep up-to-date backups but ensure the backups still stay secure? Learn all about and generate SPF, DKIM, and DMARC records but still regularly get sent to the spam folder or IP blacklists if your recipient has a big-provider email? Deal with self-rolled 2FA or passkeys and secure recovery methods. If you're self-hosting at your house, you're at the whims of nature, infrastructure, and creatures not disturbing the machine. You are the one patching security holes, or if you run someone else's containerized or easy-setup mail server, making the decision between daily updates that'll catch supply chain attacks and potentially introduce instability or new security holes; or monthly/annual/never updates that virtually ensure you have a few CVEs active at all times; or the lead maintainer quits/dies and you watch it deteriorate while users groupthink how to migrate their mail to a different container.

Sorry for the pessimism. I can't suggest a better alternative. I have one account on Gmail (for impersonal communication like shopping) and another on Fastmail and occasionally reflect on how annoying it will be to lose access to either.


>Learn all about and generate SPF, DKIM, and DMARC records but still regularly get sent to the spam folder or IP blacklists if your recipient has a big-provider email?

This is my biggest complaint when self hosting. You do everything right and they still send your mail to junk or just silently discard it while telling you 250-Ok for "reasons".

Although I recently had a legit Microsoft email also end up in the junk folder so I feel better that they can't even get it right themselves.

Microsoft have also recently kicked out self hosters from their "Smart Network Data Services" portal by only allowing the ASN owner (ie. your cloud provider) to access it.


I've had Samsung order confirmations land in Gmail's spam folder. I don't understand how purchase-related emails from the largest seller of Android aren't globally whitelisted by Gmail.

There probably are some very good reasons not to self host your email server but apparently my own, self hosted, email server's uptime over the last decade is now better than that of outlook.com :-D

Quick lets collect all options people have to self host! in addition to docker-mailserver im aware of

- https://github.com/stalwartlabs/stalwart

- https://github.com/mailcow/mailcow-dockerized


I decided to self-host my mail a few weeks ago and ran through all of the big names I'd heard - Mailcow, mailinabox, Stalwart, and Dovecot+Postfix; honestly I didn't like any of them. Stalwart is very corpo, hard to configure (reading the docs[0] confused the shit out of me), and feels vibe-coded. Mailcow and miab push a huge stack onto you in a way that feels hard to modify yourself, e.g. expecting you to allocate ~2GB ram(?) to running ClamAV, and I never managed to get Dovecot+Postfix working properly.

In the end I paved over my Linux VM with OpenBSD and used Dovecot+OpenSMTPD which I found dead simple and so far faultless. I have nothing but kind words for it.

[0] https://stalw.art/docs/configuration/


That's fair. It is perfectly reasonable to want customizability if control is what you are after. I remember the days fondly where I was running postfix and dovecot on bare metal.

Nowadays my interests have skewed towards being able to have groupware features without much maintenance so groupware in a box suits my needs just fine. The learning curve to doing serious customization with a large FOSS groupware project might be a bit longer but that is offset by other factors.


Yeah I definitely get less done on OpenBSD, but I have more fun doing it, and fortunately in my position where that works for me. If I were providing a service to others instead of just myself I'd have to rethink my stack.

Mailcow's README is garbage. It tells me nothing about the software while asking for $50-100/m.

> Mailcow's README is garbage.

Geez, that's right! :-D

It seems to be a fairly popular project though, so what does that say about the correlation of README.md quality to success?


I have heard good things.

It says that whether or not the README is good does not correlate with the popularity of the project.


I am developing a project to sandbox AI coding agents at very basic level: https://github.com/daitangio/take-ai-control

I would also like to add a list of allowed site, closing all the others, but it is quite complex from docker.

It is not safe like a isolated VM, but it is a good trade-off to avoid letting a model to wipe out all your home directory or looking into other files in your disk.

As always feedback is wellcomed


You want a VM, not a container, because VMs are harder to escape.

since my employer is compelling me to throw out my expertise and rot my brain with Claude, I've been using clawk to sandbox instances in VMs: https://github.com/clawkwork/clawk

It's not perfect, but it works pretty well, and has done a nice job of forcing me to think through exactly what I'm allowing Claude access to and why, and what the risks are.


> I would also like to add a list of allowed site, closing all the others, but it is quite complex from docker.

Maybe use two containers in the same docker network. One docker container has the agent and is not allowed to leave the network. The other container you'd run a proxy in with whitelisting and that container is allowed to leave the network.


Why not use a microVM instead of a container ?


Telecom Italia locks my DNS server (I cannot change it).

I ended up using PIHole as DHCP, to drive home devices to PIHole, and control my privacy.

The trick is simple: disable DHCP on your router, and activate it on PIHole. As a bonus, PIHole on my RasperryPI2 is way faster than the little chip on my provider Router, and can be patched automatically with unattended upgrades.


And if you can't disable DHCP or set the router in bridge mode, you can just add another router (that you control) between your ISP device and the rest of your network. I've been running this setup for over a decade and didn't run into any noteworthy issues. Leave the ISP-infested router outside your network.


Note that there are ISPs that actively hijack traffic to UDP port 53 further inside their network and transparently maps that onto their internal DNS servers.


This is why you would want to setup DNS-over-TLS or DNS-over-HTTPS to, say, 1.1.1.1. They can’t hijack DNS traffic that looks like HTTPS traffic.


Cloudflare knowing every single DNS resolution is just as bad.


Nah, because at least they give you the actual answer instead of hijacking to censor/upsell/advertise to you.

But also, they were just an easy-to-type example, and you could replace them with any other DoT/DoH provider.


The whole point of ad companies like google pushing DoH is to bypass things like pinhole and take power away from you, the owner, and give it to them, the trillion dollar advertising company.


How can they lock your DNS server? Do they filter UDP traffic on port 53? Or do you mean they don't let you change it in their provided router?


Pretty sure that you can use DHCP and still override the DNS servers with most DHCP clients.


I think they're saying that their ISP's router does not allow this, thus the need in their case to use third-party DHCP.


Yes but you need to do it MANUALLY on every client. Using the PIHOLE DHCP automate this and simplify the setup.


If you love HP-RPN calculators, you may love Forth as well. Forth is a very interesting language, I find it a bit too complex for my little brain but give it a spin if, you have 2 free hours


For me, the most interesting thing about Forth is it's "thin-ness". Getting from machine code to a Forth REPL can take about 4 kilobytes.


Same, people often described it as the lisp of assembly. You get a lot of freedom of abstraction over almost direct bare metal.


Yes. Or "Lisp for hardware nerds." ;)


Exactly, and if you build your inner interpreter properly it is wicked fast.


It's not complex, it is just that it requires a different mental model because of the lack of named parameters. Stack offsets are harder to remember than things with names, more so because they change all the time as you push and pull data.


Like many languages, Forth can get complicated if you really get into the weeds. These 2 papers [0][1] (both by one of Gforth's creators) illustrate the sorts of intricacies you can run into. The trickier subtleties have to do with Forth concepts like interpretation and compilation (which have their own meanings in Forth), and have little to do with Forth's use of stacks.

In Forth's defence, other languages also have tricky subtleties, e.g. C++. Neither language prioritises theoretical purity, of course. They would be very different languages, with different drawbacks and advantages, if they did.

Both papers touch on whether the behaviours of certain unusual Forth constructs are well-defined according to the ANS Forth language standard. This sort of discussion should be quite familiar to C++ programmers.

[0] State-smartness - Why it is Evil and How to Exorcise it (Ertl, 1998) http://www.euroforth.org/ef98/ertl98.pdf

[1] State-smartness: Applications, Pitfalls, Alternatives (Ertl, 2001) https://www.complang.tuwien.ac.at/papers/ertl01state.pdf


I just implemented an ANSI compatible Forth so I'm reasonably familiar with those nasty bits, the 'DOES>' and 'DEFER' words in particular were interesting and caused me to have to rewrite some stuff that I had assumed was already stable.


I'm a super fan of docker and I also want to say thanks for designing it.

I think docker is not weird, it is very linear.

Docker has the merit to take a bunch of tools and to create an organized view of it.

I want to point you to Misterio https://github.com/daitangio/misterio which is a very thin layer on top of docker compose.

It simplify my homelab and works like a charm, and it is a waaaaay easier to use than k8s.

Thank you again, and let me know if you plan a trip in Milan :) for a meeting


Can you provide a link to Hermes/a short insight on your setup? It is quite interesting (I like minimal setup)


honestly its really more simple than it sounds. Get yourself a VPS, install hermes there and use this UI https://github.com/nesquena/hermes-webui next command Hermes to setup pi.dev as a coding agent on that host and ask it to connect to github - it will literally guide you through the setup or if given permissions - will do it for you. I'm using deepseek-flash and its dirt cheap and effective. Explain to hermes to setup webhook listeners from github about activities and comments in issues and PRs, register a github app so it can post from its own profile rather than you yours. Thats it, that's the minimal setup, from here you can develop it in many ways.

Do you think it would make sense to create a blog post out of it?


Would love a blog post!


Sure.


I prefer https://github.com/Fission-AI/OpenSpec because it works also on brown-field. If you want an unbias-demo, take a look also at

https://github.com/daitangio/take-ai-control/tree/demo/nello...

branch demo/nello-openspec


Mail server + static site + isso comment server

Owning your email is nice, and save you sone bucks if you want family accounts.


yes and no. AI is great for patter-maching and finding solution by "assonance".

I agree with you that these are not "trilling" discovery but they can be worth something anyway.

Like you, I do not like this news also because I think they will be used to just "push" the next two IPOs (Anthropic, OpenAI).


I agree, also the problem is the substrate is still in beta. So this is a beta on another beta: it seems not fully mature.

I'd prefer a K8s Operator or plugin (like Istio) to get all the pack.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: