帮助:MediaWiki/设置/邮件

来自GIPRs
跳转至: 导航搜索
项目文档
项目主页 GIPRs语义维基
文档类型 日志
优先级
状 态 进行中
发布日期 2013/03/11
完成日期
作 者 GIPRs语义维基项目团队
来 源 www.giprs.org
源语言 中文

为方便查看和记录,参考并直接引用:http://www.mediawiki.org/wiki/Manual:Configuration_settings

目录

Email settings

See Also User Access: $wgEmailConfirmToEdit

// 默认,DefaultSettings.php:“$wgAdditionalMailParams = null;”

  • $wgEmailAuthentication - Whether Email authentication (confirmation) is needed for that wiki for using any Email function (except password reminder which works independently from this setting)

// 默认,DefaultSettings.php、LocalSettings.php设置相同(是否重复,待处理):“$wgEmailAuthentication = true;”

// 应设置为与$wgPasswordSender不同的邮件地址以及不同的域名/邮件系统
// DefaultSettings.php:“$wgEmergencyContact = 'wikiadmin@' . $serverName;”
// LocalSettings.php:中英版设置相同的它域邮件

  • $wgEnableEmail - Set to true to enable the e-mail basic features: Password reminders, etc.

// 默认为“true”,DefaultSettings.php、LocalSettings.php设置相同

// 默认为“true”,DefaultSettings.php、LocalSettings.php设置相同

  • $wgNoReplyAddress - Dummy address which should be accepted during mail send action.

// DefaultSettings.php:“$wgNoReplyAddress = 'reply@not.possible';”
// LocalSettings.php:无此项设置。暂不启用

// DefaultSettings.php:“$wgPasswordSender = 'apache@' . $serverName;”
// LocalSettings.php:中英版设置相同的它域邮件

// DefaultSettings.php:“$wgPasswordSenderName = 'MediaWiki Mail';”
// LocalSettings.php:中英版设置相同:“$wgPasswordSenderName = 'GIPRs Mail';”

// DefaultSettings.php:“$wgPasswordReminderResendTime = 24;”
// LocalSettings.php:不需要设置,中英版设置相同

// DefaultSettings.php:“true”
// LocalSettings.php:不需要设置,中英版设置相同

  • $wgSMTP - For using a direct (authenticated) SMTP server connection.

// DefaultSettings.php:“false”,未测试成功,待处理

// DefaultSettings.php:“true”
// LocalSettings.php:不需要设置,中英版设置相同

// DefaultSettings.php:“7 * 24 * 60 * 60”
// LocalSettings.php:不需要设置,中英版设置相同

// DefaultSettings.php:“false”
// LocalSettings.php:不需要设置,中英版设置相同

Email notification (Enotif) settings

Actual notifications for each user are defined in the options. You can change defaults with $wgDefaultUserOptions.
  • $wgEnotifFromEditor - Email notifications appear to be coming from the page editor (not from Wiki server)

// DefaultSettings.php:“false”
// LocalSettings.php:不需要设置,中英版设置相同

// DefaultSettings.php:“false”
// LocalSettings.php:不需要设置,中英版设置相同

  • $wgEnotifMaxRecips - Maximum number of users to mail at once when using impersonal mail.

// DefaultSettings.php:“500” (群发数量)
// LocalSettings.php:不需要设置,中英版设置相同

  • $wgEnotifMinorEdits - Email notifications also for "minor edits" (user preference is shown and user needs to opt-in)

// DefaultSettings.php:“true”
// LocalSettings.php:不需要设置,中英版设置相同

  • $wgEnotifRevealEditorAddress - reply-to address of Email notifications may be filled with page editor's address (user preference is shown and user needs to opt-in)

// DefaultSettings.php:“false”
// LocalSettings.php:不需要设置,中英版设置相同

// DefaultSettings.php:“false”
// LocalSettings.php:不需要设置,中英版设置相同

// DefaultSettings.php:“false”
// LocalSettings.php:不需要设置,中英版设置相同

  • $wgEnotifUserTalk - Email notifications can be sent for first change on a user_talk page (user preference is shown and user needs to opt-in)

// DefaultSettings.php:“false”
// LocalSettings.php:不需要设置,中英版设置相同

  • $wgEnotifWatchlist - Email notifications can be sent for the first change on watched pages (user preference is shown and user needs to opt-in)

// DefaultSettings.php:“false”
// LocalSettings.php:不需要设置,中英版设置相同

  • $wgUsersNotifiedOnAllChanges (formerly $wgUsersNotifedOnAllChanges!) - Array of usernames who will be sent a notification email for every change which occurs on a wiki

// DefaultSettings.php:“array()”
// LocalSettings.php:邮件通知Wiki上的任何改变/修订;中英版设置相同,Example:“$wgUsersNotifiedOnAllChanges = array( 'WikiSysop', 'User123' );”

管理日志

系统邮件用于用户注册信箱进行确认、找回密码等,截至2013.02.18,没开通,LUM系统邮件已设置/测试成功,应该不是环境问题。

MW设置:

  • MW目录下Local Settings文件
$wgEnableEmail      = true;
$wgEnableUserEmail  = true; # UPO
$wgEmergencyContact = "mail address";
$wgPasswordSender   = "mail address";
$wgEnotifUserTalk      = true; # UPO
$wgEnotifWatchlist     = true; # UPO
$wgEmailAuthentication = true;
  • includes下Default settings文件
* SMTP Mode.
* For using a direct (authenticated) SMTP server connection.
* Default to false or fill an array :
*
* @code
* $wgSMTP = array(
* 	'host'     => 'smtp.域名',
* 	'IDHost'   => '域名',
* 	'port'     => '25',
* 	'auth'     => true,
* 	'username' => '邮箱地址',
* 	'password' => '密码',
* );

Phpmailer

;include_path = "/usr/share/PHPMailer"

重启apache,未成功!


2013.02.20,请专业IT处理,运行一条命令,就自动安装好了,MW和DP就都可以发送:

yum -y install sendmail

系统默认用mail函数,等其他问题都解决了在看看smtp模式效果如何,待处理。