10 ms·
Mail-in-a-Box – one-click, easy-to-deploy email server
- mr_blobs 10y agoI setup my own mail server last year and shortly gave up on the idea. Setting the server up isn't the problem. The problem is keeping your IP off of all the major blacklists. I wasn't even sending out mass emails and 30%+ of my email would never be delivered. I had to constantly check to see if my IP addresses were on the various spam lists (and fight to get my IPs off) and I just got tired of it. Companies like Google have entrenched themselves in many things like email and are slowly becoming the only option out there. A large amount of email addresses are @gmail.com or run through one of their servers and they ultimately control whether the recipient receives/sees your email. The 'promotions' tab in gmail also made things worse for many small businesses. Google doesn't want you competing for their advertising space and pushes any emails it deems a 'promotion' off to the side, so users don't actually see it. I'm not even talking about actual spam emails here, but emails users knowingly signup for and are expecting. Many people don't realize just how much a handful of companies controls the Internet and your ability to make a living online.
- binaryanomaly 10y agoThat's why I've left gmail years ago. I do not want to support this kind of "business model". I also do not want to invest the time to maintain my own email server. Imho there are good alternative solutions provided by companies such as protonmail.com or mailbox.org just to name two I have personally experience with. As with everything it is mostly about overcoming your personal comfort zone and start to act. Good luck.
- mr_blobs 10y agoIt's not about being outside your 'comfort zone'. I've been running complex setups for years and am perfectly comfortable getting my hands dirty. It's about the time and effort it takes to constantly fight the blacklists and the downtime for my business.
- zAy0LfpBZLC8mAC 10y agoWhat are you doing to constantly have to fight the blacklists?! I've been operating my own mailserver for over a decade and I haven't ever had to remove my IP addresses from any blacklists, and I haven't ever heard such a thing from other people I know who are operating their own mailservers either.
- jack9 10y agoI've been running a postfix for years (since 2008ish) and never once checked or worried about blacklists. My 3 users haven't reported any problems at all.
- viraptor 10y ago> never once checked or worried about blacklists. My 3 users haven't reported any problems at all. What if they missed emails they never knew about in the first place? What if they tried to contact someone and just assumed they've been ignored? Unless you know you're not on blacklists, you should be worried at least a bit.
- viraptor 10y agoThere's still a middle ground available. You can move your emails to a smaller but serious commercial email provider you actually pay for. I moved to Zoho for example (I pay them directly and use own domain), but there's still loads of others available. I don't get the complaint about the promotion tab though. I had the emails auto-labelled before more or less as private / adverts / notifications / mailing lists. This maps pretty well to Primary / Promotions / Updates / Forums. Anything that ends up in Social I just unsubscribe from. I'm pretty happy with their autoclassifiers. They don't make me not see emails.
- eikenberry 10y agoOnce you have SPF/DKIM in place and make sure your IP isn't already on a blacklist for some past (previous users) infractions you should be good to go. I've run my own mail server for years and have only had to remove it from a blacklist once. So once you get past some initial blacklist monitoring work, you are good to go. That does bring up the point of how to do blacklist monitoring. There are various commercial services out there that will allow you to check for free and monitor 1 host or something (eg. https://mxtoolbox.com/ https://mxtoolbox.com/). I'd prefer to run my own though, does anyone know of a good setup for this?
- bigiain 10y agoQuestion: where's your IP address come from? I'd have guessed that common cloud VM IP pools are likely all trashed permanently already? I somehow doubt AWS or DO or Linode or Rackspace et al are worthwhile places to host an outbound mail server? I'd also guess ISP pools of home IP addresses are probably just as poisoned. Is proper SPF/DKIM setup "enough" to overcome that? (Or are my suspicions about pools of IP addresses unfounded?)
- eikenberry 10y agoCloud providers are not as bad as you'd think. I've tested several DO IPs using various checkers, as I've been thinking about moving my server there (currently at prgmr.com), and they have all been clean. SPF and not being an open relay seem to be the 2 important things to keep you off the blacklists. I still don't have DKIM (been on my TODO for a while... but lazy) and haven't been put on a blacklist in many years.
- bigiain 10y agoHmmm, thanks for that. I just checked my CloudAtCost VM, which I'd never have considered running outbound mail from, and it's not on _any_ of the 90+ blacklists mxtools checks. This astounds me!
- startling 10y agoI used Digital Ocean for a year. No problems, never sent spam. Then my mail started being spamfiltered, apparently because a neighbor was spamming. Seriously don't recommend using cloud hosts if you care about people receiving your email.
- awinter-py 10y agoI think you're mischaracterizing the promotions tab. When users interact with a web merchant, they're exchanging money for goods/services -- they're not signing up for spam. Hiding marketing email is a feature, not an evil plot. It's not just G that differentiates between transactional email (a receipt) and bulk/marketing mail. Trans/bulk are so different that email companies consider these separate products (e.g. mailchimp vs mandrill). Generalizing based on myself, I can guarantee that people really hate receiving crap. At least I can visually distinguish the G ads from my email and ignore them.
- TheGrumpyBrit 10y agoI found the Promotions tab to be a really handy "middle ground" between spam and actual mail. It usually contains mail from companies I've done business with, who I might be interested in receiving offers from, but I don't want those offers mixed in with my day-to-day stuff. Having them separately allows me to read them on my own time, and also lets me see at a glance if anyone is sending me too much. They're also usually the kind of companies who will honour an unsubscribe request.
- vacri 10y agoMy company's mail is on Gmail, and because of some missetting on google's side ('webmaster@' and 'abuse@' addresses not mailable), we ended up on the RFC-Clueless blacklist. I got that fixed, and have submitted half-a-dozen requests to have us removed from rfc-clueless, and they've all been ignored (and do their best to hide how to submit and what for). Fuck rfc-clueless - it's a blacklist for 'people who don't follow the rules', but they're bad netizens themselves and don't follow their own rules. Just... fuck them. I can't imagine what it's like to end up on one of these ignored blacklists when you don't have the might of a professional email service behind you.
- empath75 10y agoThe promotions tab is the only reason I even look at marketing email. Otherwise, I'd just ignore it completely. Every once in a while I skim through it and clear it out.
- cobbzilla 10y agoIf you're only concerned about delivery and can live with a third-party SMTP relay, I'd hope you could set up this system to relay through sendgrid or mailgun. If it's only for personal use, you'd probably be fine on their free plan indefinitely.
- _andromeda_ 10y agoAny thoughts on SES?
- cobbzilla 10y agoI suppose any third-party email relay would give you better delivery guarantees than you achieve yourself, at least at the outset.
- jwr 10y agoI've been running my own mail server since 2001. Only once had a problem with blacklists when I moved the server to a new IP at a provider with bad spam reputation. Otherwise, this has never been a problem. Don't let Google and Facebook monopolize our communications.
- cm2187 10y ago> Don't let Google and Facebook monopolize our communications. I do the same but the reality is that 99% of my correspondants use gmail, yahoo or hotmail. So these companies get a copy of all of my communications...
- ProxCoques 10y agoWhile I hear you on Gmail's overbearing influence, I'm not a sysadmin (I'm a designer and I spend most of my time talking to people about "user journeys" and fonts), but I run my own (and my family's) email using Ubuntu on a VM. There are lots of easy HOWTOS on setting up Postfix with DKIM and bind with SPF. I've got an alert on one of those blacklist monitors and not been in any blocking lists at all in several years. So if I can do it, you can too. BTW I use Gmail as the front end though - it picks up the mail up from my POP3 server and sends it out via my server over TLS/SSL. That last step was a bit complicated to set up since Gmail doesn't accept self-signed certificates for SMTP sending. But I managed to work out how to set up and renew a free cert from StartCom.
- abverma 10y agoYou might want to switch to Lets Encrypt or a paid SSL certificate provider. https://en.wikipedia.org/wiki/StartCom#Criticism https://en.wikipedia.org/wiki/StartCom#Criticism https://blog.mozilla.org/security/2016/10/24/distrusting-new-wosign-and-startcom-certificates/ https://blog.mozilla.org/security/2016/10/24/distrusting-new... https://wiki.mozilla.org/CA:WoSign_Issues https://wiki.mozilla.org/CA:WoSign_Issues
- ProxCoques 10y agoLetsEncrypt needs port 80 open to the outside so that it can verify/renew certificates. I don't have port 80 open on the mail server though.
- Whitestrake 10y agoLetsEncrypt actually has multiple options available for validation. Only one challenge type, http-01, requires port 80 to be open. Another, tls-sni-01, requires port 443. dns-01 requires configuration of your DNS provider. I personally make use of tls-sni-01 and dns-01 in different situations.
- ericd 10y agoI set up my own mail server and was sending bulk email (opt-in) with relatively little experience. Set up dkim and spf, and you should be fine. A bit arcane, but it's not the maintenance nightmare you imply. Once you get into automated bounce tracking, etc, it's a bit trickier, but no need to do that for personal email.
- Veen 10y ago> The 'promotions' tab in gmail also made things worse for many small businessesaid Do you mean "made it harder for small businesses to get eyeballs on their spam"? Most consider that a good thing. It's only marketers and spammers who regret the bundling of these "valuable messages".
- benevol 10y ago> The problem is keeping your IP off of all the major blacklists. I run several email servers, and this is NOT the problem. You just need to configure things correctly. It's not 1996 anymore, you need to set up things like DKIM, SPF, etc. Also make sure your hosting provider has not sold you an IP that was previously used by a spammer. [0] That's all there is to your "problem". Besides that: Your solution to Google's insane domination is to put even more of your life on their servers? When we know thanks to Snowden that Google is part of the NSA's PRISM mass surveillance program? Surrendering is not what winners do. [0] Simply run a Blacklist Check here: http://mxtoolbox.com/supertool.aspx http://mxtoolbox.com/supertool.aspx
- SturgeonsLaw 10y agoI completely agree, especially with your "defeatism is doing your opponent's work for them" viewpoint, but if your goal is keeping information off the big provider's systems, then it's not gonna leave you with many people to email...
- Kalium 10y ago> The 'promotions' tab in gmail also made things worse for many small businesses. Google doesn't want you competing for their advertising space and pushes any emails it deems a 'promotion' off to the side, so users don't actually see it. I'm not even talking about actual spam emails here, but emails users knowingly signup for and are expecting. The difference between what a business thinks a user has signed up for and is expecting and what an actual user is actually expecting in their actual mind tends to resemble night and day. For most users the "Promotions" tab was a godsend that rescued them from significant amounts of email that was swamping the stuff in their inboxes they expected and wanted to read. It allows users to engage with promotional material at their own choice and in their own time. Google's smart filters have been a fantastic win for the user experience.
- Whitestrake 10y agoAgreed, for this particular point it's less about small business vs. Google and more about small business vs. users. Google stepped in and saved a lot of users a lot of time and effort. I'm not sad that it's tougher for businesses to consume my time while I'm cleaning my inbox out, I can go over the promotional stuff when I actually want to.
- ariejan 10y agoI've been running MiaB for about 6-7 months now. It's one of those things that 'just works', and with 'just works' I mean: * Well configured, secure email server * Ease of adding/removing domains, aliases, catch-alls and user accounts * Ease of using email, either with the ready-to-go Roundcube webmail or any IMAP/POP client * Batteries included: DNS is included, DKIM, SPF, you name it. DNSSec * Want to host a static HTML site? MiaB's got you covered. * Yes, that included Let's Encrypt SSL certs * Awesome status page to check: version updates, misconfiguration, system health, and for each domain: DNSSEC, nameservers, DNS, TLS/SSL, blacklisting, etc. * Open source! Huzzah! If you're serious about moving away from Google or any other corporate mailprovider is feasible, take a look at Mail in a Box.
- alexkavon 10y agoThis is going to make spammers so happy.
- voltagex_ 10y agoWhy?
- viraptor 10y agoGmail and other really big providers are in a unique position for spam filtering. They have so many users that they get a continuously trained filter pretty much for free. They can instantly classify never-seen-before kind of spam in minutes because someone gets push notification on their phone and clicks "this is spam". Nobody with purely-technical solution to this problem can be better in practice. (although we're pretty close) This means you're more likely to get actual spam in your custom deployment.
- eikenberry 10y agoThis is a definite trade off. I have my personal mail server + a gmail account and gmail is better at spam prevention. It isn't that much better though as local Bayesian filters do very well.
- drdaeman 10y agoRun a honeypot. Just an usual Postfix with catch-all virtual mailbox and a learn-spam for the destinatin. Let spammers happily fill it (they will, in no time) and train your very own rspamd/spamassasin/whatever. Sure, this works as long as they don't try to poison your filters, but given its a small and rare target, it's unlikely someone would bother.
- viraptor 10y agoA proper honeypot takes a lot of time and effort. You actually have to inject that email into the right environments. For example nobody will steal your honeypot address from someone's mail history, some service's stolen user database, or others. It helps, but it's not a solution.
- atemerev 10y agoUnfortunately, it requires a fresh Ubuntu installation / separate instance. I think it would be a perfect use case for Docker-based solution.
- Eldt 10y agoThis would make me very happy
- oliver2213 10y agoI would love this! Already have a Debian 8 server and (although I want to use this) don't feel like spinning up a new server for MiaB.
- anonymouslee 10y agoThere's a Vagrantfile that you can just vagrant up: https://github.com/mail-in-a-box/mailinabox/blob/master/Vagrantfile https://github.com/mail-in-a-box/mailinabox/blob/master/Vagr... I poked a bit and it appears that the setup script is interactive which complicates playing nicely with Docker somewhat. It installs nsd + postfix, rewrites config files in /etc and mucks with ufw. Could probably mimic some of this by mounting locally customized config files into the Docker container.
- stinos 10y agoThere was some effort towards it and I'm still running a dockerized version without any problms whatsoever, but the maintainer considered Docker too hard to setup in the end (e.g. https://github.com/mail-in-a-box/mailinabox/issues/16 https://github.com/mail-in-a-box/mailinabox/issues/16)
- mastazi 10y agoThis includes Roundcube which, the last time I checked (admittedly, 2-3 years ago) was basically unusable on a mobile browser. Has this changed in the meantime? (Not that it matters much, one could always install another webmail client elsewere).
- TheSmiddy 10y agoIt still is, unless you install a mobile skin. This is the skin I installed, it's nothing to write home about but it does the job: https://github.com/messagerie-melanie2/Roundcube-Skin-Melanie2-Larry-Mobile https://github.com/messagerie-melanie2/Roundcube-Skin-Melani... Having said that I recently migrated to fastmail as it costs me <$5 a month and just works for all of my domains. I found I was spending more time making my email work than actually building things in my limited spare time.
- mastazi 10y agoThanks for the link, it seems that skin does the trick!
- DrPhish 10y agoThis is good for those without existing infrastructure looking for a non-customizable mail system. I already run my own DNS, backups, firewalls, monitoring etc and want something I can hack on, so I run Citadel at home. Cit is the same idea (complete mail solution including webmail), but has many mechanisms for maintainably extending its functionality. Runs wonderfully on Debian with a single apt-get
- mnutt 10y agoI run a pretty similar setup, but could never get z-push to work properly with iOS exchange sync. I spent a few days tinkering with it and trying to fix php bugs, but to this day I can't get search to work properly from my iPhone. Are there any alternatives to z-push out there, or has someone had success with this setup?
- peller 10y agoIf you're comfortable with command-line Linux, and have a basic understanding of DNS, setting this up from scratch is actually not all that hard. After researching the hell out of this a few weekends ago, the best guide I found on the subject is: https://workaround.org/ispmail/jessie https://workaround.org/ispmail/jessie Sure, it's technically for Debian, but if you're comfortable with Linux it's easily adaptable to other distributions. In order to get Gmail to accept your email without it going to spam, you need SPF/DKIM and a SSL cert. Let's Encrypt works, and is a cinch to set up.
- reitanqild 10y ago> If you're comfortable with command-line Linux, and have a basic understanding of DNS, setting this up from scratch is actually not all that hard. After researching the h... out of this a few weekends ago, ... You make it sound hard, just there, or do I misunderstand?
- peller 10y agoAh that wasn't my intention :) Personally, I had just kept hearing all these nightmare stories about self-hosted email and never really looked into it further. Until I went from zero familiarity with the options to having a working setup in a weekend. But it probably took me longer than it needed to, because I've been learning BASH at the same time and wanted a fully scriptable install process. And some time spent wrestling with nginx (for https webmail), which I was also new to.
- reitanqild 10y agoOk, I see, thanks for the honesty!
- cm2187 10y agoIf you don't and are rather a windows guy, I strongly recommand Smartermail. They have a free edition. Very easy to setup, all in one solution with a good webmail. Supports ActiveSync (not free though), SPF, DKIM. But not let's encrypt. One thing to know, you need to activate the option to use TLS for outgoing email. A bit of a stupid default in my opinion.
- wjd2030 10y agoI love that I found this the day after I finished getting iRedMail setup and configured with all the SPF, DKIM and SMTP forwarding services. I went with MailJet for SMTP forwarding, 600 emails a month for free.
- deleted 10y ago[deleted]
- peterburkimsher 10y agoI'd like a mail server for jailbroken iPhones. I tried to install one from Cydia, but it was designed for Apple TV and sent my iPhone into a boot loop and I had to restore. Having a local mail server would be useful for making local P2P WiFi links, and emailing photos/music/etc directly between phones without Internet access.
- neurostimulant 10y agoPerhaps using an email server that's written in a scripting language would work? For example, https://github.com/zedshaw/lamson https://github.com/zedshaw/lamson is written in python. Perhaps you could get it running on your jailbroken device if you could get python and pip installed.
- ForFreedom 10y agoWhat would be a good web email client to customize like placing logos, font style, etc?
- ashleyhindle 10y agoThis is the exact reason I built Fodor: https://fodor.xyz https://fodor.xyz - it lets you easily setup GitHub projects on DigitalOcean so it truly is one~ click (usually about 4, but hey pretty good?) You add a fodor.json file, add a link to Fodor and it makes it super easy to get it setup for yourself
- TheArcane 10y agoA good alternative would be sovereign (https://github.com/sovereign/sovereign https://github.com/sovereign/sovereign)
- benbristow 10y agoBeen using this on a Xen VPS. http://poste.io/ http://poste.io/. Seems to work relatively well and easy as pie to install. Even used it for a client and had no issues from them since.