Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorMetaMTAConfigOptions.php
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | |||||
Adapter class to use to transmit mail to the MTA. The default uses | Adapter class to use to transmit mail to the MTA. The default uses | ||||
PHPMailerLite, which will invoke "sendmail". This is appropriate if sendmail | PHPMailerLite, which will invoke "sendmail". This is appropriate if sendmail | ||||
actually works on your host, but if you haven't configured mail it may not be so | actually works on your host, but if you haven't configured mail it may not be so | ||||
great. A number of other mailers are available (e.g., SES, SendGrid, SMTP, | great. A number of other mailers are available (e.g., SES, SendGrid, SMTP, | ||||
custom mailers). This option is deprecated in favor of 'cluster.mailers'. | custom mailers). This option is deprecated in favor of 'cluster.mailers'. | ||||
EODOC | EODOC | ||||
)); | )); | ||||
$placeholder_description = $this->deformat(pht(<<<EODOC | |||||
When sending a message that has no To recipient (i.e. all recipients are CC'd), | |||||
set the To field to the following value. If no value is set, messages with no | |||||
To will have their CCs upgraded to To. | |||||
EODOC | |||||
)); | |||||
$public_replies_description = $this->deformat(pht(<<<EODOC | $public_replies_description = $this->deformat(pht(<<<EODOC | ||||
By default, Phabricator generates unique reply-to addresses and sends a separate | By default, Phabricator generates unique reply-to addresses and sends a separate | ||||
email to each recipient when you enable reply handling. This is more secure than | email to each recipient when you enable reply handling. This is more secure than | ||||
using "From" to establish user identity, but can mean users may receive multiple | using "From" to establish user identity, but can mean users may receive multiple | ||||
emails when they are on mailing lists. Instead, you can use a single, non-unique | emails when they are on mailing lists. Instead, you can use a single, non-unique | ||||
reply to address and authenticate users based on the "From" address by setting | reply to address and authenticate users based on the "From" address by setting | ||||
this to 'true'. This trades away a little bit of security for convenience, but | this to 'true'. This trades away a little bit of security for convenience, but | ||||
it's reasonable in many installs. Object interactions are still protected using | it's reasonable in many installs. Object interactions are still protected using | ||||
Show All 40 Lines | return array( | ||||
->setHidden(true) | ->setHidden(true) | ||||
->setDescription($mailers_description), | ->setDescription($mailers_description), | ||||
$this->newOption( | $this->newOption( | ||||
'metamta.default-address', | 'metamta.default-address', | ||||
'string', | 'string', | ||||
'noreply@phabricator.example.com') | 'noreply@phabricator.example.com') | ||||
->setDescription(pht('Default "From" address.')), | ->setDescription(pht('Default "From" address.')), | ||||
$this->newOption( | $this->newOption( | ||||
'metamta.domain', | |||||
'string', | |||||
'phabricator.example.com') | |||||
->setDescription(pht('Domain used to generate Message-IDs.')), | |||||
$this->newOption( | |||||
'metamta.one-mail-per-recipient', | 'metamta.one-mail-per-recipient', | ||||
'bool', | 'bool', | ||||
true) | true) | ||||
->setLocked(true) | ->setLocked(true) | ||||
->setBoolOptions( | ->setBoolOptions( | ||||
array( | array( | ||||
pht('Send Mail To Each Recipient'), | pht('Send Mail To Each Recipient'), | ||||
pht('Send Mail To All Recipients'), | pht('Send Mail To All Recipients'), | ||||
Show All 40 Lines | return array( | ||||
$this->newOption('metamta.insecure-auth-with-reply-to', 'bool', false) | $this->newOption('metamta.insecure-auth-with-reply-to', 'bool', false) | ||||
->setBoolOptions( | ->setBoolOptions( | ||||
array( | array( | ||||
pht('Allow Insecure Reply-To Auth'), | pht('Allow Insecure Reply-To Auth'), | ||||
pht('Disallow Reply-To Auth'), | pht('Disallow Reply-To Auth'), | ||||
)) | )) | ||||
->setSummary(pht('Trust "Reply-To" headers for authentication.')) | ->setSummary(pht('Trust "Reply-To" headers for authentication.')) | ||||
->setDescription($reply_to_description), | ->setDescription($reply_to_description), | ||||
$this->newOption('metamta.placeholder-to-recipient', 'string', null) | |||||
->setSummary(pht('Placeholder for mail with only CCs.')) | |||||
->setDescription($placeholder_description), | |||||
$this->newOption('metamta.public-replies', 'bool', false) | $this->newOption('metamta.public-replies', 'bool', false) | ||||
->setBoolOptions( | ->setBoolOptions( | ||||
array( | array( | ||||
pht('Use Public Replies (Less Secure)'), | pht('Use Public Replies (Less Secure)'), | ||||
pht('Use Private Replies (More Secure)'), | pht('Use Private Replies (More Secure)'), | ||||
)) | )) | ||||
->setSummary( | ->setSummary( | ||||
pht( | pht( | ||||
Show All 36 Lines |