Change port used by Exchange 2007 / 2010 send connector when using smarthost

Some smarthost providers/smtp relay servers will only allow you to connect to ports other than port 25 or your ISP is blocking outgoing port 25.

In both cases you have to change the SendConnector port, this can’t be done in the exchange management console, so you have to use the Exchange Managment Shell.

List SendConnectors and port nummers:

Get-SendConnector | ft Id*,Sm*s,po*

Change the port for SendConnector:

Set-SendConnector "[SendConnector name]" -port [Port nummer]

eg:

Set-SendConnector “OutboundMail” -port 3535

VN:F [1.9.22_1171]
Rating: 6.0/6 (2 votes cast)

452 4.3.1 Insufficient system resources

When the mail is not received by the mail server and you receive the error message from your mail gateway or a telnet client:
said: 452 4.3.1 Insufficient system resources (in reply to MAIL FROM command)

Or there is a event id 15006:

Microsoft Exchange Transport is rejecting message submissions because the available disk space has dropped below the configured threshold.

The following resources are under pressure:
Queue database logging disk space (“D:\Programs\Microsoft Exchange 2010\TransportRoles\data\Queue\”) = 60% [Medium] [Normal=58% Medium=60% High=62%]

Then the problem is that there are to less system recourses. In this case the disk space where the queue is, is to small. You can resize the volume or you can change the queue location in the file:
Exchange installation Directory\Bin\EdgeTransport.exe.config

You must change the following to keys:

<add key=”QueueDatabasePath” value = “D:\Queue”/>
<add key=”QueueDatabaseLoggingPath” value = “D:\QueueLog”/>

After this you must restart the Exchange Transport Service.

VN:F [1.9.22_1171]
Rating: 6.0/6 (1 vote cast)

Change Language on NDR Messages In Exchange 2010

When Exchange Server 2010 have to send out NDR messages it will attempt to detect the language of the message, and reply in that language,
If it cannot detect the language, it will reply in the default language from It’s configuration.

To change the language in the configuration, run these commands in Exchange Management Shell:

NDRs for mails received from external domains:

Set-TransportConfig -ExternalDsnDefaultLanguage en-us

And for NDRs for mails received from internal domains:

Set-TransportConfig -InternalDsnDefaultLanguage en-us

Disable auto detection from external domains:

Set-TransportConfig -ExternalDsnLanguageDetectionEnabled $false

Disable auto detection from internal domains:

Set-TransportConfig -InternalDsnLanguageDetectionEnabled $false

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

Exchange ActiveSync doesn’t have sufficient permissions to create the “CN=user name,OU=OU Name,DC=dc-name,DC=local”

The other day we got this error on our Exchange 2010 when synchronising e-mail on a mobilephone using ActiveSync. When we tried to setup the ActiveSync account, we got the following error message (Source MSExchange ActiveSync, ID 1053) on the server’s eventlog.

Exchange ActiveSync doesn’t have sufficient permissions to create the “CN=username,OU=OU Name,DC=dc-name,DC=local” container under Active Directory user “Active Directory operation failed on dc-name.local. This error is not retriable. Additional information: Access is denied.
Active directory response: 00000005: SecErr: DSID-03151E04, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0“.
Make sure the user has inherited permission granted to domain\Exchange Servers to allow List, Create child, Delete child of object type “msExchangeActiveSyncDevices” and doesn’t have any deny permissions that block such operations.

To fix it logon your DC Server:

  1. Open “Active Directory Users and Computers”.
  2. Find the user, and right click, select “Properties”.
  3. Select “Security” Fan.
  4. Click “Advanced”.
  5. And check “Include inherited permissions from this object`s parrent”.
  6. And then click Apply.

That’s it !

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

Exchange ActiveSync doesn’t have sufficient permissions to create the “CN=user name,OU=OU Name,DC=dc-name,DC=local”

The other day we got this error on our Exchange 2010 when synchronising e-mail on a mobilephone using ActiveSync. When we tried to setup the ActiveSync account, we got the following error message (Source MSExchange ActiveSync, ID 1053) on the server’s eventlog.

Exchange ActiveSync doesn’t have sufficient permissions to create the “CN=username,OU=OU Name,DC=dc-name,DC=local” container under Active Directory user “Active Directory operation failed on dc-name.local. This error is not retriable. Additional information: Access is denied.
Active directory response: 00000005: SecErr: DSID-03151E04, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0“.
Make sure the user has inherited permission granted to domainExchange Servers to allow List, Create child, Delete child of object type “msExchangeActiveSyncDevices” and doesn’t have any deny permissions that block such operations.

To fix it logon your DC Server:

  1. Open “Active Directory Users and Computers”.
  2. Find the user, and right click, select “Properties”.
  3. Select “Security” Fan.
  4. Click “Advanced”.
  5. And check “Include inherited permissions from this object`s parrent”.
  6. And then click Apply.

That’s it !

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

Set calendar-permissions for mailboxes in Exchange Server 2010

I was looking for at way to set default calendar-permissions in exchange 2010, and found out that the only way to do this, is the scripting way.

So i found a script and modified it ( ALOT ) to fit my need


#Load Exchange Server 2010 Management Shell if not loaded.

if (-not (Get-PSSnapin | Where-Object {$_.Name -like "Microsoft.Exchange.Management.PowerShell.E2010"})){
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
}

#Custom variables
$mailboxes = Get-Mailbox
$AccessRights = "Reviewer"

#Loop through all mailboxes
foreach ($mailbox in $mailboxes) {

#Retrieve name of the user`s calendar
$calendar = (($mailbox.SamAccountName)+ ":\" + (Get-MailboxFolderStatistics -Identity $mailbox.SamAccountName -FolderScope Calendar | Select-Object -First 1).Name)

#Check if calendar-permission for user "Default" is set to the default permission of "AvailabilityOnly"
if (((Get-MailboxFolderPermission $calendar  | Where-Object {$_.User -like "Default"}).AccessRights) -like "AvailabilityOnly" ) {

Write-Host "Updating calendar permission for $mailbox..." -ForegroundColor Yellow

#Set calendar-permission for user "Default" to value defined in variable $AccessRights
Set-MailboxFolderPermission -User "Default" -AccessRights $AccessRights -Identity $calendar
}
}

And then a bat file to execute it from “scheduled task”


powershell -command "&amp; 'C:\PATH-TO-FILE\Set-CalendarPermissions.ps1' "

VN:F [1.9.22_1171]
Rating: 5.3/6 (3 votes cast)