Tutorial

Why You May Not Want To Run Your Own Mail Server

Updated on July 4, 2022
Why You May Not Want To Run Your Own Mail Server

Introduction

When setting up a web site or application under your own domain, your hosting provider may also offer you the option of configuring your own mail server. Although there are many robust open source solutions such as Dovecot, hosting your own mail is often not the best option for many deployments. Because of the relatively complicated way that DNS records, spam filters, and webmail interfaces are implemented, maintaining your own mail server is becoming less popular, and less widely supported by hosting providers. Most people will get more value out of using a hosted mail service. This guide will cover many of the reasons that you may not want to run your own mail server, and offer a few alternatives.

Mail Servers Are Complex

A typical mail server consists of many software components that provide a specific function. Each component must be configured and tuned to work nicely together and provide a fully-functioning mail server. Because they have so many moving parts, mail servers can become complex and difficult to set up.

Here is a list of required components in a mail server:

  • Mail Transfer Agent
  • Mail Delivery Agent
  • IMAP and/or POP3 Server

In addition to those, you will probably want to add these components:

  • Spam Filter
  • Antivirus
  • Webmail

While some software packages include the functionality of multiple components, the choice of each component is often left up to you. In addition to the software components, mail servers need a domain name, the appropriate DNS records, and an SSL certificate.

Let’s take a look at each component in more detail.

Mail Transfer Agent

A Mail Transfer Agent (MTA), which handles Simple Mail Transfer Protocol (SMTP) traffic, has two responsibilities:

  1. To send mail from your users to an external MTA (another mail server)
  2. To receive mail from an external MTA

Examples of MTA software include Postfix, Exim, and Sendmail.

Note: As a general rule, even if you are committed to not running a full mail server, an MTA is still relatively straightforward to deploy on its own in order to send alerts or notifications from your software. This is sometimes challenging because some hosting providers (including DigitalOcean) will automatically block the default outgoing mail port, 25, in order to avoid being used for spam. To avoid this, you can use a third-party SMTP server. You can also review How To Install and Setup Postfix.

Mail Delivery Agent

A Mail Delivery Agent (MDA), which is sometimes referred to as the Local Delivery Agent (LDA), retrieves mail from a MTA and places it in the appropriate mail user’s mailbox.

There are a variety of mailbox formats, such as mbox and Maildir. Each MDA supports specific mailbox formats. The choice of mailbox format determines how the messages are actually stored on the mail server which, in turn, affects disk usage and mailbox access performance, as well as import/export compatibility.

Examples of MDA software include Postfix and Dovecot.

IMAP and/or POP3 Server

IMAP and POP3 are protocols that are used by mail clients — software that is used to read email, for mail retrieval.

IMAP is the more complex protocol that allows, among other things, multiple clients to connect to an individual mailbox simultaneously. The email messages are copied to the client, and the original message is left on the mail server.

POP3 is simpler, and moves email messages to the mail client’s computer, typically the user’s local computer, by default.

Examples of software that provides IMAP and/or POP3 server functionality include Courier, Dovecot, and Zimbra.

Spam Filter

The purpose of a spam filter is to reduce the amount of incoming spam, or junk mail, that reaches user’s mailboxes. Spam filters accomplish this by applying spam detection rules — which consider a variety of factors such as the server that sent the message, the message content, and so forth — to incoming mail. If a message’s “spam level” reaches a certain threshold, it is marked and treated as spam.

Spam filters can also be applied to outgoing mail. This can be useful if a user’s mail account is compromised, to reduce the amount of spam that can be sent using your mail server.

SpamAssassin is a popular open source spam filter.

Antivirus

Antivirus is used to detect viruses, trojans, malware, and other threats in incoming and outgoing mail. ClamAV is a popular open source antivirus engine.

Webmail

Many users expect their email service to provide webmail access. Webmail, in the context of running a mail server, is a mail client that can be accessed by users via a web browser. Gmail is probably the best-known example of this. The webmail component, which requires a web server such as Nginx or Apache, can run on the mail server itself.

Examples of software that provide webmail functionality include Roundcube and Citadel.

Downsides to Running a Mail Server

Although having to maintain a stack of four or five different software components in order to provide basic functionality is not ideal, it may not seem so much worse than other deployments in that regard. This, however, does not take into account the significant “trust” issues of running your own mail server.

In many ways, mail server stacks represent a collision between the tools and values of the early internet — self-hosting open source software using well-defined standards and interoperable protocols — and the reality of the modern internet — a few centralized, trusted authorities. More than web servers, database servers, or other cloud software, they have to handle an enormous amount of untrustworthy input, and the trust standards of commercial mail servers are very high as a result. Because mail servers are constantly handling attachments of potentially harmful files, and constantly filtering spam and spam addresses, it can be quite challenging to run a server that actually keeps up with the expectations of modern webmail providers. Many of them will not hesitate to block traffic from a temporarily compromised sender, especially if it is a small, self-hosted operation.

Staying Off Blacklists

It is not trivial to keep your server off of the various blacklists, also known as DNSBL, blocklists, or blackhole lists. These lists contain the IP addresses of mail servers that were reported to send spam or junk mail (or for having improperly configured DNS records). Many mail servers subscribe to one or more of these blacklists, and filter incoming messages based on whether the mail server that sent the messages is on the list(s). If your mail server gets listed, your outgoing messages may be filtered and discarded before they reach their intended recipients.

When deploying a web server, it is fairly common to experience occasional outages from DNS misconfiguration. There is a substantial ecosystem of CDNs and load balancers whose primary purpose is to prevent these minor outages from otherwise impacting your infrastructure. When it comes to mail servers, however, a minor misconfiguration can make it hard to — literally — restore trust.

If your mail server gets blacklisted, it is often possible to get it unlisted (or removed from the blacklist). You will need to determine the reason for being blacklisted, and resolve the issue. After this, you will need to look up the blacklist removal process for the particular list that your mail server is on, and follow it.

Hosted Mail Services

Hosted mail services fall into two broad categories. The first category is comprised of personal webmail providers. These service providers are widely known for their free service tiers, and usually provide paid options for hosting a custom email domain, supporting multiple users of a shared business account, and so on. They usually provide their own webmail interfaces and dedicated mobile apps.

A second category is mail delivery services. These providers are not necessarily in the personal email business, but instead provide API access for any software that needs to send mail in bulk, such as password change notifications or advertising campaigns. Usually, these services include dedicated mail server credentials, the relevant trust and filtering features, and a web dashboard to monitor your mail volume and any related issues. They are typically priced by usage.

This list is not exhaustive, but should provide an overview of the service landscape.

Conclusion

Although email is a fundamental internet technology, many cloud providers are reluctant to support self-hosted mail servers because of their inherent challenges. We generally recommend using an external provider to handle email for your cloud.

If you are determined to run your own mail server, you can see a comprehensive example in How To Configure a Mail Server Using Postfix, Dovecot, MySQL, and SpamAssasin.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the authors

Still looking for an answer?

Ask a questionSearch for more help

Was this helpful?
 
45 Comments
Leave a comment...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

There is also https://mailinabox.email/, a project I started to deploy a working mail server without the need (or even the possibility) to configure the system. It’s like an email appliance. It doesn’t solve all of the issues of running your own mail server, but it does solve a lot.

What is the minimum RAM required for your project to run, and do you have any intention of building a containerized version?

The recommendation is 768M. A containerized version would be nice, but I couldn’t get Docker to work and no one is working on it now as far as I know.

Thanks, looks good! I was looking for something that is innovative. I found a mailserver written in node! I tested it and it was nice but it has a few serious issues and limitations. Anyway tried and tested is good. At least I don’t have to spend a week studying arcane configuration files.

As of 2021-05-17 the following critical information is not in the article.

DigitalOcean does not support running an email server on their network in the slightest. DO has no postmaster and does not do anything to proactively maintain IP reputations.

So if a DO IP block gets blacklisted and your perfectly fine server is caught in the net then you are out of luck.

I have asked DO support to update the documentation on this page to be more honest about the challenges that running an email server in their network may bring about.

Would have thought that zoho.com deserved a mention at least. And Outlook.com haven’t offered service for custom domains for a while…

Don’t forget Webmail Lite! After using roundcube, I found it to be much more eye-pleasing and easier to setup and use.

PSA:

With Zoho, we’re receiving over 100 spam emails a day across our users. And the spam filtering options are dangerous when used, flagging a great deal of legitimate emails.

Unfortunately, this isn’t something you hear about until you look for it, but it’s not hard to find once you do. I’d advise avoiding Zoho.

Or Mailgun. It’s free and super easy to setup. Once done you can incorporate it to your gmail so you can send/receive email using your email@yourdomain.com : Setup Your Own Domain’s Email Accounts for Free via Mailgun and Gmail/Hotmail [Cloudways, ServerPilot, Digital Ocean, Vultr, Linode]

I run my own mail server(s) without any issues and whenever there’s an issue, it’s just “fun” to fix it :]

I agree! I ran into a few problems during set up, but after it was all said and done, the experience was great. I learned a lot during the process and continue to learn every day. My mail server has been up and running successfully, without any issues, for nearly a year now. No regrets!

I run my own mail server as well, and I agree - it is a challenge to configure properly. Getting Postfix and Dovecot talking to each other is a bit easier on Ubuntu thanks to the mail-stack-delivery package. I installed Roundcube in order to provide webmail access to other users, though I use IMAP myself.

Actually, the two most difficult aspects of setting things up was getting SpamAssassin configured correctly and getting the Thunderbird email client to use the correct IMAP/SMTP settings.

ikr I also want to run my own mail server would love it though!

How do I go about adding my Exchange Online MX record? I only see an option for gmail MX record?

EDIT Figured this out from an older comment thread. For anyone else doing this, in the MX hostname enter the Office 365 mail server with a dot at the end and set the priority to 0.

I run about 10 domains on a single $5 Ubuntu box on DO with Zpanel http://www.zpanelcp.com and so far no issues. I just do forwards with this which is super easy to setup and works well, never had any issues.

I am going to have to disagree. You can easily run your own mail-server, I do it for 150 people at work and yeah I am the solo IT guy. I spend 1 minute a day on average just making sure there’s nothing funky in log files…

There is however a giant learning curve. If you aren’t afraid of learning how email works then you have no problem at all. There are plenty of tutorials to follow. Also running your own mail server is the only scalable option… places that do hosted email often are $2/mailbox… for 150 that is $300/mo… Our server runs off of a $20 instance… Huge cost savings for a bit of work.

I ran a Zimbra mail server a while back with fail2ban preventing attacks but I still got hacked. Just didn’t seem worth the trouble. Turned it over to Google while you could still do free and have been good with that.

I’m using iRedMail as mailserver soulution and i’m pretty satisfied with it. Of couse, hosting your own mailserver is nothing for you if you do not have any idea how to handle it. But you can say this for everthing. I can also write an acticle thats called “Why You Should Not Run Your Own Web Server” or “Why You Should Not Run Your Own XYZ Server”.

If you let anything do others for you, you’ll learn absolutly nothing, and in my option thats the wrong way. Digital Ocean brings you a perfect platform to do what you want, try things out, and if it’s not working … jump back to a clean, fresh installed system, reachable from all over the world, and not only in your private home network.

So, thanks, Mitchell, for your tutorial, but please all of you try things out and learn how it works!

j2c skydriver

This is not a tutorial.

“Mail Servers Are Complex A typical mail server consists of many software components that provide a specific function.” Use iRedMail. If you can’t configure by yourself, iRedMail will do it for you. All you need is clean Ubuntu or another OS. Just run install script and reboot.

I disagree with you for this, it depends on your level of knowledge and experience running the show plus you must have enough resources to host the platform. I deployed multi-tenant Exchange Servers 2010 and 2013 without any issues having regional offices in one country.

I’ve used alot of your tutorials and usually love them, but with this i highly disagree, how about why telling people why they shouldn’t be using centralised services like gmail and why they should be using their own mail server

Andrew SB
DigitalOcean Employee
DigitalOcean Employee badge
December 17, 2014

Maybe that will be our next tutorial. =) The title is a bit tongue-in-cheek. It’s really just aiming to give people some insight to the complexities involved with running a mail server. Unfortunately, a lot of folks don’t understand what they’re in for when they set off on the task.

Hi,

If I don’t install the mail server, how do I get the magento to send email to customer once a transaction is made.

Kamal Nasser
DigitalOcean Employee
DigitalOcean Employee badge
December 18, 2014

Hi,

This tutorial talks about running a mail serve that is used to receive email (e.g. instead of Gmail, Outlook, or other similar services). You will need to install an MTA such as postfix to send email from your application/Magento. Just make sure that it’s listening on the loopback interface (127.0.0.1) and you should be OK.

If you’re using postfix, edit /etc/postfix/main.cf and set inet_interfaces = loopback-only. Don’t forget to restart postfix so that the changes take effect:

sudo service postfix restart

You can find what interface your mail server is listening on by running the following command:

sudo netstat -plutn | grep 25

The output should look like this:

tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2855/postfix

If the part in red is 127.0.0.1 or 127.0.1.1, then it’s listening on the loopback interface.

MandrillApp is a great alternative if you dont want to install a mailserver on your droplet. They offer a free plan wich allows you to send 12.000 per month. I have been using it for 6 months and it works just great :) Give it a try.

You just need to sign app for free, get an api key and set up your application to use mandrill smtp. In just 5 minutes you are up and running.

Misleading, this is for transactional emails only

This comment has been deleted

    After trying it out for myself and reading this article, I couldn’t agree more. Yes, it might be fun and so on, but if you’re not doing it seriously (company, emplayees etc). Otherwise I would strongly recommend using already built and managed systems, because it can get a mess and very sensitive data can be lost, corrupted. And actually after checking service providers, prices and options, simply I can’t find any other solution than going back to godaddy, because it just beats the price and offers. Although I hate service and that I can’t have my hands on everything as I could on DO, but…

    I’d rather spend up to $20 for two highly available mail servers for per month than to pay $3 or $5 per mailbox and be limited on storage space.

    All it took was Godaddy and Hostgator going down once last year for me to decide to run my own sites, databases, and email for myself and my customers on Digital Ocean and another cloud provider.

    And don’t get me started on my PBX :)

    I totally agree. I tried hosting my own and it was actually fairly simple to set up. It was great for a few months and then there was a problem. Luckily I was able to fix that in a few hours. Then six months later a problem popped up that I couldn’t google a fix for since I the only error I was getting was that email wasn’t coming through and it wasn’t going out either. Digging through logs didn’t provide any info either.

    So I gave up and switched to fastmail. I made the mistake of hosting my own for work related stuff so I have no clue how much money I lost while my email was out. It was a good learning experience and if I did it again I would just use it for shopping and family/facebook stuff.

    We are using Microsoft Office365 they have a very good customer support service.

    Russian Yandex is also good alternative for self hosted mail. Unlike Google they still have free plans.

    Thanks for share that fantastic alternative! The service is really awesome. It can handle more than one email in same account, even alias is possible.

    @mitchel: While it’s true that running your own mail server isn’t easy and that it is time consuming, I am still not convinced that I shouldn’t be doing it. Having my own mail server is as important as hot water. Free mail service isn’t really free-- you lose your privacy, control of who can and can’t contact you. So it’s my impression that you don’t run your own mail server and/or you believe that you have nothing to hide and the spooks are welcome to sift through your mail.

    Mitchell Anicas
    DigitalOcean Employee
    DigitalOcean Employee badge
    January 16, 2015

    If you are happy running your own mail server, that’s great! :)

    This article is clearly a marketing lie. If you own a VPS (wherever it is), you have the tech skills to set up your own mail server.

    You might consider that it’s not necessary a tech skill issue but more of a time / requirement / business issue. I have the tech skills and the will to set up a mail server and I did it. My problem lies with users and time. Some of my users expect webmail - I choose not to provide that due to resources/security concerns. For them and others I chose to use alternatives.

    E-mail server configuration can be a pain, especially if you want to do a good job and not just to “have it there and work”. And speaking of good job, that actually does not have a time limit - you can spend forever on a project and still not have it “perfectly” configured, where perfectly would include both mission critical/functional and for fun/nice to have requirements.

    Why, just why, Digital Ocean doesn’t have a regular Mail Service with simple forwarding just like a regular host like godaddy, hostgator, etc? Why do I have to choose to do either do it on my own or pay for a service ? Don’t they lose tons of customers because of that ?

    Because GoDaddy is a shared hosting provider and DigitalOcean offers virtual private servers (VPS).

    Well, if we may say that setting up and maintaining your own mail server is complicated and time-consuming, then why not to say same about web and database server for example? There is still a lot of shared hosting providers available, with easy maintenance of all server services, it a best choice for beginner.

    Great mail service: mailbox.org

    Tnx for great tutorial man. I thought i need mail server to run email on my domain name, and u just saved me aloooooot of time.

    Peace,!

    I’m an avid Digital Ocean user and have written two posts on this topic:

    1. How to Install Your Own Private E-mail Server in the Cloud and
    2. Why You Shouldn’t Host Your Own Email - for Geekwire - which covers additional ground to what’s covered above.

    I tried , I had succeeded but , in the end , i choose an economic (after 9 months of usage i could say it’s also reliable) host service at www.servermx.com. Too many daily issues, nice to solve at the beginning , but not compliant with my standard working day made of 16 hours :).

    Really, really thanks bro! All working now!

    Now for the reasons you would want to setup your own:

    • You maintain your privacy, if you can pull off setting one up. Yes, I’m sure stuff is scooping all the e-mails up that go over the internet anyway, on the backbones, but you won’t be having your stuff read by bots for targeted advertising. And even then, if you transmit over SSL, less of a chance of things getting it off of the backbones.
    • You maintain control, the server is yours or a VPS you’re paying for.
    • You can use as many domains as you want, and give out as many e-mails if you want to friends, have encrypted mailboxes, SSL certs, etc without paying for something like Google Apps or Outlook 365
    • It’s educational: Personally I think it’s great for people to learn how this stuff works. That’s one of the main issues with the internet today: No one (excluding techs and IT, and even then a lot of them have no clue), including the people making laws on it here in the US, understand how anything on it works or why it works.

    I’m not saying office 365/google apps/gmail/etc is bad, to each their own, but I think it’s very beneficial and wise to learn how this stuff works and exactly what you’re getting into by using it. I even use Google Apps currently because that’s what we had for an old business I was apart of, and at work we use Office 365, it’s a huge timesaver in places like this. But personally? I’m switching off google apps (since the business doesn’t do anything, and it’s just two of us), and setting up my own here pretty soon.

    In response to coreinsanity, I have added a small tutorial below, so you can enjoy his listed benefits.

    This post should approach the reason you would want to.

    Ubuntu with Postfix and Mutt will get you quick email service, if all you are looking for is me@myaddress.com or something similar.

    I would also just like to add that while mail servers can be very complex and confusing, there are also very simple options available. Options that you can complete in just a few minutes and have your own mail server up and running with full root access and all traffic encrypted. I will show you how in 11 (some are not required, like the Enjoy step: ) steps that can be done within an hour!

    For example, determine if you think to you could complete the tasks below:

    1. Rent a digitalocean box for 5 bucks a month.
    2. Spin up a Ubuntu Server droplet (latest edition or whatever you like).
    3. After you have a user for yourself with sudo (root privileges), type sudo apt-get update, followed by sudo apt-get upgrade.
    4. At this point, make sure you have a domain purchased that you would like to use, or me, it would be pax(linux user you created)@myexampledomain.com(your domain, or IP.
    5. When that is complete and you have a user with sudo ability, say mine is called pax. Type sudo apt-get install mail-stack-delivery, wait for installation to complete, fill in setup instructions on screen.
    6. Reboot.
    7. Download Thunderbird and create a custom mail account using the email above (linux user@domain.com)
    8. You now have your own, super awesome, encrypted mail server ready for use. Send some test emails now!
    9. Finally if you want to add friends, family, or anyone to use your mail server, just create them a linux user, let them set the password, or set it for them and allow them to change it.
    10. The last thing is to make sure you delete your old, slow data sized Gmail, Yahoo, or other account, get your dignity and respect back with no help from Google!
    11. Enjoy

    Post instructions opinion:

    I do not like the fact that the top result for setting up a mail server, discourages people from trying, because it is too hard, and not worth it. Isn’t that why we use Digital Ocean, so we can learn, develop, and create stuff on our own root access server. Seems counter productive to me.

    I have learned so much from installing more complex programs on my linux server box. It is incredibly satisfying when done, and I had a really fun time learning how to do it.

    Don’t be discouraged, you can do it!!!

    I’m gonna go ahead and throw my humble cents here.

    I’ve been trying to migrate from big hosting companies to build my own solution. I’ve been doing some math and I do have some great numbers that would allow me to save some good cash. Right now I spend $20 a month on a big company for hosting 6 wordpress sites and some other 2 or 3 html sites that get no relevant hits. This are my current numbers:

    • The sites get hit like 1000 times a day IN TOTAL.
    • I end up using roughly 15GB to 20GB a month of outbound bandwidth and maybe 1GB or 2GB of inbound bandwidth.
    • My current HD use is -> Usage: 10.87 GB / 100 GB (10.87%). Of those 10.87GB, 9GB are used by email.

    As you can see, I’m over paying for resources I don’t need, the thing is, this guys have a really great webmail app and the email is almost flawless.

    But I had decided that I shouldn’t be throwing $20 a month anymore to the toilet and that I should move everything to a VPS. I started looking for solutions (I use DigitalOcean since some time ago but only for testing), EC2, Droplets, and doing so I came to the awful truth that my main problem was email related. Thing is, now I’m thinking if I should run my own mail server or not, and reading this article I came to the conclusion that I shouldn’t because it is actually too much hassle, because what I’m trying to save in money will be spent on time and we know which one weights the heavier.

    I’m going to start trying Zoho Mail and see how it goes, it gets you 25 accounts for free so that’s great. Paying $2, or even $1 per account is a no no for me because I have over 100 email accounts so might as well then stay with my current provider.

    Your thoughts?

    Thanks.

    My 2 cents – avoid Zoho.

    I have a comment somewhere else on this page explaining it further, but basically, we are being flooded with hundreds of spam emails a day since switching to zoho.

    If you don’t want to run an email server, you can use an email forward service such as mailgun to create any email@yourdomain.com you want and redirect them to your own gmail/hotmail inbox. Once authorized via SMTP, you will be able to send/receive emails securely under your email@yourdomain.com via gmail.

    Check out this guide to learn how to configure mailgun and your domain DNS for your own email addresses @yourdomain.com. It’s pretty simple and free versus setting up an email server.

    Why don’t I been pay for my refferal? I earned $750 but it’s pending. I don’t know what happened?

    It is 2017 now anything changed since then? I am tempted to host one and looking for better options.

    just install mailcow, config your SPF,DKIM ta-daaa

    What if I simply wanted to set up email forwarding? For example, emails sent to info@example.com would be forwarded to sam@gmail.com, and sam@gmail.com could use his Gmail account to send emails as info@example.com. What kind of setup would I be looking at?

    If you have a Windows machine to serve from, you can use hMailserver. I cannot recommend it enough. Just make sure that the settings are secure - specifically that users have to authenticate before sending mail.

    I have been looking and found a couple of easy-ish Linux-based alternatives on github, but nothing as mature and complete.

    However I am maintaining a Windows server only for hMailserver. I hope that I can find a cloud-based provider and migrate to that, then shut down that server. I just want IMAP and SMTP (POP I guess but I’m not really using it).

    For webmail I found RainLoop which is looks really good, is responsive and a pleasure to set up.

    Funny, do you have any contract with those email providers? You know, you need money for those. Each account cost you $$$. You prefer we don’t setup a mail server because that means less trouble for you.

    Let me think: 5 dollars for 100 accounts or 5 dollars per account for google suite? Do the math.

    I’ve been running postfix / dovecot / spamassasin for years now. Sure you need to be an experienced Linux admin to get familiar with thae various components but once you do there’s hardly any maintenance. Only me and my immediate family use it and it just works!

    Mitchell, I just read this article and realize I don’t need mail server setup. So, I have a question regarding this. I run a website. So, I need to create a few domain emails. Some people may contact me using my website contact form and I may reply to their email. Fairly less than 5 email send/receive may occur.

    So, Which setup is good for this? N.B: I am looking for a free alterantive and want to get advice from you.

    Yes, self hosting mail is a PITA. Go for G Suite or O365 and you won’t regret!

    As of 2021-05-17 the following critical information is not in the article.

    DigitalOcean does not support running an email server in the slightest. DO has no postmaster and does not do anything to proactively maintain IP reputations.

    So if a DO IP range gets blacklisted and your perfectly fine server is caught in the net then you are out of luck.

    This comment has been deleted

      I think I have just discovered why DO doesn’t recommend running your own mail server. It’s not because it’s too hard (obvs why would you try to run droplets if it’s too hard to config a mail server).

      An entire DO AS IP range has been blacklisted so cannot send email to outlook / hotmail now. My droplet IP address and my mail server is not the problem. It’s the DO subnet. They need to work to ensure they don’t have spammers using DO droplets which results in the rest of us being unable to run legit services, but their support simply says “hey ho”. :(

      Port 25 comes standard with any decent hosting solution. The losers at Digital Ocean want to get super rich and have blocked port 25 for ALL accounts (just in case so that their network doesn’t get blacklisted). Please do not believe idiots like Anicas who are getting paid to discourage you from running your own mail server.

      Try DigitalOcean for free

      Click below to sign up and get $200 of credit to try our products over 60 days!

      Sign up

      Join the Tech Talk
      Success! Thank you! Please check your email for further details.

      Please complete your information!

      Become a contributor for community

      Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

      DigitalOcean Documentation

      Full documentation for every DigitalOcean product.

      Resources for startups and SMBs

      The Wave has everything you need to know about building a business, from raising funding to marketing your product.

      Get our newsletter

      Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

      New accounts only. By submitting your email you agree to our Privacy Policy

      The developer cloud

      Scale up as you grow — whether you're running one virtual machine or ten thousand.

      Get started for free

      Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

      *This promotional offer applies to new accounts only.