Starting and Stopping SMTP on Dev Server: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
==Starting SMTP== | ==Starting SMTP== | ||
===Server-side code=== | |||
Make sure the code is using the development SMTP server<br /> | |||
e.g. in <code>Web.config</code>: | |||
<syntaxhighlight lang="xml" highlight="3"> | |||
<configuration> | |||
<appSettings> | |||
<add key="SMTPServer" value="devserver"/> | |||
</appSettings> | |||
</configuration> | |||
</syntaxhighlight> | |||
===Router settings=== | |||
* Log into (medialink) router: http://192.168.123.1 | * Log into (medialink) router: http://192.168.123.1 | ||
* Click ‘Virtual Server’ option | * Click ‘Virtual Server’ option | ||
* Enable port 25 (pointing to the local dev web server) | * Enable port 25 (pointing to the local dev web server) | ||
===Development web server settings=== | |||
* Remote Desktop to local dev web server | * Remote Desktop to local dev web server | ||
* Administrative Tools > Services > Simple Mail Transport Protocol > enable | * Administrative Tools > Services > Simple Mail Transport Protocol > enable | ||
* Administrative Tools > IIS 6.0 | * Administrative Tools > IIS 6.0 Manager | ||
** SMTP Server > right click > Start | |||
** SMTP Server > right click > Properties | |||
*** Access tab > Relay Restrictions > Relay... | |||
*** Select 'Only the list below' | |||
*** Click 'Add...' | |||
*** Select 'Group of computers' | |||
**** Subnet address: first IP address in group, e.g. 192.168.123.100 | |||
**** Subnet mask: wide enough to allow access for all computers in group, e.g. 255.255.255.200 | |||
==Stopping SMTP== | ==Stopping SMTP== | ||
Revision as of 22:02, 7 September 2012
Starting SMTP
Server-side code
Make sure the code is using the development SMTP server
e.g. in Web.config:
<configuration> <appSettings> <add key="SMTPServer" value="devserver"/> </appSettings> </configuration>
Router settings
- Log into (medialink) router: http://192.168.123.1
- Click ‘Virtual Server’ option
- Enable port 25 (pointing to the local dev web server)
Development web server settings
- Remote Desktop to local dev web server
- Administrative Tools > Services > Simple Mail Transport Protocol > enable
- Administrative Tools > IIS 6.0 Manager
- SMTP Server > right click > Start
- SMTP Server > right click > Properties
- Access tab > Relay Restrictions > Relay...
- Select 'Only the list below'
- Click 'Add...'
- Select 'Group of computers'
- Subnet address: first IP address in group, e.g. 192.168.123.100
- Subnet mask: wide enough to allow access for all computers in group, e.g. 255.255.255.200
Stopping SMTP
- TK