Page MenuHomePhabricator

Allow "SMTP" and "Sendmail" mailers to have "Message-ID" behavior configured in "cluster.mailers"
ClosedPublic

Authored by epriestley on Mar 14 2019, 1:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 3:00 PM
Unknown Object (File)
Tue, Apr 16, 10:26 PM
Unknown Object (File)
Sat, Apr 13, 12:46 AM
Unknown Object (File)
Fri, Mar 29, 1:23 AM
Unknown Object (File)
Wed, Mar 27, 6:51 PM
Unknown Object (File)
Mar 16 2024, 4:55 AM
Unknown Object (File)
Mar 14 2024, 2:03 PM
Unknown Object (File)
Feb 8 2024, 5:09 PM
Subscribers
None

Details

Summary

Fixes T13265. See that task for discussion. Briefly:

  • For mailers that use other mailers (SMTP, Sendmail), optionally let administrators set "message-id": false to improve threading behavior if their local Postfix is ultimately sending through SES or some other mailer which will replace the "Message-ID" header.

Also:

  • Postmark is currently marked as supporting "Message-ID", but it does not actually support "Message-ID" on secure.phabricator.com (mail arrives with a non-Phabricator message ID). I suspect this was just an oversight in building or refactoring the adapter; correct it.
  • Remove the "encoding" parameter from "sendmail". It think this was just missed in the cleanup a couple months ago; it is no longer used or documented.
Test Plan

Added and ran unit tests. (These feel like overkill, but this is super hard to test on real code.) See T13265 for evidence that this overall approach improves behavior.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Add SendGrid SMTP to the blocklist.
  • Simplify negative/default implementations of supportsMessageIDHeader().
amckinley added inline comments.
src/docs/user/configuration/configuring_outbound_email.diviner
467

Drop the rest of this sentence after "will be respected or not".

This revision is now accepted and ready to land.Mar 15 2019, 11:23 PM