[MediaWiki-l] $wgPasswordSender value in Localsettings.php is not getting honoured

Prakash P prakash.kps at gmail.com
Sun Jan 6 05:11:01 UTC 2013


I have the following configurations in our wiki's Localsettings.php file

require_once( "$IP/includes/DefaultSettings.php" );
$wgSitename         = "TestWiki";
$wgScriptPath       = "/wiki";
$wgScriptExtension  = ".php";
$wgEnableEmail      = true;
$wgEnableUserEmail  = true;
$wgEmergencyContact = 'toaddress at example.com';
$wgPasswordSender = 'fromaddress at example.com';
$wgPasswordSenderName = 'Wiki Admin';
$wgNoReplyAddress = 'no-reply at example.com';

But it's not honoring $wgPasswordSender, $wgPasswordSenderName &
$wgPasswordSenderName variables alone and using the default values in
includes/DefaultSettings.php as mentioned below.

$serverName = substr( $wgServer, strrpos( $wgServer, '/' ) + 1 );
$wgEmergencyContact = 'wikiadmin@' . $serverName;
$wgPasswordSender = 'apache@' . $serverName;
$wgPasswordSenderName = 'MediaWiki Mail';
$wgNoReplyAddress = 'reply at not.possible';

Message from maillog says that it doesn't accepting the from address that's
been configured in Localsettings.php because of which our SMTP server is
blocking the mails.

Jan  2 21:29:19 wikimaster sendmail[24770]: r035TIhc024770:
from=<apache at localhost.localdomain>, size=1093, class=0, nrcpts=1, msgid=<
wikidb.50e5172e786627.88495606 at>, proto=ESMTP, daemon=MTA,
relay=c1master []

Our SMTP server accepts mails only if it comes from a valid "From" email ID
& because of this email is not getting delivered.


More information about the MediaWiki-l mailing list