Search This Blog

Friday, April 15, 2011

Copy Website from VS 2010 to VPS

FTP...

server: http://www.yourserver.com/

port: 21

directory: [empty | your directory]

username: http://www.yourserver.com%7cyourftpuser/

password: [your passsword]

IIS Manager 7, IIS Manager 6 - SMTP stopped working

So, this morning I noticed that email notifications that are normally sent after a purchase were not being sent!  I also noticed that Microsoft had updated and restarted the server. I did some checking, first the event viewer - nothing. Then I checked in services that the SMTP service was running.

Finally I checked IIS 6.0 and notice that the STMP server was not running big red X.  This was odd so, I went back to the services and realized that I had mistakenly checked the SNMP Service instead of the SMTP server. Duh! So I started the Simple Mail Transport Protocol (SMTP) and set it to start automatically.

Sunday, February 27, 2011

Test SMTP on Windows 2008 VPS

Microsoft tool to test SMTP... Microsoft Exchange Server SMTPDiag Tool.

From CMD window in the SMTPDiag directory type...

SMTPDIAG "sender address" "recipient address" [-d target DNS] [/v]

Friday, February 25, 2011

Install IIS 6.0 on Microsoft 2008 VPS for advanced SMTP configurations

Server 2008 includes the latest version of IIS manager, version 7. But, to manage advanced features of SMTP, you must install IIS 6 manager. Here's how...

Start > administrative tools > server manager > add features > select SMTP server. Install the required remote server admin tools.

Add FTP to Web Site on Microsoft 2008 VPS

In IIS Manager, right click on the web site that you want to add FTP too, and select Add FTP Publishing...
The Add FTP Site Publishing wizard displays.

Windows VPS DNS setup for Text (TXT) SPF

Setup your SPF file for your mail server in Microsoft Server Manager, > Roles > DNS Server > DNS > [ your server ] > Forward Lookup Zones > [your domain name], right click and select Other New Records...

Scroll down in the Resource Record Type dialog box and select Text (TXT), click Create Record...

Create DNS Text (TXT) SPF record
  1. Record name: spf
  2. FQDN: spf.[your domain].com
  3. Text: v=spf1 -all
Step 3 is the most basic setting for SPF record.  You should use Microsoft SPF wizard to configure your Text value, to your requirements.

Windows VPS DNS setup for FTP

Just like all the other DNS changes, start up Micorsoft Server Manager, then Roles > DNS Server > DNS > [your server name] > Forward Lookup Zones > [your domain name].  Right click on [your domain name] and select New Host (A or  AAAA)...

Setup FTP...
  1. Host: ftp
  2. FQDN: ftp://ftp.[your/ domain].com
  3. IP address: [your VPS IP address]
That's it, your done with FTP.

Next I'll describe how to setup Text (TX) SPF record on Microsoft Server 2008 VPS

Windows VPS DNS setup for www

In Microsoft Server Manager, select Roles > DNS Server > DNS > [your server name] > Forward Lookup Zones > [your domain]. Right click on your domain and select New Host (A or AAAA)...

Setup your www record...
  1. Host: www
  2. FQDN: http://www.[your/ domain name].com
  3. IP address: [ip address of your VPS]
Setup * for anyone that tries to go to your domain without an http://www.[your/ domain].com, for instance if someone type [your domain].com in browse, we want it to go to the web server. So setup that next...
  1. Host: *
  2. FQDN: *.[your domain].com
  3. IP address: [ip address of your VPS]
In the next post, we'll setup FTP.

Windows VPS DNS setup for MX mail server record

In a previous post I described how to setup DNS Name Servers. This post I'll describe how to setup DNS server for your mail server MX record.

To work with DNS on Microsoft VPS, you use Server Manager > Roles > DNS > [your-server] > Forward Lookup Zones > [your-domain]. Next right click on [your-domain] and select New Host (A or AAAA)...

First setup Host (A) record for your mail server...
  1. Host: mail
  2. FQDN: mail.[your-domain].com
  3. IP address: [your vps IP address]
  4. Click OK to save.
Setup your Mail Exchanger (MX) record...
  1. FQDN: [your domain name].com
  2. FQDN of mail server: mail.[your domain name].com
  3. Mail server priority: 10

Next post I'll descibe how to setup your DNS server www record.

Windows VPS DNS Name Servers setup

Start Microsoft Server Manager to setup DNS.

Click <your server> Forward Lookup Zones. Then you'll need to add...

  1. A new zone (ie. <your-domain.com>)
  2. Create two name servers. They can point to the same IP.
    1. Right click on <your-domain.com> and select 'Properties' > Select 'Name Servers' tab, and click "Add..." button, FQDN: ns1.<your-domain.com> and IP Address is the IP address of your VPS server. Same info for ns2. In the FQDN textbox type: ns2.<your-domain.com> and for the IP address enter your VPS ipaddress.
    2. Select the 'Start of Authority (SOA)' tab and enter serial number, format: yyyymmddnn. Year, month and day. Start 'nn' at 01, this will increment anytime DNS changes.
    3. Make the 'Primary server' the ns1.<your-domain.com>
    4. Type 'Responsible person:' email in textbox.
    5. Common refresh interval: 1 hour, retry interval: 15 minutes, expires: 7 days, Min TTL, 4 hours.
Next post I'll show you how to setup the DNS FTP record.

Windows VPS first steps

Once your hosting company has provisioned your VPS, you'll want to log in.

Start Microsoft Remote Desktop Connection and enter the IP addresss, username and password and make sure that you connect to your VPS.  Once you connect your ready to begin setup and configuration.

Setup DNS on Microsoft Server 2008 VPS

Windows VPS what to expect

Windows VPS server from hosting companies are usually configured:

Intial server setup- Windows O/S installed, remote control configured and available public IP address.  Your hosting company will also have to setup Reverse DNS for your VPS.

Once the hosting company has setup the server, you are responsible for: managing, backup, configuration is your responsibility.  The hosting company will provide support, but may charge you additional fees, depending on the level of support.

You will setup and maintain your own SQL server, Email server, etc.

VPS Setup and configuration scope

VPS Setup and configuration blog provides information for Windows VPS provided by hosting companies.