question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Send email via SES VPCEndpoint

See original GitHub issue

Is your feature request related to a problem? Please describe.

VPC Endpoints for SES were announced recently.

However, if you try to send an email via boto3 SES, the client will use the default URL (email.eu-west-1.amazonaws.com), which doesn’t connect to the VPC Endpoint (it will time out because there is no route to it in the private subnet)

To connect to the VPC Endpoint, we have to use a URL like ‘email-smtp.eu-west-1.amazonaws.com’ (the private DNS name of the endpoint)

However, if you specify this URL in the endpoint_url param to the Boto3 constructor, it will fail with:

Invalid endpoint: email-smtp.eu-west-1.amazonaws.com

Describe the solution you’d like

I would like to be able to send email via the VPC Endpoint, which I suspect will mean being able to override the endpoint_url.

If I have misunderstood anything regarding usage of boto3, then please do clarify.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
startin71commented, May 24, 2021

Hello,

is there any progress in the implementation of SES Endpoint using SDK? Or SES VPC Endpoint is still only for SMTP?

Thank you!

1reaction
tim-finnigancommented, Jan 28, 2022

I think this should be a feature request to the service team as @swetashre mentioned. So I created a new issue in our shared SDK repository to track this: https://github.com/aws/aws-sdk/issues/181

I reached out to the SES team and will update that issue when I hear back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting up VPC endpoints with Amazon SES
The process of setting up a VPC endpoint to use with Amazon SES consists of a few separate steps. First, you have to...
Read more >
Attach SES endpoint to VPC and send out emails ... - YouTube
Many Amazon SES customers have corporate policies in place that limit the ability of their internal systems to connect to the public ...
Read more >
amazon-ses-developer-guide/send-email-set-up-vpc ... - GitHub
The process of setting up a VPC endpoint to use with Amazon SES consists of a few separate steps. First, you have to...
Read more >
how to use vpc endpoint with ses in serverless - Stack Overflow
Hi Shubham, just wondering where the Serverless part comes in as you've stated that you goal is to send an email through SES...
Read more >
Emails Are Not Received in AWS SES SMTP Server When ...
Confirm the email is successfully sent when VPC endpoint is not configured (and inbound rule for SMTP port in Tableau role is applied...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found