Saturday, August 30, 2008

Exchange:Import customized Contacts Item folder

Scenario:


Outlook was set up with POP3 account. My Contacts have Contacts and Test Contacts 2008 folders.


Export the whole personal folder to a pst file;

Create a new outlook profile with Exchange Server setup;

After importing the pst file to the Exchange server profile, the Test Contacts 2008 folder shows when you click Contacts in Outlook. But the Test Contacts 2008 does not show in Address Book:






What do you do?


Create a Contacts Items folder with the same name and put it in MAILBOX folder (not contacts folder) as shown below:





Drag and drop all Contacts from old "Test Contacts 2008" to the newly-created Test Contacts 2008" folder;



Remove the old "Test Contacts 2008" folder;
You would have the same address book structure as POP3 account profile.







Friday, August 8, 2008

Exchange2007:Export-Mailbox -DeleteContent

www.1ask2.com
A virus message was delivered to all mailboxes in server1. The subject is "I Love You!"

How can you delete it from the Exchange management shell?

get-mailbox -Server tlc25 I Add-MailboxPermission -AccessRights 'FullAccess' -User Administrator -confirm $false

New-Mailbox -Name 'Temp1' -Alias 'Temp1' -UserPrincipalName 'Temp2@TLCTest.local' -SamAccountName 'Temp1' -FirstName 'Temp1' -LastName '' -Database 'TLC25\First Storage Group\Mailbox Database'

get-mailbox -Server Tlc25 I Export-Mailbox -includefolders \inbox -SubjectKeywords 'I love you!' -TargetMailbox temp1 -TargetFolder virus -DeleteContent -confirm:$false

get-mailbox -Server tlc25 I Remove-MailboxPermission -AccessRights 'FullAccess' -User Administrator -confirm $false

======
DeleteContent
---delete the content from the source mailbox after it has been exported to a folder. The source folder will not be deleted.

Exchange2007:RemoteDomain and OOF (Out-of-Office)

www.1ask2.com
For most, we must understand "An Out-of-Office message is set on the clients (Outlook and OWA) but is sent by Exchange server."

How many types of clients do we have?
Outlook 2007
Outlook 2003 or earlier
OWA 2007
OWA 2003 or earlier


In Exchange Management Console, the remote domain property has the following settings:

  1. Allow none ----I know it means no OOF sends to remote domain.
  2. Allow external out-of-office messages only ----???
  3. All external out-of-office messages and out-of-office messages set by Outlook 2003 or earlier clients or sent by Exchange server 2003 or earlier servers ----???
  4. Allow internal out-of-messages, and out-of-office messages set by outlook 2003 or earlier clients or sent by Exchange server 2003 or earlier servers ----???
First, Outlook 2007 and OWA 2007 clients can be configured as for internal users with internal OOF messages and for external users with external OOF messages.

"Allow external out-of-office messages only" allows the external OOF messages from Outlook 2007 and OWA 2007.

"All external out-of-office messages and out-of-office messages set by Outlook 2003 or earlier clients or sent by Exchange server 2003 or earlier servers" allows the external OOF messages from Outlook 2007 and OWA 2007, and OOF messages from Outlook 2003 and OWA 2003 or earlier. Outlook 2003 and OWA 2003 don't have the external OOF and internal OOF feature.

"Allow internal out-of-messages, and out-of-office messages set by outlook 2003 or earlier clients or sent by Exchange server 2003 or earlier servers" allows the internal OOF messages from Outlook 2007 and OWA 2007, and OOF messages from Outlook 2003 and OWA 2003 or earlier.

The following cmdlet controls the individual mailbox can only send internal OOF messages.

SET-MAILBOX -IDENTITY 'Kevin.Smith' -ExternalOofOptions InternalOnly

Wednesday, August 6, 2008

Exchange2007:Hub Site

www.1ask2.com
Least cost path

Site A to Site D has two paths.
Site A+Site B+Site D (cost=5+15)
Site A+Site C+Site D (cost=5+5)

The path A+C+D is chosen.



How do you understand the direct delivery?

After the least cost path is selected, Hub transport server in Site A will directly deliver messages to the Hub Transport server in Site D. The Hub Transport server in Site C does not process the messages at all.

If you want the HUB Transport Server in SITE C to process the message, configure it as a hub site.
Set-AdSite -identity "Site C' -HubSiteEnabled:$true

Why would you do that?

One example will be that a company implements the centralized journaling.

Most of the time, you should not define a HUB Site. For this scenario, if Hub transport server in SITE C does not work, because Site C is a hub site, the messages from SITE A cannot be delivered to Site D.
If Site C is not defined as a HUB SITE, mail is directly delivered from SITE A to SITE D. Direct relay is not affected by lack of network connectivity between SITE A and Site C.

Exchange2007:3-way that messages go into the Transport Server

Store driver to Transport server is using MAPI over RPC.
Transport to Transport server is using Kerberos and TLS.

Exchange2007:RBL configuration

I don't get the following settings.

Match to specific mask and responses.
What is the mask? What is the response?

Examples of return status code:

127.0.0.1 – Blocklist
127.0.0.2 – Known Open Relay
127.0.0.4 – DialUp IP Address

Mask for matching:

Binary for last byte of IP version 4

0000 0001 – Blocklist --127.0.0.1,127.1.0.1,etc.
0000 0010 – Open Relay --127.0.0.2, 127.1.0.2, etc
0000 0011 – Open relay or Blocklist --127.0.0.1,127.0.0.2,127.1.0.1,127.1.0.2, etc
0000 0100 – Dialup host --127.0.0.4,127.1.0.4,etc
0000 0101 – Dialup or Blocklist --127.0.0.1,127.0.0.4,127.1.0.1,127.1.0.4,etc
0000 0110 – Dialup or Openrelay
0000 0111 – Dialup, Openrelay, or Blocklist

Get-IPBlockListProvider example3 [pipe line] fl bitmaskMatch,IPAddressesMatch

BitmaskMatch : 0.0.0.2
IPAddressesMatch : {127.0.0.5, 127.0.0.4, 127.0.0.3}

Exchange2007:Message Size Limit

Default settings

Organization Level

Get-TransportConfig fl max*

MaxDumpsterSizePerStorageGroup : 18MB
MaxDumpsterTime: 7.00:00:00
MaxReceiveSize: 10MB
MaxRecipientEnvelopeLimit : 5000
MaxSendSize : 10MB

Mailboxes: Simon and Tam

('simon','tam') get-mailbox fl name,max*

Name : simon
MaxSafeSenders :
MaxBlockedSenders :
MaxSendSize : unlimited
MaxReceiveSize : unlimited

Name : TAM
MaxSafeSenders :
MaxBlockedSenders :
MaxSendSize : unlimited
MaxReceiveSize : unlimited

Simon cannot send a message to TAM with an attachment over 10MB.

('simon','tam') set-mailbox -MaxSendSize 80MB
('simon','tam') set-mailbox -MaxReceiveSize 80MB


Simon can send a message to TAM with an attachment size of 20MB, even though the Organizational Message Size limit is still 10MB.

Within the same site, there is no Maximum Message Size limit defined. By setting up limit on individual maibox, you create the exception to Organizational Limit of Maximum Message Size.

---------
By default, Exchange 2007 does not impose a maximum message size limit on messages that are relayed between Hub Transport servers in different Active Directory sites or across routing group connectors to Legacy Exchange servers.

Set-AdSiteLink -Identity DEFAULTIPSITELINK -MaxMessageSize 10MB

Sunday, August 3, 2008

Exchange2007:one certificate for multiple domain names

www.1ask2.com
ways to access web server:


New-ExchangeCertificate -generaterequest -subjectname "dc=com,dc=terrace,o=terrace Corporation,cn=usa.terrace.com" -domainname usa.terrace.com, USA,mail.terrace.com, autodiscover.terrace.com -PrivateKeyExportable $true -path c:\certrequest.txt


Open c:\certrequest.txt in Notepad.exe and copy all the code.


Request a Web Server certificate




If you don't see the Web Server template, you open the Certificate Template console and locate Web Server.

By default, only domain admins and enterprise admins have the Enrol permission.

Download the certificate to c:\certnew.cer

Import-ExchangeCertificate -path C:\certnew.cer

Find the thumbprint of the certificate:

Get-exchangeCertificate USA

Enable-ExchangeCertificate -Services smtp,iis -Thurmprint

Friday, August 1, 2008

Exchange2007:Free/Busy-Availability-Calendar

www.1ask2.com
Free/Busy --availability


Clients: Microsoft Outlook client,Outlook Web Access and Outlook Mobile Access


It refers to the Calendar folder of a mailbox.
The free/busy data is used extensively when scheduling meetings.


Outlook 2003 client


The Free/busy data is stored as messages in a dedicated system public folder. Each administrative group in the Exchange organization includes a Free/Busy folder.


Outlook 2007 client


When Exchange 2007 services OUTLOOK 2007, it does not use the public folder for OAB and free/busy data. Autodiscover service is automatically installed when Client Access Role is installed. The Autodiscover service helps Outlook 2007 locate various Web services, such as the Unified Messaging, Offline Address Book, and Availability services.


WHEN Outlook 2007 is configured with exchange 2003 mailbox user, it uses the public folder for OAB and free/busy data.


Connecting to the Autodiscover Service from the Internet


If you are providing external access to Microsoft Exchange by using Outlook Anywhere (formerly known as RPC over HTTP), and you want your Outlook 2007 clients to be automatically configured by using the Autodiscover service, you must install a valid Secure Sockets Layer (SSL) certificate on the Client Access server that includes both the common name (for example, mail.contoso.com) and a Subject Alternative Name for autodiscover.contoso.com.


Access Autodiscover service from Internet


Set-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" -externalurl https://mail.contoso.com/EWS/Exchange.asmx -BasicAuthentication:$True


Access Offline Access Book from Internet


Set-OABVirtualDirectory -identity "CAS01\OAB (Default Web Site)" -externalurl https://mail.contoso.com/OAB -RequireSSL:$true


Test-OutlookWebServices -Identity administrator


In the Outlook 2007 computer, hold Ctrl key and click the outlook icon in system tray.




select "Test E-mail AutoConfiguration..."




Availability Service URL: https://tlcsv167.tlctest.local/EWS/exchange.asmx


OOF URL: https://tlcsv167.tlctest.local/EWS/exchange.asmx


OAB URL: https://tlcsv167.tlctest.local/OAB/ee67a1c8-ae09-4e26-8196-ccfa6e24f59/


==============
Free/Busy Publishing in Outlook
Outlook publishes free/busy data for a user periodically (by default every 15 minutes), and upon shutdown.

Tools-Options-Calendar Options—Free/Busy Options
Click share your calendar ...
Add national events to your calendar:



Tools--Options--Calendar Options --Click Add Holidays ... button



Deselect United State and Select Canada



Add BC Day to the Calendar:



click GO menu --Calendar --Action Menu



New All Day Events



Subject: BC Day