Microsoft Exchange Server 2007 – Connectors

I recently installed my first Exchange 2007 Server and I had problems with recieving mail and found it to be related to the recieve connector.

Exchange 2007 have two kinds of connector. Send connector and recieve connector.

The send connector is located on the Organisation Level and you need to create one for the servers to be able to send mail to internet.

The recieve connector is located in the server level. The Default Recieve Connector is automatically created.

Note: By default it is set up to only recieve mail from authenticated servers. This is a problem if the server is connected directly to the internet. To fix this open properties for the Default Connector and go to “Permission Groups” and click “Anonymous Users” or use Powershell:

   set-ReceiveConnector -identity “Name of Default Connector” -PermissionGroups AnonymousUsers

Links:

http://technet.microsoft.com/en-us/library/bb125128.aspx
http://www.robichaux.net/blog/2006/09/receiving_internet_email_with_exchange_2.php
http://www.exchangepedia.com/blog/2006/07/exchange-server-2007-internet-email.html
http://www.exchangeninjas.com/TUPMServerResponses

Scripting Exchange 2007

As you know Exchange 2007 can be totally administered by using Powerscript. Here I have tried to collect some scripts for Exchange 2007 administration:

Empty a mailbox database

List mailbox servers in an organisation

   get-mailboxserver

List maildatabases on current server

   get-mailboxdatabase

List mailboxes in maildatabase

   get-mailbox -database "Mailbox Database"

Disable a mailbox

   disable-mailbox [mailboxid]

Bulk enable mailboxes for AD users:

selects all users from AD

   get-user | where-object{$_.RecipientType –eq “User”}

Selects all users from the OU people

   get-user –organizationalUnit people | where-object{$_.RecipientType –eq “User”}
   get-user -organizationalUnit domain/OU/SUBOU | where-object{$_.RecipientType -eq "User"}

   Note: This will get you only users NOT users with mailboxes

Mailenable users from CSV file

   Import-CSV import.csv | foreach {enable-mailbox -Identity $_.Fullname -database EXCHSERVERMailbox Database"}

Where the importfile looks like this:

FullName,
Firstname Lastname, Change Booking Policy for resources
Set-MailboxCalendarSettings -Identity "Resource Name" -BookingWindowInDays 520

 

Related Links

http://exchangepedia.com/blog/2006/12/id-written-about-how-to-bulk-create.html
http://dmitrysotnikov.wordpress.com/2007/05/04/ou-management-with-powershell/
http://msexchangeteam.com/archive/2006/09/05/428833.aspx

Microsoft Exchange Server 2007 Installation Issues

– Domain not in Windows 2000 native mode or Higher

   Solution: Raised Domain functional Level

– Domain Controller Pre Windows 2003

   Solution: Specified DC on install

   setup /mode:install /domaincontroller:DC2k3.company.com /roles:ht,ca,mb,mt /enablelegacyoutlook /Organizationname:Company

– Missing Patches for Powershell and .NET Framework

   WindowsServer2003.WindowsXP-KB926139-x64-ENU.exe
   NDP20-KB926776-X64.exe

– You do not have permissions to read the security descriptor on CN=Deleted Objects,CN=Configuration,…

   Started installation from console instead of RDP Session

Links:

Common Mistakes When Upgrading Exchange 2000/2003 To a Exchange 2007
Google Groups
Jim McBee’s Mostly Exchange Web Log
HELO Windows Blog
Microsoft Technet Forum