Ramblings from The Montopolis Group

Building better businesses… with Technology

Ok all you developers out there…

I don’t care what language you write in or how good you think you are, there are some basic rules for sending email that seem to be continuously neglected which only causes unecessary drama for everyone around you.

I don’t care if you’re an internal/intranet developer, or work for eBay.  It’s the same basic rules.

Being both a developer and a mail admin myself, I know this stuff gets complicated real fast.  And I’ll also assume you haven’t been trained better.

So assuming you want to keep on developing code, here is what you should know…

1. ALWAYS follow ALL of the rules below

a. Whether sending 1 email or 60,000, the rules are always the same – no shortcuts!

2. ALWAYS authenticate, if you have the option!

a. Security is always important. Having proper permission to send/relay email is step 1, not step 99.

3. ALWAYS use SMTP TLS/SSL, if you have the option!

a. Again security is important, and you don’t want to be the developer who allows highly sensitive data and/or credentials to be read by a 12 year old, with a free network sniffer (http://www.wireshark.org/ or http://blogs.technet.com/netmon/), and then posted on MySpace.

b. No matter what you’ve heard, it’s too darn easy (and fun) to sniff network traffic.

4. ALWAYS specify a proper email subject, even during testing.

a. Blank subjects are bad form (see #6) and plain useless to all concerned.

5. ALWAYS insure a valid FROM and/or REPLY-TO email address.

a. Bogus data here increases the possibility that a server you are sending through can get blacklisted (worst case) or just poor email delivery (best case).

6. ALWAYS well form all emails sent, especially if you’re including attachments.

a. Using a good class (which is maintained by folks who know better) usually resolves this. Otherwise same concerns as #5.

b. If you aren’t using a class, then I expect to you to understand and have memorized all of these RFCs: RFC 821, RFC 822, RFC 2821, RFC 2822, RFC 2487, RFC 2045, RFC 2046, RFC 2047, RFC 2048 and RFC 2049

7. ALWAYS consider how to handle send failures in the event you are developing synchronous code.

a. If you are asked to write code to send an email, presumably the recipient is expecting one.

b.  Failing to properly handle errors means that the recipient is left hanging which only leads to a shortened development career.

8. ALWAYS insure you can enable and see debugging internals of your mail code.

a. You can’t blame the mail admin folks if you have no idea what your email code is ACTUALLY doing.

b.  They can’t AND won’t help unless you can provide PROOF of what is failing – they need to see the entire transaction. It’s the whole needle in the haystack thing. No mail admin wants to dig through a billion lines of logs to find your dumb mistake.

9. ALWAYS consider your email send volume and plan accordingly.

a. Don’t assume you’re allowed to send 6 million emails – you’re not.   When in doubt ASK.

b. Network throttling and limiting is implemented for a valid purpose – to keep bad stuff from happening. You know the Vulcan saying… The needs of the many, outweigh the needs of the few, and YOU!

c. Uh bandwidth costs money. Even if you’re not paying for it, someone is. And that someone will find you (or worse your boss) and get the money and/or pounds of flesh. Unless you’re the developer writing the next version of Google Earth or Microsoft Word, you can expect it.

I won’t even go into how to properly test your email code before going into production, because I will assume you can take it from here.  Right?

Those are the basics.  Learn ‘em, live ‘em, love ‘em.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • Print
  • Technorati
  • TwitThis
  • Ping.fm

Go to Add/Remove Programs

Looking for KB958644, must tick “Show Updates”

image thumb Microsoft Critical RPC Vulnerability Patch Verification

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • Print
  • Technorati
  • TwitThis
  • Ping.fm

I’ve had a few complaints roll in about the iPhone with regard to a problem seen when accessing your company email via Exchange sync.

Problem:

You launch the mail app, at the bottom all that is displayed is “Connecting…”. This goes on for hours, closing and reopening the mail app has no effect.

Solution:

This seems to be a new bug with the iPhone… Basically from what I gather is that while you roam around bouncing from Wifi to 3G or Edge, the phone gets confused at which connection to use.

You can reboot your phone and this will fix it, but that takes forever… Even easier, launch the mail app. Instead of just pressing the home button to get back to the home screen, hold the home button for 5 seconds. This forces the application to quit thus when you re-launch the application, the mail app refreshes and uses the appropriate connection.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • Print
  • Technorati
  • TwitThis
  • Ping.fm

Unfortunately, the Cisco SDM Application Policy defaults don’t actually contain all of the right AIM server hosts.

In your policy map, you need to deny server requests to aimhttp.oscar.aol.com and kdc.uas.aol.com. This is in addition to the default SDM hosts, it appears the older server hosts are still alive.

The aimhttp.oscar.aol.com is the http proxy AOL has setup to bypass blocked hosts.

The kdc.uas.aol.com is a new host that has appeared with the latest version of AIM.

You can fully test your Policy by downloading AIM and running the auto-config wizard. If AIM is able to find a connection to AOL servers, you don’t have something setup right.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • Print
  • Technorati
  • TwitThis
  • Ping.fm

My previous reference, “It couldn’t be any easier!”, was a little premature.. I take that back.

We have run in to a few issues with the iPhone and Exchange sync when trying to sync to a server with a self-signed certificate.

It seems the iPhone will not do business with a non CA Cert.

Here is how we bypass this little problem.

You first need a personal email account setup on your iPhone! (Gmail, Yahoo, .me)

For simplicity, on your computer, open IE and navigate to your Outlook Web Access (you can do this from the server if you are an advanced user), click on the cert button:

image thumb iPhone 2.0 and Exchange Setup   Part Two!

In the drop down, select View Certificates.

On your certificate window that just popped up, go to the Details tab.

image thumb1 iPhone 2.0 and Exchange Setup   Part Two!

Click on “Copy to File…”

Go through the wizard and export the certificate as a DER encoded binary (.CER) file. Put it on your desktop.

Once exported, take the new .cer file and send it via email, as an attachment, to your iPhone.

On your iPhone go to your Mail icon and go to the Inbox of the personal account. Find the email you just sent.

Scroll to the bottom of the email and click on the cert.cer file…

photo thumb1 iPhone 2.0 and Exchange Setup   Part Two!

After you click, you’ll be presented with the Install Profile screen.

Just click the Install button to install the certificate.

photo thumb2 iPhone 2.0 and Exchange Setup   Part Two!

Once complete, you can now sync with Exchange, complete the setup process outlined in my previous post!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • Print
  • Technorati
  • TwitThis
  • Ping.fm
Powered by WordPress Web Design by SRS Solutions © 2010 Ramblings from The Montopolis Group Design by SRS Solutions