Page MenuHomeDevCentral

Update mailer configuration
Open, NormalPublic

Description

Phabricator updated configuration format for mailer, to use a JSON document.

An example for Mailgun is the configuration for DevCentral:

[                                                      
  {                                                    
    "key": "nasqueron-mailgun",                        
    "type": "mailgun",                                 
    "options": {                                       
      "domain": "devcentral.nasqueron.org",            
      "api-key": "key-00000000000000"
    }                                                  
  }                                                    
]

We need to generate such document from environment variables in the setup container script,
then provide it using ./bin/config set --stdin cluster.mailers < /tmp/mailers.json

Key could be "default-<mailer type>".

Related Objects

Event Timeline

dereckson triaged this task as High priority.Dec 6 2019, 07:53
dereckson created this task.
dereckson updated the task description. (Show Details)
dereckson lowered the priority of this task from High to Normal.Mar 28 2022, 22:09

Documentation source: https://devcentral.nasqueron.org/book/phabricator/article/configuring_outbound_email/

Two templates would be nice depending of how Phabricator is configured:

  • mailgun (for most of our Phabricator instances, this task)
  • smtp (we plan to migrate to our SMTP for DevCentral, a new follow-up task to create)

For DevCentral, we can use SMTP configuration and create at the same time a mailbox for inbound email too: https://devcentral.nasqueron.org/book/phabricator/article/configuring_inbound_email/