Friday, November 6, 2015

Consolidating personal email accounts

There are certain advantages to purchasing your own domain name.  One is that you can setup your own private email address.  Google Domains makes it pretty easy to create an alias and forward your Google mail to that address.  So the end result is that I can give my out my email address gilbert@gspiii.net and have it go to my google email address. The only problem is that when I reply to an email it will still appear in the recipients mail box as my Google email address, gypsyiiis@gmail.com.
So the next step was to change my primary address in Gmail from gypsyiiis@gmail.com to gilbert@gspiii.net, which is known as an alias.  Gmail makes creating an alias a little more difficult.  They require for you to authenticate to your email box before you can make it your primary email address -- the address that gets stamped on your email when you send it.  And since I only had the personalized email address that I created in Google Domains and not a real email account for gilbert@gspiii.net there was a little problem.  Fortunately I found the answer to my problem from Ellis Benus. The only problem that I had was that I did not have 2 step verification setup.  So I had to do a little extra work with setting up all my Google passwords for 2 step verification.
After I was done configuring my Gmail I was not only able to receive email as gilbert@gspiii.net I was able to send email as well.
The next step was to setup forwarding from all my other email accounts.  Most people have more than one email account.  I have my gmail.com account, live.com account, outlook.com account and yahoo.com account.  So all I had to do was set up each account to forward mail into my gmail.com account.
In my Outlook.com email accout all I had to do was go to options on the drop-down menu in the right-hand courner of the screen.  Then click on "Email Forwarding"


 Then add the account that you want to forward you email to and you are done.

Live.com is the sames steps.
For Yahoo.com you just login to your account click on your name


Choose "Manage Aliases"




Add your alias and click ok and you are done.


That's it.  Now the only email client that I have to open is Gmail.  Moreover, when I reply to an email the recipient  will receive an email that is stamped gilbert@gspiii.net.  When they reply to this email it will go straight to my gmail and not to any of my other email accounts.  

Friday, October 23, 2015

Troubleshoot IIS7 errors

I was tasked to help a co-worker fix a problem with a site.  It was a form that once you input the data correctly it get stored in an Access Database.  When we typed in the data we got the generic 500 - internal server error.

Really the big problem with this error is that there is no detail that will help you troubleshoot the cause of the problem.  So I did some research and most blog post say do the same thing  -- send asp errors to the browser, try browsing the website from the server, turn on details for the exception error etc... I tried all this but I still got the 500 internal server error.  I found a blog by Mike Volodarsky, witch pretty much spelled out how to troubleshoot these error.

What I ended up doing was to Enable Failed Request Tracing on the site to look for 500 errors, as prescribed on the last part of his article. The xml from the trace pretty much spelled out the problem.

 What this was telling us was that the mdb file that we were using to store the results did not have proper permissions for the IIS user to write files to it.  After we fixed the mdb and intered the data correctly we no longer got the 500 error.

Please see this link as well.

Wednesday, July 22, 2015

FTP and Firewall issues

I am working on a project to get a nightly upload from one of our venders.  He creates a scheduled task that ftps a file to our ftp server every night.  This process that he runs uses FTPS which is what his uses to send to his other customers.  So my task really was our server able to accept ftps connections.  Our FTP server connects SFTP reliably but when I tried to connect using FTPS which is using an SSL connection I was receiving:
 Error: Connection timed out after 20 seconds of inactivity 
 Error:  Failed to retrieve directory listing
So I did some research and I found this site https://ftptest.net.  I was able to test my ftps connection to find out what was causing the timeout.  These were my results:
I was getting a connection timeout when connecting to MLSD.  I checked with the firewall guys and they showed me that port 990 which is the port that FTPS uses, was opened on the firewall.  What I did not know was that FTPS uses port 990 to authenticate users then assigns the user a random port for file transport.  This is what is known as a passive connection.  http://g33kinfo.com
The firewall guys opened the range of ports on the firewall for the ip address of the FTP server.
I ran my test again and was successful.


Friday, July 17, 2015

VBS for server serial number

If you call in equipment for support, it is always necessary for the tech at the other end to ask you for information that is related to the server in question.  Almost always you are not standing in front of the machine to get specifics such as the serial number.  Her is a little vb script that will get the serial number of the server that you are on.  

On Error Resume Next
Dim System
if Wscript.Arguments.Count >0 then
sSystem=Wscript.Arguments(0)
end if
ComputerName = InputBox("Enter the name of the computer you wish to query")
winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& ComputerName &""
Set SNSet = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS")
for each SN in SNSet
MsgBox "The serial number for the specified computer is: " & SN.SerialNumber
Next

This vb will create a dialogue box that will ask you for the name of the server.  After you put in the name and click ok another dialogue box will appear with the serial number of that server.  

Another tool that I use to get server info is Systeminfo.  This DOS command provides vital system configuration info for the server.  

Friday, May 8, 2015

working with IPC$ shares

I was creating a scheduled task to copy log files from DMZ server to a server that existed behind a firewall but I ran into a few difficulties. 

My first problem was that I had to pass credentials from the DMZ to the user domain.

My second was to change permissions so that the user that was running the scheduled task could access and grab all the files.

I initially started  Xcopy and Run As. but unfortunately I could not save my credentials.  In the past I often use CPAU.exe.  This worked very well for copying.  But I did not want to use a third party product to copy from server to server.
As for Xcopy it was not robust enough for the repetitive task.  I knew there was a better way so I did some research.

I ran across this article https://klyavlin.wordpress.com/2012/09/19/robocopy-network-usernamepassword/.  All I had to do to pass credentials from one domain to the other and copy was to use a user from the user domain and then use robocopy to mirror the source directory in the DMZ to the user domain.  I created a share on the source log file folder to make the task easier. 

 

Wednesday, March 4, 2015

High Edge Transport C P U

For the last few weeks I have been seeing High CPU utilization caused be the Edge Transport service.  I personally thought this was linked to Edge Transport Server Role. Which provides an extra layer of message protection. Although this role is a small part of the transport system the Microsoft Exchange Transport Service controls the whole SMTP stack.  This particular issue may be caused by interference of anti-spam  software.
I have read a few KBs about applying Rollup 2 for Exchange Server 2010 SP3 to permanently fix this issue.  But there are a few things that can be done in the mean time.
1) Restart the MS Exchange Transport service -- This will cause mail flow to stop for a minute or two.  But has really no other user impact unless you have more serious issues going on in your Exchange environment
2) Follow this KB from Experts-Exchange, which is a more in depth fix of the mail queue.
           a.       Check and ensure that no messages are present in queue

           b.      Stop Microsoft Exchange Transport Service

            c.       Rename the current "Queue" folder under “C:\Program Files\Microsoft\Exchange         Server\Transport Roles\data\” to “Queue_Old” and created a new “Queue” Folder

            d.      Start Microsoft Exchange Transport Service

            e.      Check the "Queue" folder under “C:\Program Files\Microsoft\Exchange    Server\Transport Roles\data\” location to see if new mail.que database is created

            f.        Confirm mailflow 

Friday, January 30, 2015

Cache Flush for your web browsers

flushing your internet browser cache and history can be very important when you are testing websites.  I found a good website that will help you delete your history, cache and cookies from your favorite web browser in one swoop.  How to delete cookies, cache and history in all major browsers
here is my batch file that I created to delete from my favorite browsers:
 @echo off
set DataDir=C:\Users\%USERNAME%\AppData\Local\Microsoft\Intern~1
del /q /s /f "%DataDir%"
rd /s /q "%DataDir%"
set History=C:\Users\%USERNAME%\AppData\Local\Microsoft\Windows\History
del /q /s /f "%History%"
rd /s /q "%History%"
set IETemp=C:\Users\%USERNAME%\AppData\Local\Microsoft\Windows\Tempor~1
del /q /s /f "%IETemp%"
rd /s /q "%IETemp%"
set Cookies=C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Cookies
del /q /s /f "%Cookies%"
rd /s /q "%Cookies%"
C:\bin\regdelete.exe HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\TypedURLs"
set DataDir=C:\Users\%USERNAME%\AppData\Local\Mozilla\Firefox\Profiles
del /q /s /f "%DataDir%"
rd /s /q "%DataDir%"
for /d %%x in (C:\Users\%USERNAME%\AppData\Roaming\Mozilla\Firefox\Profiles\*) do del /q /s /f %%x\*sqlite
set ChromeDir=C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data
del /q /s /f "%ChromeDir%"
rd /s /q "%ChromeDir%"
set FlashCookies=C:\Users\%USERNAME%\AppData\Roaming\Macromedia\Flashp~1
del /q /s /f "%FlashCookies%"
rd /s /q "%FlashCookies%"