mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 23:40:57 +01:00
Clarify "metamta.default-address" instructions and lock the option
Summary: This option no longer needs to be configured if you configure inbound mail (and that's the easiest setup approach in a lot of cases), so stop telling users they have to set it up. Test Plan: Read documentation and configuration help. Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D20104
This commit is contained in:
parent
113a2773dd
commit
55286d49e8
2 changed files with 44 additions and 10 deletions
|
@ -182,6 +182,25 @@ EODOC
|
|||
$mailers_description = $this->deformat(pht(<<<EODOC
|
||||
Define one or more mail transmission services. For help with configuring
|
||||
mailers, see **[[ %s | %s ]]** in the documentation.
|
||||
EODOC
|
||||
,
|
||||
PhabricatorEnv::getDoclink('Configuring Outbound Email'),
|
||||
pht('Configuring Outbound Email')));
|
||||
|
||||
$default_description = $this->deformat(pht(<<<EODOC
|
||||
Default address used as a "From" or "To" email address when an address is
|
||||
required but no meaningful address is available.
|
||||
|
||||
If you configure inbound mail, you generally do not need to set this:
|
||||
Phabricator will automatically generate and use a suitable mailbox on the
|
||||
inbound mail domain.
|
||||
|
||||
Otherwise, this option should be configured to point at a valid mailbox which
|
||||
discards all mail sent to it. If you point it at an invalid mailbox, mail sent
|
||||
by Phabricator and some mail sent by users will bounce. If you point it at a
|
||||
real user mailbox, that user will get a lot of mail they don't want.
|
||||
|
||||
For further guidance, see **[[ %s | %s ]]** in the documentation.
|
||||
EODOC
|
||||
,
|
||||
PhabricatorEnv::getDoclink('Configuring Outbound Email'),
|
||||
|
@ -192,7 +211,9 @@ EODOC
|
|||
->setHidden(true)
|
||||
->setDescription($mailers_description),
|
||||
$this->newOption('metamta.default-address', 'string', null)
|
||||
->setDescription(pht('Default "From" address.')),
|
||||
->setLocked(true)
|
||||
->setSummary(pht('Default address used when generating mail.'))
|
||||
->setDescription($default_description),
|
||||
$this->newOption(
|
||||
'metamta.one-mail-per-recipient',
|
||||
'bool',
|
||||
|
|
|
@ -47,18 +47,31 @@ not. For more information on using daemons, see
|
|||
@{article:Managing Daemons with phd}.
|
||||
|
||||
|
||||
Basics
|
||||
======
|
||||
Outbound "From" and "To" Addresses
|
||||
==================================
|
||||
|
||||
Before configuring outbound mail, you should first set up
|
||||
`metamta.default-address` in Configuration. This determines where mail is sent
|
||||
"From" by default.
|
||||
When Phabricator sends outbound mail, it must select some "From" address to
|
||||
send mail from, since mailers require this.
|
||||
|
||||
If your domain is `example.org`, set this to something
|
||||
like `noreply@example.org`.
|
||||
When mail only has "CC" recipients, Phabricator generates a dummy "To" address,
|
||||
since some mailers require this and some users write mail rules that depend
|
||||
on whether they appear in the "To" or "CC" line.
|
||||
|
||||
Ideally, this should be a valid, deliverable address that doesn't bounce if
|
||||
users accidentally send mail to it.
|
||||
In both cases, the address should ideally correspond to a valid, deliverable
|
||||
mailbox that accepts the mail and then simply discards it. If the address is
|
||||
not valid, some outbound mail will bounce, and users will receive bounces when
|
||||
they "Reply All" even if the other recipients for the message are valid. In
|
||||
contrast, if the address is a real user address, that user will receive a lot
|
||||
of mail they probably don't want.
|
||||
|
||||
If you plan to configure //inbound// mail later, you usually don't need to do
|
||||
anything. Phabricator will automatically create a `noreply@` mailbox which
|
||||
works the right way (accepts and discards all mail it receives) and
|
||||
automatically use it when generating addresses.
|
||||
|
||||
If you don't plan to configure inbound mail, you may need to configure an
|
||||
address for Phabricator to use. You can do this by setting
|
||||
`metamta.default-address`.
|
||||
|
||||
|
||||
Configuring Mailers
|
||||
|
|
Loading…
Reference in a new issue