Friday, November 16, 2007
Monday, October 29, 2007
Granting "Send As" rights in Exchange 2007
Many times it is necessary to grant a service account the ability to open a users mailbox and/or send email as that user. Products that tightly integrate with Exchange like Blackberry Enterprise Server (BES), Quest Archive Manager (QAM), and many others need this in order to function properly. This is accomplished by granting the service account the "Full Mailbox Access" and "Send As" rights for all mailboxes in the organization (assuming the application in question is to be rolled out enterprise-wide).
For those that are unclear, it is critical to understand the difference between "Send As" and "Send on Behalf Of". "Send As" allows a user to "impersonate" another user and send email as the other user. For example, if User A is granted "Send As" rights to User B's mailbox, then User A is able to send messages directly as User B and means that the recipient of the message will think that User B has sent the message, even though it was actually User A that sent it. The "Send As" right can only be done by an administrator; a user cannot grant the "Send As" right to another user.
"Send on Behalf Of" allows a user to send email from another user's mailbox, but the sending user is not impersonated. For Example, if User A is granted "Send on Behalf Of" rights to User B's mailbox, then User A is able to send message from User B's mailbox and the recipient would receive a message that is from "User A on behalf of User B". By looking at the "From" field in the email, it is always very clear who is sending the message. Like "Send As", the "Send on Behalf Of" right can be granted by an administrator, but unlike "Send As", "Send on Behalf Of" can also be established by the end user. Through the Outlook client, a user can grant another user the ability to send on behalf of them.
For more information on granting "Send As" in an Exchange 2003 environment, or granting "Send on Behalf Of" permissions, check out this tutorial from MSExchange.org.
Now back to the problem at hand...
"Full Mailbox Access" and "Send As" rights can be granted on a single mailbox (or batch of mailboxes) with the following PowerShell cmdlets (using User A and User B from the examples above):
Add-MailboxPermission UserB -AccessRights FullAccess -user UserA
Add-ADPermission UserB -ExtendedRights Send-As -user UserA
Note that granting "Full Mailbox Access" does not include the "Send As" permission; "Send As" must be explicitly granted.
The problem with this method is that even if the script is such that it will grant the appropriate rights on all mailboxes in the environment, this will not automatically grant the rights to the service account for new mailboxes and the script must be re-run on a regular basis. For message archival applications in particular this is a problem as some data may be missed because the service account was unable to access the mailbox. So you must use a method to grant the required permissions automatically.
A personally recommended best practice is to create a group that has the "Send As" rights in Exchange and add the appropriate user accounts to that group. Because there is risk with any account that has these rights to your entire Exchange organization, those account must be as secure as possible and the membership of that group must be controlled and monitored tightly.
To grant the required permissions, follow these steps:
- At the command prompt, type ADSIedit.msc. This requires the Windows Server 2003 Support Tools.
- In the Action menu, select Connect to…
- Select the Select a well known Naming Context radio button.
- Select Configuration from the drop-down list.
- The Default (Domain or server that you logged in to) radio
button is selected. Leave this button selected if the machine you are
logged in to is in the same domain as the Exchange 2007
organization. If the machine you are logged in to is in a different
domain, select Select or type a domain or server and enter the
domain controller name. - Click OK to return to the ADSI Edit window.
- Select the Configuration node that contains the name of the domain
controller that holds your Exchange 2007 organization. - Navigate to CN=Services | CN = Microsoft Exchange |
CN=”Your Exchange Organization”. - Right-click the organization node and select Properties.
- Select the Security tab and click Advanced.
- Click Add, and select the appropriate user or group.
- In the Permission Entry window, ensure that Apply Onto is set to This object and all child objects.
- Check the box for Full Control in the Allow column.
- Click OK to add the entry, and click OK to exit the windows.
- Close ADSIedit.
Be very sure that the accounts you use are not also in any groups which are denied "Send As" rights, or you will still be denied. By default, the Domain Admins, Enterprise Admins, and Exchange Organization Administrators groups are denied "Send As" rights (and should be kept that way).
Awesome
A friend emailed me this today and although I had seen it a while back, it still cracked me up. I'm not sure why it would be comforting to know that nothing I do will be as awesome as this, but it's still funny.

Friday, October 19, 2007
PdaNet vs. Internet Sharing on the AT&T Tilt
One of the things I've been trying to get working with my Tilt is the ability to tether it to my laptop for data connectivity. AT&T offers a tethering option to data plans for $20, but I don't intend on using this 24/7 for an Internet connection, just something to use in a pinch. The AT&T cops swarming down on me is a chance I'm prepared to take.
The first thing I tried was PdaNet from June Fabrics. I used version 1.80 because it added WM6 support. I was wholly unsuccessful in getting this to work over USB or Bluetooth. I consistently got a "Modem is Busy" error, so I did a little more digging and found several others that had tried and failed to get PdaNet working with the Tilt. In the process, I also found out about Internet Sharing, a feature that (apparently) was offered on the 8525.
On the AT&T Tilt (the successor to the 8525), Internet Sharing was replaced by Wireless Modem in Connections. While Internet Sharing is no longer listed in Connections, it is still present on the device and can be used. Internet Sharing effectively does the same thing as PdaNet.
To locate Internet Sharing:
- Go to Start>Programs>Tools>File Explorer.
- Open the Windows Folder.
- Scroll down until you locate Internet Sharing.
To add a shortcut to an existing folder on your device:
- Tap and Hold on Internet Sharing and select Copy from the pop up menu.
- Navigate to a folder where you would like to put your shortcut and select Menu>Edit>Paste. I placed it in \Windows\Start Menu\Programs\Tools.
To use Internet Sharing:
- Pair your device with your PC (Bluetooth or USB).
- Locate the Internet Sharing shortcut you created and tap on it to open the application.
- Select USB or Bluetooth from the PC Connection type drop down (depending on your needs, obviously).
- Select MEdiaNet from the Network Connection drop down.
- Tap on Connect.
I tested this with Vista and didn't have any trouble with it.
UPDATE 03.12.08 - After a reader commented on not being able to get this to work with Vista, I realized I forgot one piece of the puzzle that I did well before I started to figure out Internet Sharing. In its default configuration, the Tilt wouldn't connect to Vista at all via USB (at least not with my laptop, so it's possible it is specific to my hardware). To fix this, go to Settings - Connections - USB to PC and turn off "Enable advanced network functionality" (whatever that is). You will need to re-enable this when you want to use it with XP.
