Hi,
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@example.com'; $wgPasswordSender = 'fromaddress@example.com'; $wgPasswordSenderName = 'Wiki Admin'; $wgNoReplyAddress = 'no-reply@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@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@localhost.localdomain, size=1093, class=0, nrcpts=1, msgid=< wikidb.50e5172e786627.88495606@10.20.30.40>, proto=ESMTP, daemon=MTA, relay=c1master [127.0.0.1]
Our SMTP server accepts mails only if it comes from a valid "From" email ID & because of this email is not getting delivered.
Thanks, Prakash
mediawiki-l@lists.wikimedia.org