Quantcast
Channel: Exchange Server Development forum
Viewing all 7132 articles
Browse latest View live

Not Able to Login to one email account via this API EWS 1.2

$
0
0

Hi All,

Am using EWS Java API 1.2 Version. I integrated this API and the web service was working fine for more than 8 months. The webservice which we integrated and exposed was working fine for all the email accounts.

Now suddenly am facing an issue like, my webservice is not working for two particular email accounts. The same service is working fine for my email account and some support email accounts. And also am able to login to those email accounts via web mail. So there is no issue with password. Am getting "Connection not established" error via our API. For the same email accounts the service was working fine some two weeks ago.

Can you please help me in resolving this issue? This is highly critical in my project. Is there any setting that i have to check in email account?






How to keep MAPI properties when processing message data in RFC822 format in an Exchange Server 2007/2010 transport agent?

$
0
0

We are developing an agent listening for the submit or endOfData event from the Exchange Server. Due to various reasons we need to convert the Exchange Mail internally to RFC822 format.
So our MessageProcessor internally converts the message stream (usually TNEF) into RFC822 format. This means when written our modified content back to ‘e.MailItem’ we write the converted content back.
It seems that this conversion causes a loss of some MAPI properties of the message.
When out-of-office-mails are enabled for an account the Exchange Server generates both messages the OOF message for internal recipients and the OOF message external recipients.
When sending an internal message using voting buttons the message arrives without that voting information.

voidAgent_OnSubmittedMessage(SubmittedMessageEventSource source,QueuedMessageEventArgs e){MessageProcessor proc =newMessageProcessor();Stream messageContent = e.MailItem.GetMimeReadStream();Stream processedMail = proc.ProcessExchangeMessage(messageContent);// internally converts the message to RFC822Stream writeStream = e.MailItem.GetMimeWriteStream();
            processedMail.CopyToStream(writeStream);}

We also tried a dirty „hack“ using the Exchange Server internal method for converting the message from TNEF to RFC822 “ConvertAnyMimeToMime” from “Microsoft.Exchange.Data.Storage.OutboundConversionOptions”, but using that method causes the same issue.

Now my idea was cloning all MAPI properties not related to the content of a message and reapply them after writing the RFC822 content back to into e.MailItem.

Any idea how we can overcome our problems?



Best regards,
 
Harald Binkle


Exchange Server Toolbox |SmartPOP2Exchange | SpamAssassin
JAM Software GmbH
Max-Planck-Str.22 * 54296 Trier * Germany
http://www.jam-software.com

send email (c#) using ews and set custom display name (from)

$
0
0

How to connect to exchange service via exchange web services send a mail and the display name is custom ?
With this code, just connect to exchange server (ews) and send a mail.
How to change my code ?

        private void t() {
            const string subjectBody = "test email ";
            const string username = "username";
            const string password = "password";
            const string domain = "domain";
            const string ewsURL = "http://exchangesrv/ews/exchange.asmx";

            unews.ExchangeServiceBinding esb = new unews.ExchangeServiceBinding();
            esb.Credentials = new System.Net.NetworkCredential( username, password, domain );

            esb.Url = ewsURL;
            unews.CreateItemType newItem = new unews.CreateItemType();
            newItem.MessageDisposition = unews.MessageDispositionType.SendAndSaveCopy;
            newItem.MessageDispositionSpecified = true;

            unews.MessageType msg = new unews.MessageType();

            msg.Subject = subjectBody;
            msg.Body = new unews.BodyType();
            msg.Body.BodyType1 = unews.BodyTypeType.Text;
            msg.Body.Value = subjectBody;
            msg.ToRecipients = new unews.EmailAddressType[1];
            msg.ToRecipients[0] = new unews.EmailAddressType();
            msg.ToRecipients[0].EmailAddress = "mail@domain.com";
            newItem.Items = new unews.NonEmptyArrayOfAllItemsType();
            newItem.Items.Items = new unews.ItemType[1];
            newItem.Items.Items[0] = msg;

            try {
                unews.CreateItemResponseType createItemResponse = esb.CreateItem( newItem );
                if (createItemResponse.ResponseMessages.Items[0].ResponseClass == unews.ResponseClassType.Error) {
                    throw new Exception( createItemResponse.ResponseMessages.Items[0].MessageText );
                }
                else {
                    Console.WriteLine( "Item was created" );
                }
            }
            catch (Exception ex) {
                Console.WriteLine( ex.ToString() );
            }
        }


/*
With this code, can connect to a exchange server (smtp) and send a mail, with a custom display name.

System.Net.Mail.SmtpClient smtpc = new System.Net.Mail.SmtpClient( "exchangesrv"  );
System.Net.Mail.MailMessage mm = new System.Net.Mail.MailMessage( "CustomDisplayName <email@domain.biz>", "email@domain.biz", "test email", "test email" );
smtpc.Credentials = new System.Net.NetworkCredential( "username", "password", "domain" );
smtpc.Send( mm );

*/

Changing Domain Controller for Exchange 2013

$
0
0
I have two domain controller dc08 (Win2008) and dc12 (Win2012) and all user logon dc08, Now I want to logon dc12 from every user/client machine. If we turn off dc08 then exchange server 2013 did not  work and exchange management shell not connecting. Now we want to remove dc08 from the organization.  Let me know the step by step procedure. 

Md. Ramin Hossain

C++ CryptProtectData - Exchange MAPI Profile - How to set variables

$
0
0

Hi,

i am trying to use the CryptProtectData function so i can encrypt my password and use it inside my MAPI profile. I am using these 2  ttp://blogs.msdn.com/b/dvespa/archive/2013/05/21/how-to-mfcmapi-create-mapi-profile-exchange-2013.aspx
and ttp://blogs.msdn.com/b/dvespa/archive/2013/07/15/create-profile-connect-mfcmapi-to-office-365.aspx articles for connecting to my hosted exchange(2013) account with MFCMAPI. When setting all my properties i am being prompted for my credentials, and there i got the problem that the field provided for the domain is too short for my domain. So i have to set these properties manually (howto is described in the second article).

Now i need to set my username and password in my MAPI profile and it seems like i need to encrpyt the password by my own (i have to build an application to do so).  I am using "MAPI Download configuration guidance.docx" (can be downloaded from - www. microsoft.com/en-us/download/details.aspx?id=39045 - the piece of code i am using is at the end of the document) for building my own application to encrypt my password (i am using the smaller example for just encrypting the password, not for creating the whole profile). There i got a lot of problems, the application didnt run on a 32bit Windows, than the crypt32.lib was missing (i had to create it by my own) and so on. Now i got it running on a 64bit machine, but now i am not sure how to provide my data to the program.  

I have the following code:

std::string stemp = "myPassword"; std::wstring stemp1 = std::wstring(stemp.begin(), stemp.end()); LPWSTR pwszPassword = (LPWSTR)stemp1.c_str();//stemp.c_str();// HRESULT hr = S_OK; DATA_BLOB dataBlobIn = {0}; DATA_BLOB dataBlobOut = {0}; SPropValue propValues[2] = {0}; // Validate parameters // Encrypt password based on local user authentication dataBlobIn.pbData = (LPBYTE)pwszPassword; // Include NULL character dataBlobIn.cbData = (::wcslen(pwszPassword) + 1) * sizeof(WCHAR);

CryptProtectData(
            &dataBlobIn,
            NULL,
            NULL,
            NULL,
            NULL,
            0,
            &dataBlobOut);

std::cout<<"\n-- ";
  std::wcout<<(dataBlobOut.cbData);
  std::cout<<" --\n";
  std::wcout<<(dataBlobOut.pbData);


Now when outputting these 2 values, for dataBlobOut.cbData i mostly get "230" (i thought that this might change when i change the size of the password, but it does not, it has the same value for passwords like "aaa", "bbb","cc" ...), and for dataBlobOut.pbData i get a Hexadezimal value  (something like 0x2cde50) i think it is the address of the variable, since pbData is a pointer.

Since i am getting the exact same values for  diffrente passwords i assume that my approach is not right. But what do i have to change to get my encrypted password so i can fill the property PR_PROFILE_AUTH_PASSWORD ?

Kind regards

P.s. since i need to verify my account to post links, but i cannot because the thread for verifying is closed i will just cripple the links

Semir


Accessing Exchange 2010 SP2 via EWS 2.0 results in Microsoft.Exchange.WebServices.Data.ServiceRequestException: The response received from the service didn't contain valid XML.

$
0
0

I am trying to send an e-mail from a C#-application using the Exchange Web Services, v2.0.

When I for instance try to send an e-mail, the e-mail is send properly. However, the XML output returning from the server results in an exception.

For instance, when I send an e-mail from code, I get the following trace output. The e-mail is sent succesfully, but the output cannot be processed. I enabled tracing resulting in the meesage below.

</Trace>
3b5
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="<h:ServerVersionInfo">http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="14" MinorVersion="2" MajorBuildNumber="318" MinorBuildNumber="4" Version="Exchange2010_SP2" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSA first chance exception of type 'Microsoft.Exchange.WebServices.Data.ServiceRequestException' occurred in Microsoft.Exchange.WebServices.dll
chema"/></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="<m:CreateItemResponse">http://www.w3.org/2001/XMLSchema"><m:CreateItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="<m:ResponseMessages><m:CreateItemResponseMessage">http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:CreateItemResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode><m:Items/></m:CreateItemResponseMessage></m:ResponseMessages></m:CreateItemResponse>
16
</s:Body></s:Envelope>
0

I use the following code to send the e-mail (anonymized the used mail addresses):

EmailMessage mail = new EmailMessage(service);
mail.From = new EmailAddress(@"testfrom@test.com");
mail.ToRecipients.Add("testto@test.com");
mail.Subject = "Email Subject";
mail.Body = "Email Body";
mail.Send();

The exception occurs after sending. The e-mail is send properly. However, the client application cannot process the server output / response. It results in the following exception:

Microsoft.Exchange.WebServices.Data.ServiceRequestException: The response received from the service didn't contain valid XML. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.

I hope somebody has experience with this specific web service and can assist in resolving the issue described in the above.


Computer Science Made Easy

Cmdlet Failed. Cmdlet Test-OutlookWebServices, parameters {Monitoring Context= True}

$
0
0


Receiving Below error every now and than in our Exchange Server production environment, 

Exchange Server: 2010 SP3
Server OS: Windows server 2008 R2
Role Holder: CAS/HT

Log Error:

Log Name:      MSExchange Management
Source:        MSExchange CmdletLogs
Date:          20-12-2013 18:59:10
Event ID:      6
Task Category: General
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      EXCHHTCAS2.test.local
Description:
Cmdlet failed. Cmdlet Test-OutlookConnectivity, parameters {Protocol=TCP, TrustAnySslCert=True, MonitoringContext=True}.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MSExchange CmdletLogs" />
    <EventID Qualifiers="49152">6</EventID>
    <Level>2</Level>
    <Task>1</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-12-20T13:29:10.000000000Z" />
    <EventRecordID>267940</EventRecordID>
    <Channel>MSExchange Management</Channel>
    <Computer>EXCHHTCAS2.test.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Test-OutlookConnectivity</Data>
    <Data>{Protocol=TCP, TrustAnySslCert=True, MonitoringContext=True}</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>Exchange Management Console-Local</Data>
    <Data>7132</Data>
    <Data>
    </Data>
    <Data>240</Data>
    <Data>00:00:00.0624984</Data>
    <Data>View Entire Forest: 'False', Default Scope: 'test.local', Configuration Domain Controller: 'HINJEWADI.test.local', Preferred Global Catalog: 'HINJEWADI.test.local', Preferred Domain Controllers: '{ HINJEWADI.test.local }'</Data>
    <Data>Microsoft.Exchange.Monitoring.MailboxNotFoundException: Failed to find the mailbox. Mailbox = 'extest_488a8cc015844@test.local'.
   at Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask.GetDefaultTestAccount(ClientAccessContext context, MailboxIdParameter&amp; mailboxId)
   at Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask.GetTestMailbox()
   at Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask.get_Identity()
   at Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask.InternalValidate()</Data>
    <Data>14</Data>
    <Data>
    </Data>
  </EventData>
</Event>

We have also checked no task scheduler or such job is enabled, still within in few hours we get MSExchange CmdletLogs with error code 6. 

While running Best Practices Analyzer:


We were earlier using Exchange 2003 environment, its been few months we have migrated to Exchange 2010 SP3, we have removed all the older version application successfully after proper migration of the database and other files, still our production server shows us with the FrontEnd Server error which in reality does not exists in our environment.

We are seeking some guidance as Googlin isn't kicking us anywhere.

If any further logs required please inform, as i am not able to attach images right now.

Regards,

Gyan Mainali

2 exchange servers, same domain and custom transport

$
0
0

Hello,

I have seen a lot of questions in the forum related two 2 exchange servers in the same domain. Some of them really clarifies how to configure it.

I have a very specific problem. The servers does not have a TCP/IP connection between them, so we would like to exchange messages between them using a custom "FTP-like" protocol. The idea would be to use the Pickup / Replay directories.

Is it possible to configure a custom transport connector between two exchange servers?

I have setup an architecture where the initial transport connector would use plain FTP to test. This would be my Proof Of Concept to our customer. I would setup a daemon to send messages from the replay to the pickup directory of the other server.

Best regards,

Romano


processing folder id is not giving correct owner name

$
0
0

I have addin developed for outlook 2010. on some event i get the store id of the folder, which I believe addin is getting from exchange as exchange store folders information,Now from folder id I try to convert the user information by converting hexadecimal string into a string, as expected its giving me information in the format.

from here i can grab the user name and can do my operation, this works well in out environment and some of the clients as well.  for one of the client the user name is coming differently. 

the actual user name who is having this issue is Pawan Gupta, but processing folder id is giving UKPGC as user name, to investigate it further they have given this reply.

globally we have a concept of Concern Wide ID – you are assigned this on joining and it stays with you forever. This includes it being the most distinguished part of the CN of your AD account (which is where Exchange will be pulling info from eventually) and your ‘pre Windows 2000 Login’ ..  Most of our users  will login in DOMAIN\CWID manner, NTLM style login so if there is a local query on an env variable, or if the LDAP query is something other than ‘email address’ field of the AD it’ll likely get the 5 char accout name rather than the email address. ‘User Logon name’ should also return pl.gi@xyz.com in this instance.

I am not a exchange expert, so do not know what exactly they are doing and what information is missing in AD account of above specified user and wht they should put instead. Please let me know if this is some limitation of using folder id to get the owner/displayname of the folder.

Thanks

Nitin

Exchange 2010 SP3 install

$
0
0

Hi,

I am running with Exchange 2010 SP1 in DAG & CAS/HUB in cluster mode. need to upgrade to SP3. few things need to know

1. Schema upgrade will be done I as read in the article. can this create any issue? what is the best measure to safeguard any problems of schema upgrade. Do we do this along with exchange setup or we should run schema upgrade prior to install exchange 2010 SP3?

2. Any impact on active sync, outlook anywhere & HUB connectors side post SP3?

3. Do we need to take any exchange related backups as we are running mailbox, CAS/HUB servers in redundant mode?

Please share your experiences.

Regards,

VIpin

eMAIL forwarding details.

$
0
0

Hi. how can we get detail about from which date/time email forwarding is enabled for a user in exchange 2007 server.

Fetch folder Creation and Modification Date using EWS

$
0
0

Hi all,

I need to fetch the date of creation and modification of a Mailbox folder  using EWS.

How can i do that ?

Thanks,

Gagan


Gagan

[E2007] [TA] HTML disclaimer (inc. images) possible?

$
0
0
Hi everyone,

we have been using exchange for about 10 years now, and only now came the necessity of adding a banner to our corporate email.

we have exchange 2007, btw.

I have been doing heavy searching and found out that html disclaimers are possible in:

exchange 2000 - with smtpreg.vbs (http://msdn.microsoft.com/en-us/library/ms528023%28v=exchg.10%29.aspx) and EventSinkScript.vbs (http://support.microsoft.com/kb/317680)

exchange 2003 - with smtpreg.vbs (http://msdn.microsoft.com/en-us/library/ms528023%28v=exchg.10%29.aspx) and EventSinkScript.vbs (http://support.microsoft.com/kb/317680)

exchange 2007 - you have to write a transport-agent!

exchange 2010 - natively

exchange 2013 - natively

Why did MS forget about exch2007 html disclaimers, while all other editions this is documented and supported?

So my question is, is there an equivalente EventSinkScript.vbs for exchange 2007?

Some samples or someone that can make one?

thanks a lot for your time and help.

C# EWS - Get user quota limit

$
0
0

Hi,

How can I get the user's Mailbox quota limit (PR_PROHIBIT_RECEIVE_QUOTA, PidTagProhibitReceiveQuota, ptagProhibitReceiveQuota) using C# Exchange Web Service?

Thanks!

Disable Exchange Calendar on the Server

$
0
0
I know this is crazy but I'll ask anyway. Is there a way to disable the calendar functionality in Exchange for the entire server and all users? I want to use exchange for only email and use google calendar. At some point, I will enable exchange calendaring and migrate all the users to it. Thanks.

Exchange Commands on VB Program (PLEASE HELP!)

$
0
0

Hey everyone, I am trying to create a VB program where I will be able to run an exchange command when a button is clicked in my program using Basic Authentication. (http://msdn.microsoft.com/en-us/library/office/ff326159(v=exchg.140).aspx) I am using Exchange 2010. I have run my program and no errors have appeared but nothing is being executed. If you have any idea how to fix this problem PLEASE help me out. I've been to numerous of cites and so far I haven't been able to get the help I need.

Here is my code:

Imports System.Collections.ObjectModel
 Imports System.Management.Automation
 Imports System.Management.Automation.Remoting
 Imports System.Management.Automation.Runspaces

Public Class frmEmailValidation


    Public Function GetUsersUsingBasicAuth( _
     ByVal LiveIDConnectionUri As String, ByVal ScehmaUri As String, _
     ByVal Credentials As PSCredential, ByVal Count As Integer) As Collection(Of PSObject)
         Dim ConnectionInfo As WSManConnectionInfo = _
             New WSManConnectionInfo(New Uri(LiveIDConnectionUri), ScehmaUri, Credentials)
         ConnectionInfo.AuthenticationMechanism = AuthenticationMechanism.Basic

        Dim strUserName As String = "username@domain"
         Dim strPassword As String = "mypassword"
         Dim SecuredPSWD As New System.Security.SecureString()
         For Each character As Char In strPassword
             SecuredPSWD.AppendChar(character)
         Next

        LiveIDConnectionUri = "http://"exchangeserver"/Powershell?serializationLevel=Full"
         ScehmaUri = "http://schemas.microsoft.com/powershell/Microsoft.Exchange"
         Credentials = New PSCredential(strUserName, SecuredPSWD)

        Dim RemoteRunspace As Runspace
         RemoteRunspace = RunspaceFactory.CreateRunspace(ConnectionInfo)
         Dim RemotePowerShell As PowerShell = PowerShell.Create
         RemotePowerShell.AddCommand("Get-User")
         RemotePowerShell.AddParameter("ResultSize", 5)
         RemoteRunspace.Open()
         RemotePowerShell.Runspace = RemoteRunspace
         Dim commandResults As Collection(Of PSObject)
         commandResults = RemotePowerShell.Invoke("Get-User")


         For Each obj As PSObject In commandResults
             If Button1.Enabled Then
                 MessageBox.Show(obj.Properties("DisplayName").Value.ToString())

            End If

        Next


         Return commandResults
     End Function

EWS Managed API to perform task on each incoming email item

$
0
0
Hi All



Sorry for my poor English.

Just started reading about EWS Managed API.

We have a requirement where we want to perform some tasks on each incoming email for some domain.

That means I want to trap all the mails which are coming for some domain.

We are using Exchange Online.



Please let me know if any other technology I have to look in to.

Appreciate all your help.



Regards

Somnath


MailId not like exchange format

$
0
0

I am consuming EWS in one of our product. Till now I did not see any issue on reading and sending an email. now I got an issue where the message object contains the email ids (to,from) some thing like shown below. and now sendMessage is failing.

MessageObj.From.Item.EmailAddress is returning as shown below

/O = ABC XYZ GROUP/OU=USA/CN=RECIPIENTS/CN=P123456

as per my understanding the mail is received from lotus server. how to reply to this kind of mails. Please help

thanks,

Krishna Sagar


Exchange Service API is not working after code published in IIS , But locally it is working. Please see the code

$
0
0

Hi all,

I am using Exchanging server 2013.

Please see code below is not working after  published in IIS. In locally it is working fine.

I think the problem is here I am accessing Powershell script file in C# code . powershell files[.ps1] was unable to identify by IIS. so i add new MIME type for .ps1 file extension.

but still no use.

In the below code  , please see the path string file = "D:/Scripts/listcmd.ps1"; 

my Remaining code is working fine in IIS , if i Comment below code . so i think the problem is here

please help me

 var runspace = RunspaceFactory.CreateRunspace();
runspace.Open();

object psSessionConnection;

// Create a powershell session for remote exchange server
using (var powershell = PowerShell.Create())
{
var command = new PSCommand();
command.AddCommand("New-PSSession");
command.AddParameter("ConfigurationName", "Microsoft.Exchange");
command.AddParameter("ConnectionUri", new Uri("http://ExchangeServer.admin.com/powershell/Microsoft.Exchange"));
command.AddParameter("Authentication", "Kerberos");
powershell.Commands = command;
powershell.Runspace = runspace;

// TODO: Handle errors
var result = powershell.Invoke();
psSessionConnection = result[0];
}

// Set ExecutionPolicy on the process to unrestricted
using (var powershell = PowerShell.Create())
{
var command = new PSCommand();
command.AddCommand("Set-ExecutionPolicy");
command.AddParameter("Scope", "Process");
command.AddParameter("ExecutionPolicy", "Unrestricted");
powershell.Commands = command;
powershell.Runspace = runspace;

powershell.Invoke();
}

// Import remote exchange session into runspace
using (var powershell = PowerShell.Create())
{
var command = new PSCommand();
command.AddCommand("Import-PSSession");
command.AddParameter("Session", psSessionConnection);
powershell.Commands = command;
powershell.Runspace = runspace;

powershell.Invoke();
}

String file = "D:/Scripts/listcmd.ps1"; 
// here i am accessing .ps1 file

Pipeline pipeline = runspace.CreatePipeline();
pipeline.Commands.AddScript(file);
Collection<PSObject> results = pipeline.Invoke();
runspace.Close();


foreach (PSObject obj in results)
{
var name = obj.Members["Identity"].Value.ToString();
}



Rule for testing blank subject not working

$
0
0

Hi everybody. I created a mail flow rule but it does not work on my Exchange 2013.

Output of get-TransportRule-Identity'no subj'| fl

RunspaceId                                   : 9e9cb819-32ec-469d-a476-7c5a14009fa4
Priority                                     : 1
DlpPolicy                                    :
DlpPolicyId                                  : 00000000-0000-0000-0000-000000000000
Comments                                     :
ManuallyModified                             : False
ActivationDate                               :
ExpiryDate                                   :
Description                                  : If the message:
                                                   Includes these patterns in the message subject: '^$'
                                               Take the following actions:
                                                   Prepend the subject with 'Finance Leasing Company'

RuleVersion                                  : 15.0.0.0
Conditions                                   : {SubjectMatches}
Exceptions                                   :
Actions                                      : {PrependSubject}
State                                        : Enabled
Mode                                         : Enforce
RuleSubType                                  : None
UseLegacyRegex                               : False
From                                         :
FromMemberOf                                 :
FromScope                                    :
SentTo                                       :
SentToMemberOf                               :
SentToScope                                  :
BetweenMemberOf1                             :
BetweenMemberOf2                             :
ManagerAddresses                             :
ManagerForEvaluatedUser                      :
SenderManagementRelationship                 :
ADComparisonAttribute                        :
ADComparisonOperator                         :
SenderADAttributeContainsWords               :
SenderADAttributeMatchesPatterns             :
RecipientADAttributeContainsWords            :
RecipientADAttributeMatchesPatterns          :
AnyOfToHeader                                :
AnyOfToHeaderMemberOf                        :
AnyOfCcHeader                                :
AnyOfCcHeaderMemberOf                        :
AnyOfToCcHeader                              :
AnyOfToCcHeaderMemberOf                      :
HasClassification                            :
HasNoClassification                          : False
SubjectContainsWords                         :
SubjectOrBodyContainsWords                   :
HeaderContainsMessageHeader                  :
HeaderContainsWords                          :
FromAddressContainsWords                     :
SubjectMatchesPatterns                       : {^$}
SubjectOrBodyMatchesPatterns                 :
HeaderMatchesMessageHeader                   :
HeaderMatchesPatterns                        :
FromAddressMatchesPatterns                   :
AttachmentNameMatchesPatterns                :
AttachmentExtensionMatchesWords              :
HasSenderOverride                            : False
MessageContainsDataClassifications           :
SenderIpRanges                               :
SCLOver                                      :
AttachmentSizeOver                           :
MessageSizeOver                              :
WithImportance                               :
MessageTypeMatches                           :
RecipientAddressContainsWords                :
RecipientAddressMatchesPatterns              :
SenderInRecipientList                        :
RecipientInSenderList                        :
AttachmentContainsWords                      :
AttachmentMatchesPatterns                    :
AttachmentIsUnsupported                      : False
AttachmentProcessingLimitExceeded            : False
AttachmentHasExecutableContent               : False
AnyOfRecipientAddressContainsWords           :
AnyOfRecipientAddressMatchesPatterns         :
ExceptIfFrom                                 :
ExceptIfFromMemberOf                         :
ExceptIfFromScope                            :
ExceptIfSentTo                               :
ExceptIfSentToMemberOf                       :
ExceptIfSentToScope                          :
ExceptIfBetweenMemberOf1                     :
ExceptIfBetweenMemberOf2                     :
ExceptIfManagerAddresses                     :
ExceptIfManagerForEvaluatedUser              :
ExceptIfSenderManagementRelationship         :
ExceptIfADComparisonAttribute                :
ExceptIfADComparisonOperator                 :
ExceptIfSenderADAttributeContainsWords       :
ExceptIfSenderADAttributeMatchesPatterns     :
ExceptIfRecipientADAttributeContainsWords    :
ExceptIfRecipientADAttributeMatchesPatterns  :
ExceptIfAnyOfToHeader                        :
ExceptIfAnyOfToHeaderMemberOf                :
ExceptIfAnyOfCcHeader                        :
ExceptIfAnyOfCcHeaderMemberOf                :
ExceptIfAnyOfToCcHeader                      :
ExceptIfAnyOfToCcHeaderMemberOf              :
ExceptIfHasClassification                    :
ExceptIfHasNoClassification                  : False
ExceptIfSubjectContainsWords                 :
ExceptIfSubjectOrBodyContainsWords           :
ExceptIfHeaderContainsMessageHeader          :
ExceptIfHeaderContainsWords                  :
ExceptIfFromAddressContainsWords             :
ExceptIfSubjectMatchesPatterns               :
ExceptIfSubjectOrBodyMatchesPatterns         :
ExceptIfHeaderMatchesMessageHeader           :
ExceptIfHeaderMatchesPatterns                :
ExceptIfFromAddressMatchesPatterns           :
ExceptIfAttachmentNameMatchesPatterns        :
ExceptIfAttachmentExtensionMatchesWords      :
ExceptIfSCLOver                              :
ExceptIfAttachmentSizeOver                   :
ExceptIfMessageSizeOver                      :
ExceptIfWithImportance                       :
ExceptIfMessageTypeMatches                   :
ExceptIfRecipientAddressContainsWords        :
ExceptIfRecipientAddressMatchesPatterns      :
ExceptIfSenderInRecipientList                :
ExceptIfRecipientInSenderList                :
ExceptIfAttachmentContainsWords              :
ExceptIfAttachmentMatchesPatterns            :
ExceptIfAttachmentIsUnsupported              : False
ExceptIfAttachmentProcessingLimitExceeded    : False
ExceptIfAttachmentHasExecutableContent       : False
ExceptIfAnyOfRecipientAddressContainsWords   :
ExceptIfAnyOfRecipientAddressMatchesPatterns :
ExceptIfHasSenderOverride                    : False
ExceptIfMessageContainsDataClassifications   :
ExceptIfSenderIpRanges                       :
PrependSubject                               : Finance Leasing Company
SetAuditSeverity                             :
ApplyClassification                          :
ApplyHtmlDisclaimerLocation                  :
ApplyHtmlDisclaimerText                      :
ApplyHtmlDisclaimerFallbackAction            :
ApplyRightsProtectionTemplate                :
SetSCL                                       :
SetHeaderName                                :
SetHeaderValue                               :
RemoveHeader                                 :
AddToRecipients                              :
CopyTo                                       :
BlindCopyTo                                  :
AddManagerAsRecipientType                    :
ModerateMessageByUser                        :
ModerateMessageByManager                     : False
RedirectMessageTo                            :
RejectMessageEnhancedStatusCode              :
RejectMessageReasonText                      :
DeleteMessage                                : False
Disconnect                                   : False
Quarantine                                   : False
SmtpRejectMessageRejectText                  :
SmtpRejectMessageRejectStatusCode            :
LogEventText                                 :
StopRuleProcessing                           : False
SenderNotificationType                       :
GenerateIncidentReport                       :
IncidentReportOriginalMail                   :
RouteMessageOutboundConnector                :
RouteMessageOutboundRequireTls               : False
Identity                                     : no subj
DistinguishedName                            : CN=no subj,CN=TransportVersioned,CN=Rules,CN=Transport Settings,CN=FLC,C
                                               N=Microsoft Exchange,CN=Services,CN=Configuration,DC=flc,DC=md
Guid                                         : 2bceff38-d29b-47bd-96be-0f11cb5654b0
ImmutableId                                  : 2bceff38-d29b-47bd-96be-0f11cb5654b0
OrganizationId                               :
Name                                         : no subj
IsValid                                      : True
WhenChanged                                  : 05.12.2013 11:44:57
ExchangeVersion                              : 0.1 (8.0.535.0)
ObjectState                                  : Unchanged


Also, i removed rule created with web-interface, and then i tried to insert rule with this command in PowerSheel:

New-TransportRule -Name ‘no subject’ -Comments ‘’ -Priority ‘0’ -Enabled $true -SubjectMatchesPatterns ‘^$’ -PrependSubject ‘Finance Leasing Company’

I also tried to change the rule, i brought the condition to delete the message with blank subject instead of prepend.

Nothing works, please help.

Viewing all 7132 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>