passwordless-server icon indicating copy to clipboard operation
passwordless-server copied to clipboard

PAS-452 | Remove Postmark

Open jonashendrickx opened this issue 7 months ago • 3 comments

Ticket

Description

This pull request removes support for Postmark.

Any e-mail provider, including Postmark, can still continue to be configured using SMTP. Read more here.

Shape

Features:

  • Allow configuration of an ordered list of mail providers.
  • Can combine multiple mail providers of the same type, i.e. AWS. For example, can be used if one region is down, and fall back to using a different region. This is purely an example, as not every mail provider could support this out of the box.
  • When no mail provider is configured, use the FileMailProvider
  • Allow updating the provider configurations without having to restart the application.

In the example below, we're able to attempt to send e-mails first using AWS SES using region us-west-2, if this fails, we fall back to AWS SES using region us-east-2. If that again fails, we attempt to send e-mails using SendGrid. Please note the example is purely hypothetical and ignores any vendor specific features such as the availability zones with redundant connections with AWS SES to guarantee minimum down-time.

If all configured attempts fail, an error will be thrown by the back-end.

  "Mail": {
    "From": "[email protected]",
    "Providers": [
      {
        "Name": "aws",
        "AccessKey": "aws_access_key_id",
        "SecretKey": "aws_secret_key",
        "Region": "us-west-2"
      },
      {
        "Name": "aws",
        "AccessKey": "aws_access_key_id",
        "SecretKey": "aws_secret_key",
        "Region": "us-east-1"
      },
      {
        "Name": "sendgrid",
        "ApiKey": "sendgrid_api_key"
      }
    ]
  },

Screenshots

Checklist

I did the following to ensure that my changes were tested thoroughly:

  • __

I did the following to ensure that my changes do not introduce security vulnerabilities:

  • __

jonashendrickx avatar Jul 13 '24 05:07 jonashendrickx