From: Derk-Jan Hartman Date: Thu, 30 Apr 2015 21:38:05 +0000 (+0200) Subject: mail: Change $wgNoReplyAddress default to $wgPasswordSender X-Git-Tag: 1.31.0-rc.0~7790 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=95d5cc31f653823b91fc45a52c253423d816f8d8;p=lhc%2Fweb%2Fwiklou.git mail: Change $wgNoReplyAddress default to $wgPasswordSender Stop using a TLD in the EmailNotification class that can now potentially become a valid domainname. Bug: T97711 Change-Id: If69d5f32b97320986b14260c851d4aca0d28aa69 --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 4f27f12084..e7c8651cf7 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1461,27 +1461,27 @@ $wgDjvuOutputExtension = 'jpg'; $wgEmergencyContact = false; /** - * Password reminder email address. + * Sender email address for e-mail notifications. * - * The address we should use as sender when a user is requesting his password. + * The address we use as sender when a user requests a password reminder. * * Defaults to "apache@$wgServerName". */ $wgPasswordSender = false; /** - * Password reminder name + * Sender name for e-mail notifications. * * @deprecated since 1.23; use the system message 'emailsender' instead. */ $wgPasswordSenderName = 'MediaWiki Mail'; /** - * Dummy address which should be accepted during mail send action. - * It might be necessary to adapt the address or to set it equal - * to the $wgEmergencyContact address. + * Reply-To address for e-mail notifications. + * + * Defaults to $wgPasswordSender. */ -$wgNoReplyAddress = 'reply@not.possible.invalid'; +$wgNoReplyAddress = false; /** * Set to true to enable the e-mail basic features: @@ -1500,7 +1500,7 @@ $wgEnableUserEmail = true; * Set to true to put the sending user's email in a Reply-To header * instead of From. ($wgEmergencyContact will be used as From.) * - * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value, + * Some mailers (eg SMTP) set the SMTP envelope sender to the From value, * which can cause problems with SPF validation and leak recipient addresses * when bounces are sent to the sender. */ diff --git a/includes/Setup.php b/includes/Setup.php index 189855e82c..f92c8c239b 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -580,6 +580,9 @@ if ( !$wgEmergencyContact ) { if ( !$wgPasswordSender ) { $wgPasswordSender = 'apache@' . $wgServerName; } +if ( !$wgNoReplyAddress ) { + $wgNoReplyAddress = $wgNoReplyAddress; +} if ( $wgSecureLogin && substr( $wgServer, 0, 2 ) !== '//' ) { $wgSecureLogin = false;