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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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?
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.


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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read this checklist to learn more about the 15 things you should never include in an email signature.
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to:…
Suggested Courses

622 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