Skip to content

Running a Mailcow instance on a 2GB VPS

Web Hosting by armstrongvds 13 replies 6.5K views
#11

Did anyone here end up trying the external AV route? I am still curious whether a separate scanner container on the same host would dodge the OOM issue or simply shift it.

Hana5 said:
Swap on imap is brutal, had the same issue on a 1GB box

This matches my experience precisely. The latency spikes were unmistakable once swap engaged, particularly during morning delivery bursts. I had assumed it was network-related until I checked `vmstat`.

For what it is worth, I eventually migrated to a 4GB plan on HostHatch rather than tuning further. The Altra performance at that tier has been flawless, though I recognize this sidesteps the original question rather than solving it within 2GB.

#12

71 days late, but did anyone try running ClamAV with a smaller signature set?

YuriDavid said:
ClamAV signature DB grows 2-3MB weekly
— you can point it at a custom mirror that strips out the Windows-only definitions. On my old InterServer box that dropped resident memory to about 400MB.

Not a full fix, but it might buy you enough headroom to keep the service alive without swap thrashing your IMAP sessions.

#13

This still haunts me —

armstrongvds said:
Swap kicking in
is exactly where I ended up I moved to a 2GB Leaseweb plan and the difference was night and day, but that's not really a tune What I actually did was drop ClamAV and lean hard on Rspamd's fuzzy + DNSBL scoring Haven't seen a single phish get through in six months, but I also don't run public signup so my threat model is pretty tame Did you ever solve this properly or did you just throw RAM at it

8-char NTLM found in 4min 32sec
#14

Did anyone here end up trying the external AV route?

YuriDavid said:
External AV scanner: more comple
— looks like that got cut off, but I'm curious if there's a lightweight option that doesn't need the full signature DB resident in RAM.

I've been running a similar stack on a 2GB Contabo ARM box and the swap thrashing during morning mail delivery is getting old. Rspamd fuzzy alone feels like a half-measure for the risk profile I have.

129 days late to this thread, I know. Hoping someone cracked it.

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft