Connect Exchange Server (on-premises)
What you need
- Exchange Server 2013 or newer (on-premises)
- Access to the Exchange admin center or the Exchange Management Shell
- Your EasyMailArchive account
The transport rule archives all new messages continuously. Existing mail is imported separately over IMAP mailboxes (see below).
1. Copy the relay address
- Open Administration > Integrations.
- On the SMTP BCC relay card, click Set up.
- Copy Your relay address. It looks like
{slug}-{token}@smtp.easymailarchive.com. The part after the hyphen is a token that differs for each tenant. Addresses without the token stop working after a short grace period.
2. Create the transport rule
In the Exchange admin center:
- Open Mail flow > Rules.
- Create a new rule, for example named "Archive".
- Apply it to all messages.
- As the action, choose Bcc the message to and enter the relay address.
- Save and enable the rule.
Or in the Exchange Management Shell:
New-TransportRule -Name "Archive" -BlindCopyTo "{slug}-{token}@smtp.easymailarchive.com"
Without further conditions, the rule applies to all messages.
3. Check outbound delivery
The copy goes to smtp.easymailarchive.com as normal external mail. Your Exchange must be able to deliver externally.
- Make sure a send connector reaches external addresses. This also applies if you use your provider's smarthost.
- The server or smarthost must be allowed to open outbound connections on port 25 to
smtp.easymailarchive.com. - The relay address needs no login.
4. Finish the setup
- In the SMTP BCC relay setup dialog, click Done.
- The message "SMTP BCC source created." confirms the source.
5. Test
- Send a test email with a unique subject from a mailbox to an external address.
- Send a second test email from outside to a mailbox.
- Search for the subject under Search.
How to verify the first archived mail: Verify your first archived email.
6. Import existing mail
The transport rule only captures new messages. Import older mail with IMAP mailboxes.
- Enable IMAP for the mailbox, for example with
Set-CASMailbox -Identity [email protected] -ImapEnabled $true. - Make sure the Exchange IMAP services are running and the server certificate is valid from outside.
- IMAP must be reachable on port 993 (SSL) or 143 (STARTTLS).
- Open Administration > Integrations and choose IMAP mailboxes.
- Click Add mailbox.
- Enter Server, Username and Password.
- Under Assign emails to, choose the matching user or group.
- Click Test connection, then Add mailbox.
The import reads inbox, sent and all other folders except drafts, spam and trash, and skips messages that are already archived. Progress is shown under Administration > Import Jobs.
The import starts when you add the mailbox. After that the mailbox is checked for new mail about every 15 minutes. The transport rule still matters: it also catches mail deleted between two checks.
More on IMAP mailboxes: IMAP integrations.