How do I remove the restriction on port 25 from my Lightsail instance?

3 minute read
0

I can't send emails over port 25 from my Amazon Lightsail instance.

Short description

By default, AWS blocks outbound traffic on port 25 on all Lightsail instances. To send outbound traffic on port 25, you must submit a request to AWS to remove the restriction.

Note: You can add or remove reverse DNS (rDNS) restrictions on an Amazon Elastic Compute Cloud (Amazon EC2) instance. However, you can't add or remove rDNS restrictions on Lightsail instances. For more information, see Use reverse DNS for email applications.

Resolution

To request that AWS remove the port 25 restriction on your Lightsail instance, complete the following steps:

  1. Open the Amazon Lightsail console as the AWS account root user.
  2. Open the Request to remove email sending limitations form.
  3. Enter your email address to receive updates about the request. Your account email address is the default value.
  4. In the Use case description field, enter your use case. Include the following details:
    A clear and detailed use case for your Lightsail instance to send emails.
    A statement that outlines your plan to confirm that your account doesn't send unwanted emails.
    Confirmation that the request is for the Lightsail instance. You can also provide the Lightsail instance name.
    The AWS Region where your Lightsail instance is hosted.
  5. (Optional) In the Elastic IP address field, enter the static IP address that you use to send outbound emails. This is the static IP address that you attached to your instance. You can enter up to two static IP addresses.
  6. (Optional) In the Reverse DNS record field, enter any rDNS records that AWS must associate with the Elastic IP addresses. When you send emails, it's a best practice to set up an rDNS record so that outbound emails aren't flagged as spam. Make sure to link the rDNS record to your static IP address with a DNS A record. For more information, see Configure reverse DNS for an email server on your Amazon Lightsail instance.
  7. Choose Submit.
    Note: If you have instances in more than one Region, then submit a separate request for each Region.

After you submit the request form, you receive an email with the Request ID. It might take up to 48 hours to process your request. If your request is approved, then you receive an email to notify you that the port 25 restriction is removed. If you don't receive an update within 48 hours, then reply to the initial email that you received.

Related information

How do I remove the restriction on port 25 from my Amazon EC2 instance or Lambda function?

AWS OFFICIAL
AWS OFFICIALUpdated 17 days ago
2 Comments

I did exactly this and it was rejected. Using a domain that has been successfully hosting email for over 10 years without being denylisted or having a bad reputation. Very light traffic. Very tight configuration (20+ year cyber security veteran). What exactly is the criteria for allowing outbound SMTP?

replied 4 months ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
MODERATOR
replied 4 months ago