Editing
Starting and Stopping SMTP on Dev Server
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==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=== This is only necessary if the SMTP server is being reached remotely. If the STMP server referenced as part of the LAN then port 25 on the router can remain disabled. * 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. * Start the '''SMTP service'''. * Start the '''SMTP Virtual Server'''. ==== Command line ==== <div class="alert-warning">After doing the following, the SMTP Server reports being started in the MMC, but mail doesn't actually get delivered. Requires some more research. In the meantime, use [[Starting_and_Stopping_SMTP_on_Dev_Server#Management_consoles|the MMC]].</div> Using PowerShell as Administrator: <syntaxhighlight lang="powershell"> > # start the SMTP service > net start smtpsvc > # or, alternatively: > net start "Simple Mail Transfer Protocol (SMTP)" > # start the SMTP virtual server: > $SMTP=[adsi]"IIS://localhost/SMTPSVC/1" > $SMTP.ServerState = 2 > $SMTP.SetInfo() </syntaxhighlight> ==== Management consoles ==== * '''Administrative Tools''' > '''Services''' > '''Simple Mail Transport Protocol''' > '''Start''' * '''Administrative Tools''' > '''IIS 6.0 Manager ''' ''<< Note the version number!'' ** '''SMTP Server''' > ''right click'' > '''Start''' ** <span style="color:lightgray;">''The following steps are usually a one-time operation:''</span> ** '''SMTP Server''' > ''right click'' > '''Properties ''' *** '''Access''' tab > '''Relay Restrictions''' > '''Relay...''' *** '''Only the list below''' selected *** Click '''Add...''' button *** 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
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information