Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Sendgrid to SES #1

Open
nigeljonez opened this issue Oct 6, 2018 · 4 comments
Open

Migrate from Sendgrid to SES #1

nigeljonez opened this issue Oct 6, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request outbound-email

Comments

@nigeljonez
Copy link
Member

Sendgrid is becoming problematic due to reputation issues (Spamhaus) and resulting delivery reliability.

Plan: Migrate from Sendgrid to SES

Blocking issues:

  • Backscatter from alaveteli bounce setting
  • Inability to tag certain e-mails with SES ConfigurationSets
  • Postfix configuration accepting invalid hashes
@nigeljonez nigeljonez added enhancement New feature or request inbound-email labels Oct 6, 2018
@nigeljonez nigeljonez self-assigned this Oct 6, 2018
@nigeljonez
Copy link
Member Author

nigeljonez commented Oct 6, 2018

Although the backscatter hasn't caused us problems, implementing SES means we should also tackle it by avoiding Alaveteli softbounces, our sources appear to be:

Source Current Proposed
Invalid To: addresses that don't match a request Route to holding_pen pgsql Lookup view to validate prefix-id-idhash combinations and hard-reject if invalid
Requests marked authority_only Default is to software bounce Code change to set holding_pen as default, and DB migration to retire bounce
Old requests Migrated to authority_only (old months old), Migrated to nobody (very_old months old) (src) No action required, defaulting to holding_pen will avoid bounces

@nigeljonez
Copy link
Member Author

The issue with e-mails to Ministers may be related, in case it is, this is now high priority.

nigeljonez added a commit to nigeljonez/alaveteli that referenced this issue Oct 8, 2018
- Tag outgoing e-mails to agencies with a SES-CONFIGURATION-SET
- Change to bounce handling to avoid software bounces.

Resolves fyiorgnz/alaveteli#1
nigeljonez added a commit to nigeljonez/alaveteli that referenced this issue Oct 8, 2018
- Tag outgoing e-mails to agencies with a SES-CONFIGURATION-SET
- Change to bounce handling to avoid software bounces.

Resolves fyiorgnz/alaveteli#1
@olineham
Copy link
Contributor

Backscatter problem has been temporarily solved by updating all requests from bounce to holding_pen. Sendgrid stats show the huge surge of blocks/bounces and overall volume has been eliminated. This is at the expense of a big increase in the number of holding pen emails to deal with. I've opened #8 to discuss longer term options.

@olineham
Copy link
Contributor

olineham commented Oct 16, 2018

Inability to tag certain e-mails with SES ConfigurationSets: is this truly a blocker for SES migration? A single configuration and no tagging is already the situation with Sendgrid. Certainly good to have for SNS but we'd be no worse off than we were before without it.

Logging, on the other hand, is an absolute requirement. We need to keep evidence (even if found by manual search) whether a given outgoing email was delivered.

Postfix config accepting invalid hashes: also not a blocker I think since backscatter is gone (in the short term). I've opened #9 for this as an independent enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request outbound-email
Projects
None yet
Development

No branches or pull requests

2 participants