This guide shows how to set up a local SMTP server in IIS to allow Deki to send e-mail notifications upon account creation.
Add the SMTP Server
- Inside the Server Manager console, click on Add Features in the Feature Summary.
Install Required Services
- Click on SMTP Server. The Add Features Wizard window will pop up; as the SMTP server cannot be managed through the IIS 7 console, the IIS 6 management GUI must be installed. Click Add Required Role Services (1) to install the GUI. Click Next until the Install button becomes clickable, and then click Install.
Edit SMTP Virtual Server Properties
In the Start/Administrative Tools menu, click on Internet Information Services (IIS) 6 Manager. Inside of the Manager, right click on the SMTP Virtual Server, and click Properties.
Add Local SMTP Relay
- Click the Access tab, and click Relay.
- Click Add.
- Inside of the Single Computer IP Address box, type 127.0.0.1.
- Click OK all the way out of the Properties menu.
Add SMTP Server reference in LocalSettings.php
Browse to C:\Program Files\MindTouch\MindTouch Deki\web, and open the LocalSettings.php file. Add the following line:
$wgSMTPServers = "127.0.0.1";
Save the file.
Edit Website SMTP E-mail Settings
- In the Start/Administrative Tools menu, open up the Internet Information Services (IIS), and browse to the MindTouch Deki website.
- Click on SMTP E-mail.
Add Local Relay
- Check the box next to "Use localhost". This will allow the MindTouch Deki website to look for the local SMTP server.
- Click Apply.
Restart Website
- Click on the MindTouch Deki site again to go back to the main menu.
- Click Restart to force a re-reading of the LocalSettings.php file and to apply the new changes. Please note that Windows Firewall, if on, may interfere with SMTP e-mail relay. Please check your firewall settings to see if SMTP (port 25) is allowed.