Search This Blog

Friday, 19 August 2011

Blocking Credit Card numbers with Exchange 2007/2010

As part of the PCI compliance legislation in the UK we have been asked to block all incoming emails that contain credit card numbers to one of our customers. We cannot receive any emails that contain numbers so we knew we had to block them before they were delivered to the server and not filter them once they had been accepted.

This can be achieved with the Exchange Transport Rules.

Transport Rules allow for pattern matches on certain characters on messages that are routed through Exchange, full details of this can be read here

http://technet.microsoft.com/en-us/library/aa997187.aspx

Credit card numbers have a certain format, Visa and Mastercard use 16 digits in blocks of 4 starting with a 4 and 5 respectively so

4xxx xxxx xxxx xxxx
5xxx xxxx xxxx xxxx

Discovery uses 16 digits in a block of 4 starting with 6011 so

6011 xxxx xxxx xxxx

AMEX uses 15 digits in blocks of 5,6 then 4 starting with a 3 so

3xxxx xxxxxx xxxx

To match these with a rule we need to use several pattern matches.

4\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\s
5\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\s
6011\d\d\d\d\d\d\d\d\d\d\d\d\s
3\d\d\d\d\d\d\d\d\d\d\d\d\d\d\s

The matches here are \d for any numeric character, \s for a white space so these match for the following

4111666677778888
5111666677778888
6011666677778888
31166666677777

This is great but we need to match for people using spaces, periods or hyphens so we need to increase the pattern match to account for this.

\d\d\d\d(\s|.|-)\d\d\d\d(\s|.|-)\d\d\d\d(\s|.|-)\d\d\d\d

This match uses the parenthesis () to distinguish choices that can be made mid match so if we need to match four numbers and then a space, period or hyphen we can see this as

\d\d\d\d - Match 4 numbers
(\s|.|-) - Match either a space, period or hyphen

Note the use of the pipe character | here this is used as an OR in the match statement to choose the different type of character.

Now using this we can match for any variation of character that distinguish 16 digits and then add different matches for the 15 digit cards from AMEX.

\d\d\d\d(\s|.|-)\d\d\d\d\d\d(\s|.|-)\d\d\d\d\d(\s|.|-)

All you need to do now is take some action when the match occurs, in our case we reject the email with a custom message and the SMTP code 5.7.1

Thursday, 18 August 2011

Thank Customer Service People, they will appreciate it!

If you work in customer service and by that I mean on the first line of support on the telephone or email, you are the first person an upset customer or a person with a problem will speak to. (it can be argued that everyone in your business is in customer service but that is for another time)

So if you are about to speak to someone with a problem, they are likely to already be thinking "I don't like this company and I am going to tell them", they are probably thinking who they can change to and leave you.

This is your chance to make a difference and to bring them back around without the need for a "retention" department or any of that crap.

I will give you an example of great customer service. Orange UK. Now I moved my business phones to Orange about six months ago and ever since then I have had all our phone calls cut off after a few minutes or drop when we are in the middle of an important call so as you can imagine this drove us mad and was not what we needed.

But this was a technical issue, I suggested it was linked to a merger with another provider but I digress. The real issue is that I decided to move back to my original carrier O2 and so I called the customer services to start the process of moving back.

Orange UK customer services were awesome about this, they understood my problem, didn't try to change my mind and listened. Then when I needed to get my PAC codes and iPhone unlock codes they did everything they could to help me out. The Call Centre is based in Newcastle Upon Tyne and so I got a Geordie most times and they do tend to be a friendly lot to speak to.

What mattered to me was that although Orange Service was not up to par their customer service was and I know that technical problems can be solved and they often are, so in the future I would not be put off moving back to Orange because I know that once the technical issues are resolved they will have a great service and a awesome customer service and thats a killer combination.

Make customer service everything, technical problems come and go, people know this, not caring for your customers can be a once only deal and you might not get the chance to do it twice.

Monday, 15 August 2011

SQL Server Maintenance Plan "Access Denied"

Sometimes you might find your SQL Server maintenance plans do not run and when you look in the history you can see that the message "access denied" is displayed. When you look at the Job however it has the correct Owner is assigned to the Job.

The NETWORK SERVICE account is the key to this behaviour, it will be the this account that executes the Job and this account that may not have the permissions to the destination you need.


So just make sure you allow NETWORK SERVICE to Write permission to your destination and your SQL Jobs will run again successfully.

Thursday, 11 August 2011

2x Thin Client PXE Boot Issue - TCAC008

We use the 2x Thin Client from www.2x.com it is a really cool PXE booting Thin Client for Terminal Services and Citrix. It has been working at our clients for months without a hitch but his morning all our users had this message displayed on their computers when starting up.


We searched the 2x Knowledge Base and could not find this error and it is not in the manual either so we were a but stumped.

Then we got a call from another office that they had the same issue. The penny dropped it must be something used at each site, the licence!

We checked and the licence we had entered was lost in the back end server application, we re entered the details and we were back in business.

Tuesday, 9 August 2011

Vmware Data Recovery Performance

We use VMWares Data Recovery as a backup for our vSphere infrastructure, now I know a lot of people do not consider this a robust backup solution and use other agents for that role, we had to make do with what we had in this case and make this work for us.

As an application when it works, it works well and I can restore a server to a point in time and I can mount restore points to replace files that have been changed, usually I use Shadow Copy for this but there are those users who have changed a file months ago or need it for a retention reason.

The problem with DR comes with the Integrity Checks and Catalog of the DeDupe Storage, I use 1TB VMDK files on NFS NAS because I need to store multiple backups and DR only supports two destinations at once so I need to get the most out of them in terms of capacity.

Often I will find my backups have failed because they have exceeded their time window due to the destination running a daily Integrity Check and the check on a 1TB NFS VMDK takes a long time to finish.

So what can be done, well one is to try to limit the Integrity checks to once a week and this can be done by editing the Data Recovery Appliance from the Linux console.

So the first thing to do is to logon to the appliance so open the appliance from the console and use the default credentials of "root" and "vmw@re" But be aware the keyboard may well be mapped to US so the @ symbol will actually be the " on a a UK keyboard.

Once logged on you can then create the INI file with the command

vi /var/vmware/datarecovery/datarecovery.ini

In this file you can then add the header [Options}

Then to change the Integrity check Interval enter on its own line

IntegrityCheckInterval=7

To close the file and save enter :q!

There are multiple other options available and you can read about those here

http://bit.ly/qFHj2J

http://bit.ly/oKwn3I

Sunday, 7 August 2011

Post SBS 2011 Post Installation Known Errors

There are several errors post a SBS 2011 installation that can be safely ignored. Here they all are

http://support.microsoft.com/kb/2483007/en-us?sd=rss&spid=1167

SidebySide errors on your Windows 2008 R2 Servers

If you start seeing a lot of Event ID 33 errors in your Application Logs on a Windows 2008 R2 Server then you will want to read this KB article.

http://support.microsoft.com/kb/2507938

It is nothing to worry about but is notification of security when using the Command Prompt.