Category Archives: Mail

Give people delegate permissions for a distribution group Office 365

 

 

Give people delegate permissions for a distribution group

If you are an Office 365 admin, you can give people delegate permissions to send email from, and on behalf of a distribution group.

  1. Log in to your office 365 admin center.
  2. Click the Admin tile.
  3. In the Office 365 admin center panel, click Groups.
  4. In the Groups panel, check the box next to the group you want to add delegates to.
  5. In the right panel, under Distribution list, click Edit Exchange properties.
  6. Click group delegation.
  7. Use the following to help you determine whether you want to assign Send As or Send on Behalf permissions

Send As:

This allows a member of the group to send email as the distribution group address. To a recipient, the From line will display the group name only.

Send on Behalf:

This allows a member of the group to send email on behalf of the group. To a recipient, the From line will display the sender “on behalf of” the group.

To send as the distribution group, you need to show the From field in your email composer. To show the From field in Outlook, open a new email, click Options, and select From.

Source: Give people delegate permissions for a distribution group | Office 365 from GoDaddy – GoDaddy Help GB

Prevent false positive email marked as spam in office 365

Tips for Office 365 Admins to prevent good email marked as spam from being sent to quarantine as a false positive. Customize a safelist and other options to prevent good email marked as spam.

Prevent false positive email marked as spam in office 365

  1. Obtain the headers for the message you want to allow in your mail client such as Outlook or Outlook Web App, as described in Message Header Analyzer.
  1. Open the message.
  2. Go to Options > properties.
  3. Copy the internet headers section.
  4. Go to Message Header Analyzer.
  5. Paste the internet headers section.
  6. Click analyze
  1. Search for the IP address following the CIP tag in the X-Forefront-Antispam-Report header manually or by using the message header analyzer.
  2. Add the IP address to the IP Allow list by following the steps in “Use the EAC to edit the default connection filter policy” in Configure the connection filter policy.
  3. In the Exchange admin center (EAC), navigate to Protection > Connection filter, and then double-click the default policy.
  4. Click the Connection filtering menu item and then create the lists you want: an IP Allow list, an IP Block list, or both.
  5. Click  . In the subsequent dialog box, specify the IP address or address range, and then click ok. Repeat this process to add additional addresses. (you can also edit or remove IP addresses after they have been added.)
  6. Optionally, select the enable safe list check box to prevent missing email from certain well-known senders. How? Microsoft subscribes to third-party sources of trusted senders. Using this safe list means that these trusted senders aren’t mistakenly marked as spam. We recommend selecting this option because it should reduce the number of false positives (good mail that’s classified as spam) you receive.
  7. Click save. A summary of your default policy settings appears in the right pane.
  • Note:
  • If you add an IP address to both lists, email sent from it is allowed.
  • IPv4 IP addresses must be specified in the format nnn.nnn.nnn.nnn.
  • You can also specify classless inter-domain routing (cidr) ranges in the format nnn.nnn.nnn.nnn/rr.
  • You can specify a maximum of 1273 entries, where an entry is either a single IP address or a cidr range of IP addresses from /24 to /32.

 

Source: Prevent false positive email marked as spam with a safelist or other techniques – Office 365

 

Manage Office 365 Forward Mail in PowerShell

Manage Forward Mail by using PowerShell | Office 365

<#

this script set Automatic mail Forwarding to Recipient in office 365

#>

#start script

##########################

#$user=’internal user idestity’ #the source internal user to forward emails from
#$destemail=’internal user email destination address’ #internal destination user to forward emails to
#$destemailext=’xxx@gmail.com’ #external destination email address to forward emails to
#$DisplayName’MailContact Display Name’ #MailContact Display Name
#$mailintext=’Office 365 User Email ‘ #<Office 365 User Email Address for external user (MailContact)

##########################

#Connect to Exchange Online Office 365 using remote PowerShell
#$UserCredential = Get-Credential
#$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
#Import-PSSession $Session

##########################

#Forward Email to internal Recipient & DONT saves local copy
#Set-Mailbox $user -ForwardingAddress $destemail -DeliverToMailboxAndForward $False

##########################

#Forward Email to internal Recipient & save local copy (Default)
#Set-Mailbox $user -ForwardingAddress $destemail

##########################

#Forward Email to External Recipient & save local copy (Default)
#Set-Mailbox $user -ForwardingsmtpAddress $destemailext

##########################

#Forward Email to External Recipient & DONT saves local copy
#Set-Mailbox $user -ForwardingsmtpAddress $destemailext -DeliverToMailboxAndForward $False

##########################

#Create External contact with internal email address + Forward email address (External Email Address)
#Step 1: Create External contact with External email address
#New-MailContact -Name $DisplayName -ExternalEmailAddress $destemailext
#Step 2: Set External contact email address to internal email address and forwarding email address (External email address) PowerShell command syntax:
#New-MailContact $DisplayName -emailaddresses SMTP:$mailintext, $destemailext

##########################

#Display information about Forwarding rule
#Get-Mailbox $user

##########################

#Display more information about Forwarding rule
#Get-Mailbox John | FL DeliverToMailboxAndForward,ForwardingAddress,ForwardingSmtpAddress

##########################

#Find all users with Forwarding Address is set to Internal Recipient
#Get-Mailbox | Where {$_.ForwardingAddress -ne $Null} | Select Name, ForwardingAddress, DeliverToMailboxAndForward

##########################

#Turn off Email Automatic Forwarding to internal Recipient
#Set-Mailbox $user -ForwardingAddress $Null

##########################

#Turn off email Automatic Forwarding to External Recipient
#Set-Mailbox $user -ForwardingSmtpAddress $Null

##########################

#Forward Email of ALL Users to internal Recipient & save local copy
#Step 1: Save local copy
#Get-Mailbox | Where {$_.RecipientType -eq “UserMailbox”}| Set-Mailbox -DeliverToMailboxAndForward $True
#Step 2: Forward email to the destination recipient (internal\organization recipient)
#Get-Mailbox | Where {$_.RecipientType -eq “UserMailbox”}| Set-Mailbox -ForwardingAddress $destemail

##########################

#Forward Email of ALL Users to External Recipient & save local copy
#Step 1: Save local copy
#Get-Mailbox | Where {$_.RecipientType -eq “UserMailbox”}| Set-Mailbox -DeliverToMailboxAndForward $True
#Step 2: Forward email to the destination recipient (external recipient)
#Get-Mailbox | Where {$_.RecipientType -eq “UserMailbox”}| Set-Mailbox -ForwardingSmtpAddress $destemailext

##########################

#Turn off email Automatic Forwarding to External Recipient
#Get-Mailbox | Where {$_.RecipientType -eq “UserMailbox”}| Set-Mailbox -ForwardingAddress $Null

##########################

#verify that the email is set to forword
#Get-Mailbox $user| FL DeliverToMailboxAndForward,ForwardingAddress,ForwardingSmtpAddress

##########################

#end Exchange Online Office 365 remote PowerShell Session
#Remove-PSSession $Session

#end script

Office365: Set maximum attachment/email size

Hopefully this helps someone else out there; the amount of PowerShell commands and cmdlets can be quite overwhelming, and knowing what add-on you need for PowerShell to manage your Office365 installations can be a big time waster. Here’s my notes.

1. Windows 7 comes with Powershell v2 as part of the package, and Win8 comes with v3. If you’re using Vista or XP you’ll have to update to at least v2 but that’s outside of this post.

2. Install Microsoft Online Services Sign-On Assistant for IT Pros:

http://www.microsoft.com/en-us/download/details.aspx?id=39267&fwLinkID=286152

(32-bit for 32-bit OS, 64-bit for 64-bit OS)

3. Install Windows Azure AD Module (may be unnecessary for this procedure, but will be necessary for others – I install it by default)

http://technet.microsoft.com/en-us/library/jj151815.aspx

4. Reboot after install.

5. Start Powershell as admin (you will notice a new program group-Windows Azure Active Directory with a Powershell shortcut; it’s safe to start this or the main Powershell program for our purpose).

6. Once in PS, and having your admin credentials for your Office365 subscription, enter the following commands;

$LiveCred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $LiveCred -Authentication Basic –AllowRedirection

Import-PSSession $Session

Get-TransportConfig

‘ now – pay special note to the output from this last command, “Get-TransportConfig” – look for the lines “InternalDsnMaxMessageAttachSize” and “ExternalDsnMaxMessageAttachSize”. This is your current max for outbound and inbound emails. Most likely it’s at 10MB, and not what you want.

Set-TransportConfig -InternalDsnMaxMessageAttachSize (nn)MB

‘ change the (nn) to a number – in meagabytes – that you want for your maximum. Might be 20, 40, etc… supposedly the global max is 25.

Set-TransportConfig -ExternalDsnMaxMessageAttachSize (nn)MB

‘ again, see above note on what to replace (nn) with…

Get-TransportConfig

‘ now check your config – you should see your new max sizes replaced with what you programmed.

Office365: Set maximum attachment/email size.

How to Purchase Licenses in Office 365

1.    In the Admin center, click purchase services on the left hand side. On this page, you will be able to purchase your Dynamics CRM Online and Office 365 licenses.

2.    Customize your order by choosing the number of licenses you’d like to order. You have optional add-ons to select from before checking out. Once you have the number of licenses you want, click check out.

3.    Follow the three steps Microsoft lays out for you to purchase your licenses. If you would like to add more licenses or purchase more licenses or add other Office 365 plans to your subscription, you can do so in the purchase services section in the admin center.

·         To drop a license or subscription from your account, you will need to open a service request ticket with Microsoft. You’ll want to open the ticket under the billing department.

Purchasing Licenses in Office 365 | The CRM Book.

How to Export and Import mailboxes to PST files in Exchange 2007 SP1

Export/Import to PST Requirements

In order to export or import mailboxes to PST files the following requirements must be met:

  1. Export/Import to PST must be run from a 32 bit client machine with Exchange Management Tools installed (Version Exchange 2007 SP1 or later). The 32bit requirement comes from a dependency with the Outlook client.

http://www.microsoft.com/en-us/download/confirmation.aspx?id=11876

  1. Either Outlook 2003 or Outlook 2007 must be installed on the client machine.
  2. The user running the task must be an Exchange Organization Admin or an Exchange Server Admin on the server where the mailbox to export/import lives.

Exporting mailboxes to PST files

The most basic cmdlet to export a mailbox to a PST file is as follows:

Export-Mailbox –Identity <mailboxUser> -PSTFolderPath <pathToSavePST>

PSTFolderPath must be a full path pointing either to a directory or to a (.pst) file. If a directory is specified a PST file named after the mailbox alias will be used as the target of the export. Note that if the PST file already exists the contents of the mailbox will be merged into it.

After the cmdlet finishes execution, the .pst file will be ready in the specified location.

To export multiple mailboxes to their respective .pst files at once you can pipe in the identities of those mailboxes to the export task. Notice that when bulk exporting the PSTFolderPath parameter must forcefully point to a directory since one .pst file will be created for each mailbox.

Example:

Get-Mailbox -Database ‘exchange_server_name\MDB’ | Export-Mailbox -PSTFolderPath D:\PSTs

Filtering content in Export/Import to PST

When only specific content is desired in the PST file (or back into the mailbox) a common set of filters can be used to leave out the rest of the messages. Export/Import to PST support the following filters: Locale, StartDate, EndDate, ContentKeywords, SubjectKeywords, AttachmentFileNames, AllContentKeywords, SenderKeywords, and RecipientKeywords.

Example: Import only those messages that were created between 1/1/06 and 12/1/06 and contain the word “review” in the subject and any of the words {“project”,”alpha”} in the body.

Import-mailbox -Identity ricardr -PSTFolderPath D:\PSTs -StartDate 1/1/06 -EndDate 12/1/06 -SubjectKeywords:’review’ -ContentKeywords:’project’,’alpha’

Issues:

When you run the command you get an error:

Error occurred in the step: Moving messages.

Failed to copy messages to the destination

mailbox store with error:

MAPI or an unspecified service provider.

ID no: 00000000-0000-00000000

It is probably because you don’t have permission to the mailboxes (it happens even if you are an administrator).

To solve this you need to get access permissions:

  1. Right click the Exchange Management Shell, and select Run as Administrator (this is a handy trick).
  2. Type the command “Get-Mailbox | Add-MailboxPermission -accessrights fullaccess -user Administrator” – if prompted, apply to ALL objects.
  3. Run the export or import.
  4. Type the command “Get-Mailbox | Remove-MailboxPermission -accessrights fullaccess -user Administrator” – Select “NO” when prompted about the Administrator mailbox! You can select “YES” for all other mailboxes, or apply to all if you want.

Sources:

http://blogs.technet.com/b/exchange/archive/2007/04/13/3401913.aspx

http://www.interworks.com/blogs/bfair/2009/08/19/empty-all-exchange-2007-mailboxes

SPF Record

SPF Record

Having a proper Sender Policy Framework (SPF) record increases the chances people will get emails you send. Without one, your email has a greater chance of being marked as Spam.

Publishing an SPF record in your “example.com” DNS records tells the world which server IP addresses are authorized to send emails from “@example.com” email addresses.

If you host your company email in cloud, your hosting provider should be able to provide you with instructions on how to publish your SPF record.

When you have multiple vendors handling your mail, For example, you may have your email hosted with one provider (e.g. Google Apps) and also send marketing newsletters from another provider (e.g. Awebber, StreamSend, SendGrid, etc.). In this case you will need to merge the information from both providers.

Here’s an example. Cloud providers will typically provide an “include” for you to simply add to your record. In this case, you are telling the world to only accept mail from Google Apps (gmail) or your email marketing company.

Example

v=spf1 include:spf.google.com include:acmeemailmarketing.com ~all

 

Explain:

 

v=spf version

include=outsourcing mail sender like google apps that allowed to send mail for your domain..

~all= recipients may accept mail from another server, but it should be viewed with suspicion.

 

  • The ~all at the end is called a soft fail. It means that recipients may accept mail from another server, but it should be viewed with suspicion. If you change it to -all, you are directing the recipient to reject mail from any server other than these. The soft fail approach is safer and recommended.

If you host your own mail servers, you may need to specify the IP addresses of your mail servers in CIDR notation along with other providers. That would look like this:

Example

 

v=spf1 a ip4:12.34.56.78/28 include:acmeemailmarketing.com ~all

 

Explain:

 

v=spf version

                a=the a record of your domain name can send emails.

                ip4:=your local smtp servers that can send mails for you domain.

include=outsourcing mail sender like google apps that allowed to send mail for your domain..

 

You can also use it without notation:

v=spf1 a ip4:12.34.56.78 include:acmeemailmarketing.com ~all

 

Multiple SPF records are not recommended and may cause delivery and spam classification issues. According to RFC specs, a domain name must not have multiple records that would cause an authorization check to select more than one record.

If you need to authorize more than one mail server for your domain, it is recommend that you update your existing SPF record instead of creating multiple records.

 

Via:

http://mxtoolbox.com/problem/spf/spf-record

http://support.easydns.com/tutorials/SPF/

https://support.google.com/a/answer/4568483?hl=en

Tools:

http://mxtoolbox.com/SuperTool.aspx

http://www.kitterman.com/spf/validate.html

Use PowerShell to Explore Office 365

Use PowerShell to Explore Office 365

  1. Type Connect-MsolService
  2. Enter your office 365 credentials.
  3. Type Get-Command -Module MSOnline to see all available commands.

Examples:

To see your package and licenses:

PS C:\Users\guy.naftaly> Get-MsolAccountSku |ft -AutoSize

 

AccountSkuId         ActiveUnits WarningUnits ConsumedUnits

————         ———– ———— ————-

xxxxxxx:MIDSIZEPACK 61          0            44

How to Staged migration mailbox To Office 365

Staged migration

Staged migration enables migration from an on-premises Exchange 2003 or

Exchange 2007.

1.     Prepare a CSV file.

 

Attributes


Here are the attributes for each mailbox. The CSV file can only contain these attributes.

EmailAddress specifies the primary SMTP e-mail address for users’ on-premises mailbox. For example, pilarp@tailspintoys.com. This attribute is required.

Important   Be sure to use the primary SMTP address for on-premises mailboxes and not user IDs from the cloud-based organization. For example, if the on-premises domain is named tailspintoys.com but the cloud-based e-mail organization is named service.tailspintoys.com you would use the tailspintoys.com domain name for e-mail addresses in the CSV file.

Password is the password that will be set on the new cloud-based mailbox. Any password restrictions that are applied to your cloud-based organization apply to the passwords included in the CSV file. For more information, see Password Guidelines. This attribute is optional.

ForceChangePassword specifies whether a user must change the password the first time they sign in to their new cloud-based mailbox. Use either True or False for the value of this parameter. Other values are invalid. This attribute is optional.

Important   If you’ve implemented a single sign-on solution by deploying Active Directory Federation Services 2.0 in your on-premises organization, you must use False for the value of the ForceChangePassword attribute.

CSV file format


Here’s an example of the format for the CSV file. In this example, three on-premise mailboxes are migrated to the cloud.

EmailAddress,Password,ForceChangePassword

pilarp@tailspintoys.com,Pa$$w0rd,False

tobyn@tailspintoys.com,Pa$$w0rd,False

iant@tailspintoys.com,Pa$$w0rd,False

The first row, or header row, of the CSV file lists the names of the attributes, or fields, specified in the rows that follow. Each attribute name is separated by a comma.

Each row under the header row represents one user and supplies the information that will be used to migrate the user’s mailbox. The attribute values in each row must be in the same order as the attribute names in the header row. Each attribute value is separated by a comma.

Use any text editor, or an application like Microsoft Office Excel, to create the CSV file. Save the file as a .csv or .txt file.

  1. Sign in to the Office 365 portal (https://portal.office.com).
  2. Click Admin, and then click Exchange.
  3. Click Migration, click New (

), and then click Onboarding.

  1. Select the migration option that you want, and then click Next. Migration options are as follows:
    1. Remote move
    2. Staged migration
    3. Cutover migration
    4. IMAP

6.     On the “Select the mailboxes” screen, locate the CSV file that you created in step 1, and then click Next.

7.     Enter the credentials of your on-premises admin account, and then click Next.

8.     Enter a name for the migration batch, and then click Next

9.      Specify the admins in your Office 365 organization who should receive the migration report, select one of the following migration methods, and then click New:

 

    1. Automatically start the migration
    2. Manually start the migration later

via How to migrate mailbox data by using the Exchange Admin Center in Office 365.

http://help.outlook.com/en-us/140/ff959691(d=lightweight).aspx