Archive

Archive for May, 2009

How to suppress delivery- and read-receipts in Exchange 2007

For remote domains (Organization Configuration – Hub Transport) there are options for blocking delivery reports and non-delivery reports to remote domains.


As described in the online help the option for blocking delivery reports does ONLY affect read receipts.There’s also no option for disabling relay notifications “Delivery to these recipients or distribution lists is complete, but delivery notification was not sent by the destination:” (*)


However, these settings are only for remote domains. And there’s no option to disable delivery receipts and read receipts originating from the internet or sent internally.
For messages entering or leaving the Exchange organization via SMTP DSNs are requested using certain fields of the P2 header, such as


X-Confirm-To
Return-Receipt-To
Disposition-To-Notification
Receipt-Request-To


One approach to suppress such notifications is to remove these header fields using transport agents on ht and/or cas servers. But this does not fully solve the problem. If we assume that there are already agents present which remove the 4 header fields we see the following results:


(1) Messages from internal to external users:
 
Delivery receipts and read receipts are blocked, but notifications such as (*) are still being sent


(2) Message from external to internal users:
Both delivery receipts and read receipts are blocked.


(3) Message sent internally:


Read receipts and delivery receipts are still being sent.


Removing the header fields from internal messages does not help, as the request for receipts is “done” using MAPI properties.
 


To totally suppress delivery receipts and read receipts we can use a routing agent. The idea is to register it for the OnSubmittedMessage event wich occurs after the message is taken off the submitg queue.


The sample agent described in this article checks the message type and deletes messages of the following types:


Report.IPM.Note.DR (Delivery Receipt)
Report.IPM.Note.IPNRN (Read Receipt)
Report.IPM.Note.Relayed.DR (Relay Notification)


It also logs an event when deleting a message.


Setting up Visual Studio 2007 and creating the agent:


 1.) Create a C# project (dll/library type)
 2.) Copy the following DLLs from the C:\Program Files\Microsoft\Exchange Server\Public directory
     of an Exchange 2007 server to the debug directory of your new C# project:
     a) Microsoft.Exchange.Data.Common.dll
     b) Microsoft.Exchange.Data.Transport.dll
 3.) Add references to the two DLLs to the C# project using the Visual Studio solution explorer
 4.) Add the following code to your project:
 


//==============================================================================
// THIS IS SAMPLE CODE AND IS ENTIRELY UNSUPPORTED. THIS CODE AND INFORMATION
// IS PROVIDED “AS-IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO AN IMPLIED WARRANTY OF MERCHANTABILITY AND/OR
// FITNESS FOR A PARTICULAR PURPOSE.
//==============================================================================


using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using Microsoft.Exchange.Data.Transport;
using Microsoft.Exchange.Data.Transport.Email;
using Microsoft.Exchange.Data.Transport.Smtp;
using Microsoft.Exchange.Data.Transport.Routing;
using Microsoft.Exchange.Data.Common;
 
namespace MyRoutingAgent
{
   public class SampleRoutingAgentFactory : RoutingAgentFactory
   {
      public override RoutingAgent CreateAgent(SmtpServer server)
      {
         RoutingAgent myAgent = new ownRoutingAgent();


         return myAgent;
      }
   }
}


 


public class ownRoutingAgent : RoutingAgent
{
   public ownRoutingAgent()
   {
      // Subscribe to events


      base.OnSubmittedMessage += new
      SubmittedMessageEventHandler(ownRoutingAgent_OnSubmittedMessage);
   }


   void ownRoutingAgent_OnSubmittedMessage(SubmittedMessageEventSource source, QueuedMessageEventArgs e)
   {


      if (e.MailItem.Message.MapiMessageClass == “Report.IPM.Note.DR” ||
      e.MailItem.Message.MapiMessageClass == “Report.IPM.Note.Relayed.DR”||
      e.MailItem.Message.MapiMessageClass == “Report.IPM.Note.IPNNRN”)


      {
         try
         {
            source.Delete();
            EventLog.WriteEntry(“MyRoutingAgent”, “Deleted Message:\r\n” +
            “Type: ” + e.MailItem.Message.MapiMessageClass + “\r\n”
            + “Subject: ” + e.MailItem.Message.Subject + “\r\n”
            + “From: ” + e.MailItem.Message.Sender.SmtpAddress + “\r\n”,
            EventLogEntryType.Information, 666 );
         }


         catch (Exception except)
         {
            EventLog.WriteEntry(“My Routing Agent”, except.Message,
            EventLogEntryType.Error);
         }
      }
   }
}


 5.) Compile the DLL
 6.) Copy the DLL to the HT server
 7.) Install the transport agent using the Exchange Management Shell:
     Install-TransportAgent -Name “OwnTestAgent” -TransportAgentFactory “MyRoutingAgent.SampleRoutingAgentFactory” -AssemblyPath “Path to DLL”
 8.) Enable the transport agent using the Exchange Management Shell:
     Enable-TransportAgent “OwnTestAgent”
 9.) IMPORTANT:
     Exit Powershell
10.) IMPORTANT:
     Restart the MSExchangeTransport service
11.) Verify that the agent was successfully enabled / registered by running
     Get-Transportagent
12.) Give the network service account full control to the following registry key:
     HKLM\System CCS\services\Eventlog
     (only necessary when writing to the event log)


Tips:



  • To live debug the dll you need to attach to edgetransport.exe.

  • To recompile after a change


    • detach from edgetransport

    • stop the transport service (otherwise Visual studio won’t be able to overwrite the file) 
      (only if you registered the dll from the \debug folder

  • Sometimes messages remain in the outbox until the mail submission service is restarted
     

How can you test if relay notifications are suppressed as well?
Need to generate such messages in the test environment. The question is – how?


– Configure SMTP service on a Windows 2003 server (or XP, Vista, …) to accept messages for a certain domain (e.g. tailspintoys.com)
– Create send connector pointing to this machine
– Send a test message asking for DR
– No DR will be sent, but message is successfully deliverd to drop directory
– Telnet to W2K3 machine and sending EHLO shows that DSNs are supported
– Switch off ESMTP verb DSN in metabase (262168 How to turn off 8BITMIME in Windows 2000 and in Windows Server 2003 SMTP service)
– Repeat the telnet test to confirm that DSN is no longer advertised
– Send another test message – this time Exchange generates the relay notification


 

Categories: Uncategorized Tags:

Update improves Windows Home Server Console display on some Netbooks

May 27th, 2009 No comments

There is good news if you are one of the many people that purchased a netbook computer over the past while. A home server and a netbook can be a complementary solution. In addition to the image-based backup software included in Windows Home Server, the ability to augment the netbook storage space with a home server is a no-brainer. Shad Larsen commented on this solution in a post, “Making your Netbook functional using Windows 7 and Windows Home Server.


Netbook


Photo: Acer Aspire One A150


One of the benefits of a netbook is the small size and portability of the device.  However, that size means a smaller screen and less visual real estate for applications. As a result, the Windows Home Server Console may not have displayed correctly on some netbook computers. The latest update, described in the Microsoft Knowledge Base article 963032, enables the Windows Home Server Console to support a resolution of 1024 x 600.


The update will automatically install as part of Windows Update if Automatic Updates is enabled on the home server. (How to turn on automatic updates.) Users can also click Update Now on the Settings tab of the Windows Home Server Console.


– Steven

Windows Home Server – Imaginations are unleashed with the Add-in Idea Challenge

May 22nd, 2009 No comments

Earlier this month, Terry Walsh at We Got Served announced the launch of a new Windows Home Server add-in competition.  Announcing the Windows Home Server Add-In Idea Challenge ‘09!


With an interesting format, this competition should attract the attention of a broad group of Windows Home Server enthusiasts.  As opposed to actually developing the Windows Home Server add-ins, We Got Served is simply looking for the best ideas.


Excerpt from blog post… “You don’t have to be a developer or technically minded to enter. All you need is your creativity and imagination to come up with the best idea for a future Windows Home Server add-in, which will then be coded up and released to the community for all to share.”


There is still some time left to submit your ideas!  The entry period closes on May 31st, and voting will commence in June.  Developer Felix Kollmann (author of Router Control) will turn your idea into reality.


The Windows Home Server team anticipates seeing some terrific ideas from this community-led challenge.  The winners may be featured in stories on the Windows Home Server Community web page.  We showcase some of the most popular add-ins every month on the Windows Home Server add-ins page and your idea for an add-in may join the ranks of over 100 Windows Home Server add-ins available.  For a comprehensive list, visit Home Server plus


Whiist


Pictured: “Hall of Fame” winner of the Code2Fame contest, Andrew Grant’s Whiist.


If you need any added encouragement, here it is!  Microsoft was asked to contribute some prizes for the contest… and believe me, they are awesome!


xbox360.jpg


– Steven

Categories: add-ins, community, developers, Platform Tags:

Windows Home Server – Acer Launches Aspire EasyStore Home Server in US

May 22nd, 2009 No comments

In case folks missed this, but today was an important milestone for the Windows Home Server category, with another major manufacturer – Acer – launching their product, the Acer Aspire EasyStore Home Server H.340 here in the United States.  At $399 for a 2GB RAM with 1 TB HDD included (up to 4 HDDs supported), it’s a great value for all of you looking to add a Home Server to your repertoire. 


Now available for pre-order at Amazon.com


  Acerhomeserver1


Still not convinced?  Check out the good reviews for the product on CNET, Crunchgear, Gizmodo, and Engadget


Congratulations Acer!  Welcome to the Windows Home Server family!


– MP

Categories: Hardware, Marketing, Press, Releases Tags:

What is an Extrace ?

So I wanted to Write a post, where I mentioned, that we used for troubleshooting extrace, but I scould not find any good public link for explaining , what is an Exchange Extrace. Actually I therefore reutilize an old Explanation for an OWA Extrace, which I sent several times to customers, but which was initially from an international colleague, I even do not remember (Yes we have a creative commons license internally, where we reutilize content for the benefit of our customers)


How to take EWS/OWA/ETL trace to troubleshoot Exchange Web Services issues and view them using ExTrace.exe



  • 1) Go to the Exchange Server and fire up Extra.exe (c:\Program Files\Microsoft\Exchange Server\Bin\ExTRA.exe)

  • 2) This will bring the following window, click on ‘Select a task’


Extrace step 1



  • 3) Click on “Trace Control”


Extrace step 2




  • 4) Configure the trace options, file location, maximum file size (10-20mb should be enough for normal scenarios)

  • 5) Select sequential logging, and run traces for a time period in which you should be able to reproduce the issue. Usually 300 seconds are good enough to switch over and reproduce the error.

  • 6) Click “Set components and tags for the type of tracing selected”

  • 7) Type of tracing will me “6. OWA Tracing”


Extrace 3



  • 8) Under trace types, select all of them to get a verbose log

  • 9) Under components, OWA will be selected by default – you might want to uncheck that as it will add logs for OWA traffic as well

  • 10) Choose trace components according to your problem, in basic scenarios and EWS issues MSExchangeWebServices should be sufficient.

  • 11) These are the providers which looks good to get a detailed log and uncovering the hidden issues somewhere in the communication.

  • a. ADProvider

  • b. ADRecipientCache

  • c. ADExpansion

  • d. AuthenticationProvider

  • e. Common

  • f. Diagnostics

  • g. MSExchangeWebServices

  • h. NetworkingLayer

Note: Selecting multiple providers will increase the size of log and will make it difficult to analyze, so make sure you collect as much data as you require.



  • 12) You can further filter it on the basis of following criteria

  • a. UserDN

  • b. SenderSMTP

  • c. RecipientSMTP

  • d. Subject

  • e. MailboxGuid

  • f. MailboxDatabaseGuid

  • g. WindowsIdentity

  • 13) Once done, hit Start tracing

Extrace 4




  • 14) It will run the trace for the specified duration, keep it running and reproduce the problem

Extrace 5




  • 15) Once done it will generate a binary file (.ETL) which contains all the proprietary & confidential information.

  • 16) Customers currently cannot analyze the extraces themselves.

Therefore, please send them to Microsoft Support. You can even try to ping someone in the Microsoft Newsgroups, so that he  or she can try to grab Your Extrace. I am definitely open to analyze at least 3 Extraces to anybody, who comments on this site, that he wants us to analyze his Extrace.

Updated NAP SDK samples released

May 14th, 2009 No comments
Categories: Uncategorized Tags:

Updated NAP SDK samples released

May 14th, 2009 No comments
Categories: Uncategorized Tags:

Updated NAP SDK samples released

May 14th, 2009 No comments
Categories: Uncategorized Tags:

Updated NAP SDK samples released

May 14th, 2009 No comments
Categories: Uncategorized Tags:

Updated NAP SDK samples released

May 14th, 2009 Comments off
Categories: Uncategorized Tags:

Updated NAP SDK samples released

May 13th, 2009 No comments
Categories: Uncategorized Tags:

Microsoft Security Advisory (969136): Vulnerability in Microsoft Office PowerPoint Could Allow Remote Code Execution – Version: 2.0

Revision Note: V2.0 (May 12, 2009): Advisory updated to reflect publication of security bulletin.
Summary: Microsoft has completed the investigation into a public report of this vulnerability. We have issued MS09-017 to address this issue. For more information about this issue, including download links for an available security update, please review MS09-017. The vulnerability addressed is the Memory Corruption Vulnerability – CVE-2009-0556.

Categories: Uncategorized Tags:

Microsoft Security Advisory (969136): Vulnerability in Microsoft Office PowerPoint Could Allow Remote Code Execution – 5/12/2009

May 12th, 2009 Comments off

Revision Note: V2.0 (May 12, 2009): Advisory updated to reflect publication of security bulletin. Advisory Summary:Microsoft has completed the investigation into a public report of this vulnerability. We have issued MS09-017 to address this issue. For more information about this issue, including download links for an available security update, please review MS09-017. The vulnerability addressed is the Memory Corruption Vulnerability – CVE-2009-0556.

Categories: Uncategorized Tags:

See NAP at TechEd 2009

May 12th, 2009 No comments

Hey NAP Fans!


If you are attending TechEd 2009 in Los Angeles this week, be sure to stop by the NAP booth in the Microsoft Technical Learning Center (TLC).  It is a great opportunity to meet and speak with NAP team members and learn about some of the enhancements and new scenarios in Windows® 7 and Windows® Server 2008 R2. 


Also there are at least two breakout sessions that would be useful for anyone interested in learning more about NAP deployments.   Both are on Friday May 15th:


WSV206 Windows Clients and Windows Server 2008 NAP: Why They Are Better Together


Presenter: Jay Ferron


Fri 5/15 | 9:00 AM-10:15 AM | Room 502A


 


WSV305 Deploying NAP: Best Practices and Lessons Learned


Presenters: Venkatesh Gopalakrishnan, Lambert Green


Fri 5/15 | 2:45 PM-4:00 PM | Room 403B


 


Hope to see you there,


The NAP Team

See NAP at TechEd 2009

May 12th, 2009 No comments

Hey NAP Fans!


If you are attending TechEd 2009 in Los Angeles this week, be sure to stop by the NAP booth in the Microsoft Technical Learning Center (TLC).  It is a great opportunity to meet and speak with NAP team members and learn about some of the enhancements and new scenarios in Windows® 7 and Windows® Server 2008 R2. 


Also there are at least two breakout sessions that would be useful for anyone interested in learning more about NAP deployments.   Both are on Friday May 15th:


WSV206 Windows Clients and Windows Server 2008 NAP: Why They Are Better Together


Presenter: Jay Ferron


Fri 5/15 | 9:00 AM-10:15 AM | Room 502A


 


WSV305 Deploying NAP: Best Practices and Lessons Learned


Presenters: Venkatesh Gopalakrishnan, Lambert Green


Fri 5/15 | 2:45 PM-4:00 PM | Room 403B


 


Hope to see you there,


The NAP Team

See NAP at TechEd 2009

May 12th, 2009 No comments

Hey NAP Fans!


If you are attending TechEd 2009 in Los Angeles this week, be sure to stop by the NAP booth in the Microsoft Technical Learning Center (TLC).  It is a great opportunity to meet and speak with NAP team members and learn about some of the enhancements and new scenarios in Windows® 7 and Windows® Server 2008 R2. 


Also there are at least two breakout sessions that would be useful for anyone interested in learning more about NAP deployments.   Both are on Friday May 15th:


WSV206 Windows Clients and Windows Server 2008 NAP: Why They Are Better Together


Presenter: Jay Ferron


Fri 5/15 | 9:00 AM-10:15 AM | Room 502A


 


WSV305 Deploying NAP: Best Practices and Lessons Learned


Presenters: Venkatesh Gopalakrishnan, Lambert Green


Fri 5/15 | 2:45 PM-4:00 PM | Room 403B


 


Hope to see you there,


The NAP Team

See NAP at TechEd 2009

May 12th, 2009 No comments

Hey NAP Fans!


If you are attending TechEd 2009 in Los Angeles this week, be sure to stop by the NAP booth in the Microsoft Technical Learning Center (TLC).  It is a great opportunity to meet and speak with NAP team members and learn about some of the enhancements and new scenarios in Windows® 7 and Windows® Server 2008 R2. 


Also there are at least two breakout sessions that would be useful for anyone interested in learning more about NAP deployments.   Both are on Friday May 15th:


WSV206 Windows Clients and Windows Server 2008 NAP: Why They Are Better Together


Presenter: Jay Ferron


Fri 5/15 | 9:00 AM-10:15 AM | Room 502A


 


WSV305 Deploying NAP: Best Practices and Lessons Learned


Presenters: Venkatesh Gopalakrishnan, Lambert Green


Fri 5/15 | 2:45 PM-4:00 PM | Room 403B


 


Hope to see you there,


The NAP Team

See NAP at TechEd 2009

May 12th, 2009 Comments off

Hey NAP Fans!


If you are attending TechEd 2009 in Los Angeles this week, be sure to stop by the NAP booth in the Microsoft Technical Learning Center (TLC).  It is a great opportunity to meet and speak with NAP team members and learn about some of the enhancements and new scenarios in Windows® 7 and Windows® Server 2008 R2. 


Also there are at least two breakout sessions that would be useful for anyone interested in learning more about NAP deployments.   Both are on Friday May 15th:


WSV206 Windows Clients and Windows Server 2008 NAP: Why They Are Better Together


Presenter: Jay Ferron


Fri 5/15 | 9:00 AM-10:15 AM | Room 502A


 


WSV305 Deploying NAP: Best Practices and Lessons Learned


Presenters: Venkatesh Gopalakrishnan, Lambert Green


Fri 5/15 | 2:45 PM-4:00 PM | Room 403B


 


Hope to see you there,


The NAP Team

See NAP at TechEd 2009

May 11th, 2009 No comments

Hey NAP Fans!

If you are attending TechEd 2009 in Los Angeles this week, be sure to stop by the NAP booth in the Microsoft Technical Learning Center (TLC).  It is a great opportunity to meet and speak with NAP team members and learn about some of the enhancements and new scenarios in Windows® 7 and Windows® Server 2008 R2. 

Also there are at least two breakout sessions that would be useful for anyone interested in learning more about NAP deployments.   Both are on Friday May 15th:

WSV206 Windows Clients and Windows Server 2008 NAP: Why They Are Better Together

Presenter: Jay Ferron

Fri 5/15 | 9:00 AM-10:15 AM | Room 502A

 

WSV305 Deploying NAP: Best Practices and Lessons Learned

Presenters: Venkatesh Gopalakrishnan, Lambert Green

Fri 5/15 | 2:45 PM-4:00 PM | Room 403B

 

Hope to see you there,

The NAP Team

Windows Home Server – Visit us at Microsoft Tech-Ed North America

May 7th, 2009 No comments

IT Professionals and Developers will be descending upon the Los Angeles Convention Center next week to learn about a broad set of current and upcoming Microsoft technologies, tools, platforms, and services.

image LX195
Photo: Tech-Ed 2008 Photo: HP MediaSmart LX195

Windows Home Server will have a booth presence in the Expo Hall.  This is a chance for Tech-Ed attendees to get a hands-on experience with the latest Windows Home Server software and chat with members of the team.  We’ll be featuring the HP MediaSmart EX487 and, the newest addition to the family, the HP MediaSmart LX195. 

If you know somebody who will be at the event, please send them our way.  If you will be there yourself, please drop by the Windows Home Server booth.

-Steven

Categories: developers, events, Team Tags: