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(a)example.com'com';
$wgPasswordSender = 'fromaddress(a)example.com'com';
$wgPasswordSenderName = 'Wiki Admin';
$wgNoReplyAddress = 'no-reply(a)example.com'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(a)not.possible'ble';
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(a)localhost.localdomain>in>, size=1093, class=0, nrcpts=1, msgid=<
wikidb.50e5172e786627.88495606(a)10.20.30.40>gt;, 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