MindTouch uses PHPMailer to send e-mail. It can be configured by adding these values in your LocalSettings.php:
// anonymous SMTP server $wgSMTPServers = 'mail.server.com'; // authenticate SMTP server (only define if you need this) $wgSMTPServers = 'mail.server.com'; $wgSMTPUser = 'login'; $wgSMTPPwd = 'password'; // $wgSMTPServers var may contain several server names or ips like this // $wgSMTPServers = "smtp1.example.com;smtp2.example.com";
Note: these settings are for the front-end, not the API, and thus cannot be set through the Control Panel.
PHPMailer is instantiated in includes/UserMailer.php if you'd like to add in more PHPMailer-specific configuration values.
Users of MindTouch 9.02 or greater can also specify a port and SSL encryption:
$wgSMTPServers = 'smtp.server.com'; $wgSMTPUser = 'your_username@mindtouch.com'; $wgSMTPPwd = 'your_password'; $wgSMTPPort = 465; $wgSMTPSecure = 'ssl';
You can also set the following config variables in the control panel:
mail/smtp-servers mail/smtp-port mail/smtp-secure mail/smtp-username mail/smtp-password
which, if they are set, will do the same thing for the PHP mailer as the page notifications.
For Gmail, use port 465 and SSL.
Users of non-authenticated SMTP servers should be aware of a bug which may cause e-mail not to be delivered.
On the VM, you have the Exim mailer available to you. You can have it listen for mail from MindTouch and deliver it to an upstream server for you. Configure it with the command dpkg-reconfigure exim4-config - here are the answers you probably want:
mail sent by SMARTHOST; received via SMTP or fetchmail127.0.0.1blankblanksmtp.server.com::portNO, don't hide local mail name in outgoing mail.NO, don't keep number of DNS-queries minimal (Dial-on-Demand).YES, split configuration into small files
It is also possible to configure Exim to relay to Gmail.
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by