[GH-ISSUE #4192] [bug]: how to use mailer credential aws ses for mail provider? #1515

Open
opened 2026-03-16 20:39:33 +03:00 by kerem · 2 comments
Owner

Originally created by @jams008 on GitHub (Jul 17, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4192

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Hi, i have problem to use ses aws credential for email login in environment config.
I get this error if I use a config like this.

MAILER_SMTP_URL=smtps://********:*****@email-smtp.us-east-1.amazonaws.com

Error:

Backend Server | Error from sendEmail: Error: getaddrinfo ENOTFOUND ***************
Backend Server |     at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
Backend Server |   errno: -3008,
Backend Server |   code: 'EDNS',
Backend Server |   syscall: 'getaddrinfo',
Backend Server |   hostname: '***********',
Backend Server |   command: 'CONN'
Backend Server | }
Backend Server | [Nest] 70  - 07/16/2024, 10:59:45 AM   ERROR [ExceptionsHandler] email/failed
Backend Server | Error: email/failed
Backend Server |     at throwErr (/usr/src/app/packages/hoppscotch-backend/dist/utils.js:15:11)
Backend Server |     at MailerService.sendEmail (/usr/src/app/packages/hoppscotch-backend/dist/mailer/mailer.service.js:47:41)
Backend Server |     at async AuthService.signInMagicLink (/usr/src/app/packages/hoppscotch-backend/dist/auth/auth.service.js:159:9)
Backend Server |     at async AuthController.signInMagicLink (/usr/src/app/packages/hoppscotch-backend/dist/auth/auth.controller.js:48:

I also tried using a custom email config. I did not experience the 500 status code error and the error was not in the log. but the login email was not sent.

thanks

Steps to reproduce

  1. Set config env to provider login via email
  2. add MAILER_SMTP_URL using aws ses credential
  3. test login via email

Environment

Production

Version

Self-hosted

Originally created by @jams008 on GitHub (Jul 17, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4192 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior Hi, i have problem to use ses aws credential for email login in environment config. I get this error if I use a config like this. ``` MAILER_SMTP_URL=smtps://********:*****@email-smtp.us-east-1.amazonaws.com ``` Error: ``` Backend Server | Error from sendEmail: Error: getaddrinfo ENOTFOUND *************** Backend Server | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) { Backend Server | errno: -3008, Backend Server | code: 'EDNS', Backend Server | syscall: 'getaddrinfo', Backend Server | hostname: '***********', Backend Server | command: 'CONN' Backend Server | } Backend Server | [Nest] 70 - 07/16/2024, 10:59:45 AM ERROR [ExceptionsHandler] email/failed Backend Server | Error: email/failed Backend Server | at throwErr (/usr/src/app/packages/hoppscotch-backend/dist/utils.js:15:11) Backend Server | at MailerService.sendEmail (/usr/src/app/packages/hoppscotch-backend/dist/mailer/mailer.service.js:47:41) Backend Server | at async AuthService.signInMagicLink (/usr/src/app/packages/hoppscotch-backend/dist/auth/auth.service.js:159:9) Backend Server | at async AuthController.signInMagicLink (/usr/src/app/packages/hoppscotch-backend/dist/auth/auth.controller.js:48: ``` I also tried using a custom email config. I did not experience the 500 status code error and the error was not in the log. but the login email was not sent. thanks ### Steps to reproduce 1. Set config env to provider login via email 2. add MAILER_SMTP_URL using aws ses credential 3. test login via email ### Environment Production ### Version Self-hosted
Author
Owner

@aryaag commented on GitHub (Sep 13, 2024):

@jams008 I have shared my config in this comment with common errors. Maybe it will help you.

<!-- gh-comment-id:2348834444 --> @aryaag commented on GitHub (Sep 13, 2024): @jams008 I have shared my config [in this comment](https://github.com/hoppscotch/hoppscotch/issues/3257#issuecomment-2348832805) with common errors. Maybe it will help you.
Author
Owner

@jams008 commented on GitHub (Sep 17, 2024):

Thanks for the repley

<!-- gh-comment-id:2354401277 --> @jams008 commented on GitHub (Sep 17, 2024): Thanks for the repley
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1515
No description provided.