Digital Ocean SMTP Blocked

A guide to know and resolve digital ocean SMTP or Port 25 block.

Friday, Aug 12, 2022

SMTP port 25 which helps you to send emails, is blocked on all Digital Ocean Droplets for new accounts to prevent spam and other abuses of Digital Ocean’s platform.

Dedicated cloud email deliverability platforms are better at handling deliverability factors like IP reputation and sender reputation.

Mailazy is a cloud email delivery platform that helps you send your transactional emails without worrying about the technical challenges associated with SMTP.

Getting started with Mailazy

Account Creation:
  1. Navigate to the Sender Authentication of your Mailazy dashboard.

  2. Add the sender domain that you wish to send emails from, for example, if you would like to send emails from then enter and proceed with the verification. You may skip this step if you already have a sender domain configured and authenticated.

  3. Navigate to the Access Keys, Click on Create Access Key to create an API Key and secret so you can authenticate your send email requests.

  4. Start integration with the application, Navigate to Integration Guide and select your preferred way to integrate either via email API or SMTP.

You can also check out client libraries and detailed instructions on integration on our docs

  1. Check the status and other details of your email message in the Logs tab of your Mailazy dashboard.

Send Test Email:


Set the following SMTP configuration in your application.

Server/Host: Port: 587 Username: Access Key generated from the dashboard. Password: Access Secret generated from the dashboard.

Email API:

Send an email by making an HTTP POST request to the Mailazy Email API at

curl --location --request POST '' \
--header 'x-api-key: {your API Key without bracket}' \
--header 'x-api-secret: {your API Secret without bracket}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "To": [
    "From": "any_alias@{your sender domain without bracket}",
    "Subject": "Hello World!",
    "Content": [
            "Type": "text/plain",
            "Value": "hello world"
            "Type": "text/html",
            "Value": "<b>hello world<b/>"

Please make sure that you insert your API Key and Secret and to value with your own. The from address should be the same verified domain that you have verified on your Mailazy dashboard.