Page MenuHomePhabricator

Use "cluster.mailers" if it is configured
ClosedPublic

Authored by epriestley on Feb 6 2018, 2:52 PM.
Tags
None
Referenced Files
F18857562: D19005.diff
Sat, Nov 1, 4:02 PM
F18849075: D19005.diff
Thu, Oct 30, 7:39 AM
F18777974: D19005.diff
Sat, Oct 11, 7:00 AM
F18755662: D19005.id45570.diff
Sun, Oct 5, 6:49 AM
F18737554: D19005.id.diff
Oct 1 2025, 11:20 AM
F18730659: D19005.id45570.diff
Sep 30 2025, 1:27 PM
F18656032: D19005.id.diff
Sep 22 2025, 9:18 PM
F18655881: D19005.id45604.diff
Sep 22 2025, 8:56 PM
Subscribers
None

Details

Summary

Depends on D19004. Ref T13053. Ref T12677. If the new cluster.mailers is configured, make use of it. Also use it in the Sengrid/Mailgun inbound stuff.

Also fix a bug where "Must Encrypt" mail to no recipients could fatal because no $mail was returned.

Test Plan

Processed some mail locally. The testing on this is still pretty flimsy, but I plan to solidify it in an upcoming change.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

amckinley added inline comments.
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
485

This works because we don't invoke validateOptions() before invoking setOptions(), right?

This revision is now accepted and ready to land.Feb 7 2018, 8:43 PM
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
485

The top-level shared stuff (key, type, priority) is a level above options. setOptions() will validate options, but "options" only has mailer-specifc stuff (api key, domain, username, etc.), not shared stuff.

This revision was automatically updated to reflect the committed changes.