As mentioned below, have a look at Linuxbabe’s guide and see what you think. It was basically set up and forget (so far).
The server I get through linode has a relatively small amount of storage. So I repartitioned the available storage of the default install and created a separate ZFS filesystem with compression enabled to hold the mailboxes. It’s running at about 65% of original size and even with 20 years of IMAP mail in there there’s heaps of room left.
And holy shit it is so much faster than Internode’s server. I’ve enabled forwarding on their server so everything gets dumped to my new account, and just opening and browsing the folders/mail is so much faster now, both on my phone with the Gmail app and using thunderbird on the desktop.
legios@aussie.zone 11 months ago
I’ve been self-hosting email for 10+years. I can confirm it’s a pain in the arse… Harder from a dynamic IP too (since you basically can’t get any reputation, or you might get an IP that’s banned for ‘x’ reasons)
Postfix + Dovecot here
dgriffith@aussie.zone 11 months ago
I used postfix and dovecot as well.
Basically walked through Linuxbabe’s excellent guide and was done in about 1.5 hours with SPF/DKIM/DMARC.
linuxbabe.com/…/build-email-server-from-scratch-d…
I have my own domain and a static IP with one of Linode’s nanode sizes servers for USD5 a month, works pretty good.
legios@aussie.zone 11 months ago
I use FreeBSD so used the guide here:
www.purplehat.org/?page_id=4
Sadly it is a little outdated and 1 step will fail right now until a new package is committed in to the FreeBSD repo (HTMLPurifier) which was removed as it was PHP7 only for a while. But yeah, have SPF, DKIM and DMARC running too. Took a little fiddling since I technically host for 2 domains but trial and error and all good now.
shirro@aussie.zone 11 months ago
IMO the only truly difficult part of self hosting is mail delivery because you end up at the mercy of big stupid companies (eg Microsoft) that don’t give a shit. Even then it is possible and possibly advisable to use a paid service for delivery and let them deal with the bastards.
With a bit of research and a methodical approach I think just about anybody comfortable setting up other linux network services should be fine. I like being in control of my own mail store. I choose to do my own delivery and the only persistently difficult provider is Microsoft’s free email offerings which I care about about as much as they care about running a reliable mail system for their users. They seem to penalize infrequent low volume senders. I have always been signed up to their spam monitoring bullshit and have never had a negative report but they don’t seem to communicate there so you can be blocked and nobody knows how or why. They blocked most of my hosting provider once so I routed my outgoing email with correct dkim, spf etc from a server hosted elsewhere. Easy to do with Postfix.
legios@aussie.zone 11 months ago
Yeah I found both Google and MS will arbitrarily act like dicks. Have it all sorted these days but still keeps me on my toes. Interestingly I can’t email myself from my work email address because the MS mail service they use fails SPF checks…
All fun and games at the end of the day! :)