Exchange 2007 Content Filter Blocking An Email For One User

Posted on 2010-11-13
Last Modified: 2012-05-10
We have a small domain network of five users using Small Business Server 2008 and our email is handled by Exchange 2007 using Outlook 2010. The problem we have is that Exchange server is blocking an email sent from a classic ASP CDO Script. It only affects one user on the network, if I change the recipient address to someone else in the GAL the mail gets through or if I send it to a separate POP3 account it works fine, I hope this means there is no problem with the script (The script is listed below). I think I have narrowed down the problem to the content filter because if I disable it the email will arrive in the effected users Inbox almost immediately, likewise if I whitelist the email address using “Set-ContentFilterConfig -BypassedSenders”  at the Exchange Management Shell the email will arrive almost immediately, This is not really a satisfactory solution as we will use this script for different clients and email addresses and the same user never receives the emails. The affected users main email address, is in the GAL however the script uses an alternative email address for the user of which is set up in exchange

Our content filter settings are:
Delete massages with an SCL of 9
Reject messages with an SCL greater or equal to 7
Quarantine messages with an SCL greater or equal to 5
Quarantined messages are delivered to a redundant mailbox on exchange and one of the quarantined messages is shown below:-

Diagnostic information for administrators:
 Generating server: domain.lan
#550 5.2.1 Content Filter agent quarantined this message ##
 Original message headers:
 Received: from ( by ( with Microsoft SMTP Server id 8.1.436.0;
 Thu, 11 Nov 2010 10:42:28 +0000
Received: from IIS6105 (
 [])      by (Postfix) with SMTP id
 9693E141004E    for <>; Thu, 11 Nov 2010 10:42:27 +0000
Thread-Topic: Client One Contact Us Form
X-Mailer: Microsoft CDO for Windows 2000
thread-index: AcuBjSDPBCwBJGQPRbuRSCVadxYPxA==
From: <>
To: <>
Subject: Client One Contact Us Form
Date: Thu, 11 Nov 2010 10:42:25 +0000
Message-ID: <D7F10284126B47E8893FE9CAC72EFE0E@VHOSTS3.LOCAL>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4721
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
Received-SPF: None ( does not
 designate permitted sender hosts)

The ASP CDO scripts are sent using a Fasthosts server and a sample is:-

Set myMail=CreateObject("CDO.Message")
myMail.Subject="Contact Us Form"
' the email
myMail.TextBody= "Date/Time: " & Date() & " - " & Time() & vbcrlf & vbcrlf
myMail.TextBody=myMail.TextBody & "Name: " & FRMname & vbcrlf & vbcrlf
myMail.TextBody=myMail.TextBody & "Telephone: " & FRMphone & vbcrlf & vbcrlf
myMail.TextBody=myMail.TextBody & "Email Address: " & FRMemail & vbcrlf & vbcrlf
myMail.TextBody=myMail.TextBody & "Subject: " & FRMsubject & vbcrlf & vbcrlf
myMail.TextBody=myMail.TextBody & "Message: " & FRMmessage & vbcrlf & vbcrlf
myMail.Configuration.Fields.Item ("")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item ("")=""
'Server port
myMail.Configuration.Fields.Item ("")=25
set myMail=nothing

Sorry for such a long post but I have tried to include all the relevant information, I look forward to hearing your comments and suggestions.

Thank you,


Question by:Declaro
  • 3
  • 2

Accepted Solution

Shack-Daddy earned 500 total points
ID: 34130114
What if we said that the core of the issue was that sending it to a secondary email address for the user (not the primary one found in the GAL) was the key variable? Would you say that based on your testing that is true?

If you found that the content filter would reliably block delivery to a mailbox if the primary email address was not used, then how about creating a workaround with an email-enabled distribution list instead of using an additional alias on a user mailbox?

Or how about sending it to a service mailbox ( and the configure that mailbox to forward a copy (and not keep a local copy) to whichever user(s) is appropriate?

Author Comment

ID: 34130495
Hi Shack-Daddy,

Thanks for the response, Is was hoping it was caused by not being in the GAL, I am only a basic user of Exchange and do not really understand distribution lists properly but if that is the problem a service mailbox should work :) i have implemented that now for the user and I will test it tomorrow when he is back in the office and let you know.

Thanks for steering me in a new direction.

Expert Comment

ID: 34134161
ok soz m8 dus the mail get blocked or quarantined?
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.


Author Comment

ID: 34135359
Thanks for your input lala187, the mail would sometimes be rejected but mostly quarantined, I seem to have got it sorted now thanks to Shack-Daddy, I created a service email account and forwarded the emails to the affected user without storing a local copy and it appears to have worked, he is now getting the mail, hopefully it will work for other email addresses we will have to use in the future.

Thanks to everyone who contributed.


Expert Comment

ID: 34135458
just remember you get a higher spam score wen you don't use a authenticated smtp. that is y you get the quarantine and rejected massages to some users. you can always add your subject words to the content filter so it will allow your mail to pass with no rule filter.  Tested for the mail

Author Comment

ID: 34135965
Thanks for that lala187 it's a good idea and your advice is welcome as i'm learning about exchange on the job as it were :) it's one thing learning from videos but real world solutions and advice are always better.


Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now