Ask HN: cheap ways to host your own email server?
53 points| _vya7 | 12 years ago
This was initially inspired by and posted on the "Gmail is down" thread, but it got drowned out quickly by our collective lack of organization. (Why didn't we just start with a "me too" thread that people could respond to?)
[+] [-] treffer|12 years ago|reply
Put up a RPI at home. postfix + dovecot + roundcube should do the trick.
Add FW forwardings for 80/443/25 (or allow IPv6 to pass through)
Update DNS records every N minutes. (cron, nsupdate, dyndns clients, amazon command line tools....). You will need SPF/DKIM.
The RFC for SMTP says Mail Servers have to retry for 7 days before giving up on mail delivery. This should be plenty for your home server. There are also commercial Mail relay and backup MX services (sometimes even as a free offer for buying domains on website X).
You can backup the SD-Card whenever you want. Your Mail stays at locations you control.
I currently have a root server, but I'm heavily considering "in-housing" those services because of the NSA activities.
EDIT: it's 7 days PS: Some old firewalls block dynamic IPs for mail delivery. I'm not sure how common this is today, especially as SPAM and botnets have evolved a lot.
[+] [-] eps|12 years ago|reply
For one, this violates every second provider's ToS, if not every single one.
For two, lots of providers block incoming SMTP connections on TCP/25. More importantly, they may start blocking it without notice and you'll have no clue that they did.
For three, you will most likely end up on a RBL (blacklist) in no time solely because you come from a "consumer" IP range.
I mean, hosting at home is technically simple, but in the end it created more problems that it solves. Get a hosted server and use it instead.
[+] [-] FiloSottile|12 years ago|reply
The problem is not that firewalls block dynamic IPs, but that a lot of mail servers, to deal with spam servers, started accepting mail only from some trusted smarthosts.
So there might be some server that will reject your mails. (I don't honestly know how much SPF makes things better.)
However, your ISP SMTP server will accept mail from its IP range (as they know how to find you if you abuse the service) and will relay mail for you. So probably your best bet is setup outgoing mail to go through it (Internet site with Smarthost, or something like that).
Ah, and don't forget to setup your server for SSL!
[+] [-] unknown|12 years ago|reply
[deleted]
[+] [-] ubercore|12 years ago|reply
[+] [-] jeremyw|12 years ago|reply
A large dollop of group experience wrapped up in Ansible recipes for your cheap VPS.
[+] [-] FiloSottile|12 years ago|reply
There is still a third party that can give away your data, block your service and delete your emails pushing a virtual button.
[+] [-] mjs|12 years ago|reply
https://www.mailpile.is/
(Features--privacy, encryption--are supposed to satisfy the most discerning HN reader.)
[+] [-] jlgaddis|12 years ago|reply
On a serious note, I've considered publishing the kickstart + deploy scripts I use for setting up mail servers. I'd have to do a bit of clean-up but I think it would be useful for a lot of people. I'll try to get to that in the very near future.
[+] [-] ivansavz|12 years ago|reply
[+] [-] shiftpgdn|12 years ago|reply
As to running your own email server? Don't bother. Unless you plan to stay on top of exploits, DKIM keys and SPF records you'll wind up with serious mail delivery problems.
[+] [-] alextingle|12 years ago|reply
DKIM & SPF are marginally useful (at best) for ensuring delivery. You're much better off registering your server with http://www.dnswl.org/
[+] [-] sp332|12 years ago|reply
Edit: not sure about SenderID, to be honest.
[+] [-] rosser|12 years ago|reply
[+] [-] asdasf|12 years ago|reply
[+] [-] bwood|12 years ago|reply
[1] http://dbpmail.net/essays/2013-06-29-hackers-replacement-for...
[+] [-] alienfluid|12 years ago|reply
[1] http://farhan.org/running-my-own-mail-server.html
[+] [-] slashrsm|12 years ago|reply
[+] [-] ams6110|12 years ago|reply
[+] [-] unknown|12 years ago|reply
[deleted]
[+] [-] JimmaDaRustla|12 years ago|reply
I'm currently using NameCheap's e-mail service because setting up the software was too complicated.
[+] [-] cmsimike|12 years ago|reply
[0] http://sealedabstract.com/code/nsa-proof-your-e-mail-in-2-ho...
[+] [-] lazyjones|12 years ago|reply
[+] [-] epaulson|12 years ago|reply
Ideally, I'd sign up with one or two services and have each listed as an MX for my domain so there's always some service online to take the email. I can write my own app to hit both services and unify the two streams.
[+] [-] stevekemp|12 years ago|reply
Usually it is a pain if you have mail going to more than one host - ie. no shared storage amongst all the hosts that receive mails, but if you were looking for redundancy and didn't mind the "manual fixup" this would be almost trivial to setup with 2+ VPS from different providers.
[+] [-] squigs25|12 years ago|reply
[+] [-] rubiquity|12 years ago|reply
0 - https://personal.zoho.com
[+] [-] adders|12 years ago|reply
Its abit like cPanel & Plesk, but you don't need to use the control panel if you know what you are doing.
[+] [-] lowglow|12 years ago|reply
[+] [-] yownie|12 years ago|reply
1 year micro EC2 instance. This runs bind and dovecot/postfix. This could probably be done even cheaper with a home hosted RPI, but depends on your ISP's smtp relay rules.
free gTLD from dot.tk
done!
[+] [-] walesmd|12 years ago|reply
[+] [-] stevenmays|12 years ago|reply
[+] [-] philosophus|12 years ago|reply
[+] [-] krthkv|12 years ago|reply
[+] [-] unknown|12 years ago|reply
[deleted]