My Two Cents on Where to Add Google Analytics in WordPress Part II

In my previous article, I gave my two cents on where you should add the Google Analytics code in WordPress. After fiddling around trying to optimize another site of mine’s, I discovered that this will probably do little to help improve page speed. It does delay the parsing of JavaScript since the client browser reads the HTTP GET request line by line, and it’s at the end, but the effect is probably minimal. I did discover that I could use the script defer attribute to delay the processing, and it had a greater impact. Even though the HTML5 specifications indicate that it should not be used without the src attribute, I tried it, and it appeared to have a greater effect, at least in Chrome. (I know that it may not work with all browsers because each browser will implement it differently.) I can at least say it did solve some problem with my webpages rendering correctly after I redesigned them using Responsive Design, so you might want to consider giving it a try.

Managing Quota Limits in SmarterMail Enterprise 9.4

A common problem that many email users may face without even knowing it is running out of email disk space.  Many users panic when they stop receiving email, and automatically assume there is something wrong at their mail provider’s end which may not be the case.  Many email hosting providers still put quota restrictions on email because let’s face it, disk storage systems still incur a business cost.  You can’t compare other email systems to say, Gmail, because frankly, Google has more money and resources to throw at the problem which makes it seem like you have an unlimited amount of email disk space.  In the earlier days of computing, running out of disk space was more prevalent.  Usually, a message is sent to the postmaster account of a domain notifying the mail administrator of the shortage allowing them to pinpoint the problem, however, sometimes, these system notifications won’t reach them.  Why?  Because I’ve seen users who sometimes use the postmaster account like a regular email account or change the Primary Domain Administrator (effectively postmaster) to one of their regular email accounts.  When the system tries to send a notification about a quota limit being reached, it bounces because it is full.  Fortunately, for those who have administrative access to manage email accounts in their domain, there is a reporting tool they can use to help them identify the problem quickly if the aforementioned scenario occurs.  To access this report:

  • Log into SmarterMail with a Primary Domain Administrator account (usually postmaster)
  • Click on the Reports icon (looks like 3 bars) on the menu to your left.
  • Expand the Domain Summary Reports folder.
  • Expand the Traffic Reports folder.
  • Click on Disk Usage.

SmarterMail Disk Usage Summary Report

And this is how you read the report.  The number under Total Disk actually represents how much disk space the email account is currently using.  The Max Disk column represents the quota limit for the account.  The Total in bold under the Total Disk column represents the total amount of space used in the domain.  This Total is usually the one you need to pay attention to because it’s the one your email hosting provider limits, but you should contact your email hosting provider to verify if they are provisioning your email based on the total amount for the domain or for each email account.  You now have several options to resolve the problem:

1) You can delete your email messages within SmarterMail to free up space or setup a POP3 email client program to download your messages to remove them off the server.

2) You can purchase more email disk space if your hosting provider offers that service.

3) If you’re not actually out of email disk space and have just hit a quota, then you can increase the quota limit within SmarterMail.

Adjusting Spam Settings in SmarterMail Enterprise 9.4

Every day, millions of unwanted spam messages are sent throughout the Internet.  I would venture to say that most people find them annoying but may not know that they can do something about it.  Fortunately, most email software available now come with some sort of spam filtering mechanism.  In this tutorial, I am only going to cover how to tweak the settings in SmarterMail Enterprise 9.4 because each spam filtering software works differently.

First of all, you’ll need to understand that there are three levels (server, domain, user) of spam filtering within SmarterMail.  If you are using SmarterMail from a hosting provider, you will probably not have access to adjust the settings at the server level, but you should have access to adjust the settings at the domain and user levels.  When you adjust the settings at the domain level, they will apply to all new email accounts created from the point you changed the settings.  If you change it at the user level, it should take effect immediately on that email account.  To adjust the settings at the domain level, you’ll need to log into SmarterMail with an email account that has Administrator access (usually postmaster).  Let’s start by logging into SmarterMail.  On the menu to your left, click on the Settings icon (looks like 2 cogs) which will bring up a Settings menu like the one below.

SmarterMail Spam Filtering Options

To adjust the settings at the user level, make sure you click on the Spam Filtering link under My Settings -> Filtering -> Spam Filtering.  To adjust the settings at the domain level, make sure you click the Spam Filtering link under Domain Settings -> Filtering -> Spam Filtering.  (Note that this option will not be available if you did not log in with an email account that has Administrator privileges.)  In the Spam Filtering window on your right, click on the Options tab and select Override spam settings for the domain.  Now, click on the Current Weights tab, and you should see this screen.

SmarterMail Spam Filtering Current Weights

On this page is a list of the criteria SmarterMail will use to score an email message and flag it as spam.  This will make more sense if you review the headers of an email message.  To review a header, click on the Email icon (looks like an envelope) on the menu to your left.  (Make sure you do this before making adjustments, otherwise, click on the Save button to save your current changes.)  Then click on the Inbox and select an email message.  All the way on the bottom right hand corner, click on the Header tab which should bring up a screen like the one below.

SmarterMail Email Headers

These are the two tags you want to pay attention to:

X-SmarterMail-Spam
X-SmarterMail-TotalSpamWeight

And here is an example of the complete lines from the header:

X-SmarterMail-Spam: SPF_None, SpamAssassin 5 [raw: 1], DK_None, DKIM_None
X-SmarterMail-TotalSpamWeight: 5

You’ll notice that these tags correlate directly with the criteria and values under Current Weights.  The total spam weight is determined by the sum of the criteria checked and values assigned to each criteria.  For example:

SPF_None (value 0)  + SpamAssassin 5 [raw: 1] (value 5) + DK_None (value 0) + DKIM_None (value 0) or 0 + 5 + 0 + 0 which equals 5.

You may notice that a criteria may be missing from your list such as SpamAssassin in this case.  That’s because it’s a criteria set by your mail server administrator at the server level which has not been delegated to you to adjust but will still affect the final calculation of the spam score.  It allows mail server administrators to configure a minimum thresh hold for spam filtering because turning it off completely could put too much of a burden on a server to process all the messages sent and flood users’ Inboxes with unwanted spam.  Note that DK_None actually corresponds to DomainKeys None and is just abbreviated. If you want to change the score of a message, then you need to assign different values to the criteria under Current Weights to change the outcome of the total spam weight.  (You can enter negative numbers which implies a positive scoring.)  Ultimately, the number you need to pay attention to is X-SmarterMail-TotalSpamWeight.  Now, let’s go back to the Spam Filtering settings page and click on the Actions tab.

SmarterMail Actions

On this page, you can direct SmarterMail to take one of three actions if the total spam weight equals or exceeds the values listed:

Delete Message
Move to Junk E-mail Folder
Add Text to Subject

Since we know the total spam weight of a message by viewing the headers, we can adjust the values here and select actions that will process the messages accordingly.  By changing the values under the Current Weights and Actions tabs, you can control the flow of spam messages into your email account so that they will at least not clutter up your Inbox. Make sure you also remember to click on the Save button to apply the changes you made, otherwise, they will not take effect.  There may be a lot of trial and error to get the settings just right to your liking.  Since no system is perfect, I would recommend not using the Delete Message action in case the filtering system flags a legitimate email incorrectly.  Even if you are confident that you have finally adjusted the settings correctly, I would still recommend that you don’t use the Delete Message action in case your mail server administrator decides to make tweaks at the server level which may throw off your own settings later.  Don’t worry, good mail server administrators won’t do this arbitrarily.  Remember, they are on your side.  They make these adjustments if they see an increase of spam activity on the server.  Their server level adjustments form a “baseline” for filtering spam messages, and their job is more difficult since they have to balance trying to capture a majority of the spam that reaches the server while allowing legitimate email messages through.  This is where further refinement must be done by you at the domain and user levels.

I also mentioned before that if you made the adjustments at the domain level, the settings will only be applied to new email accounts that are created.  Fortunately, there is a tool within SmarterMail that you can use to apply the changes you made at the domain level to existing email accounts.  Click on the Settings icon and navigate to Domain Settings -> Advanced Settings -> User Propagation by expanding the folders.  In the Options tab, select All Users or the individual email account in the drop down box next to Propagate To.  When you’re ready, click on the Propagate Now button to apply the changes to other existing email accounts.  Please note that the changes are not retroactive (i.e. they will not apply to existing email, only new incoming email).

SmarterMail User Propagation

That’s it.  You are now equipped and ready to deal with spam on your own terms.