Administrator guide: Ascripto and Microsoft 365
Last reviewed 23 November 2026
For the Global Administrator, Exchange Administrator or IT provider who has been asked to connect Microsoft 365 or to change mail flow, and for anyone evaluating what Ascripto does to a message. Signatures arrive through the Outlook add-in, which has its own guide; mail flow through the relay is optional.
The Entra application
Two multi-tenant application registrations, publisher domain ascripto.com: Ascripto, for sign-in, the directory and the Outlook add-in, and Ascripto Exchange setup, for Set it up for me, Check it for me and Remove it for me alone, so that connecting the directory asks nothing of Exchange. A customer sees Ascripto in the Microsoft Entra admin center, and Ascripto Exchange setup as well once an administrator has used one of those three.
| Permission | Type | Asked when | Used for |
|---|---|---|---|
openid, profile, email | delegated | sign-in | who is signing in; identity keyed on the account’s object id and tenant id, never the email |
Microsoft Graph User.Read.All | application | Connect Microsoft 365 (admin consent) | the directory reader: users, with delta queries for changes |
Microsoft Graph Domain.Read.All | application | the same consent | the organisation’s verified domains: the proof that a domain routed through the relay is yours |
Microsoft Graph MailboxSettings.Read | application | the same consent; a workspace connected before it was asked for grants it with Settings → Connections → Reconnect | for an account with no licence and a mail address only, its mailbox type (userPurpose): a shared mailbox, a room or equipment. Nothing else in a mailbox’s settings is kept |
Office 365 Exchange Online Exchange.Manage (Manage Exchange configuration), registration Ascripto Exchange setup | delegated | Set it up for me, Check it for me and Remove it for me only, for the administrator who signs in | letting Ascripto create, read back or remove the connectors and the rule on that one occasion; Check it for me runs Get- cmdlets only, as Exchange has no permission that only reads |
Ascripto’s own access_as_user | delegated | never: the application pre-authorises its own Outlook add-in | the Outlook add-in telling Ascripto who is writing, through nested app authentication |
Group.Read.All is not asked for; nothing reads groups. Application permissions are authenticated by certificate, not a client secret.
Who can consent. Admin consent for the directory needs a Global Administrator or Privileged Role Administrator; Ascripto checks the sign-in’s directory roles before sending anyone to Microsoft’s consent screen, and tells a non-administrator who can do it instead. Set it up for me and Check it for me need a Global Administrator or Exchange Administrator; Exchange applies its own role-based access control as well. Microsoft’s prompt for it offers Consent on behalf of your organization: leave it unticked, because Ascripto needs the permission only for the person signing in, once.
Publisher verification completed on 2026-10-30 for Ascripto and on 2026-11-12 for Ascripto Exchange setup: each consent screen shows the verified badge beside the publisher name, which is the registered name of Ascripto’s operator, Andrii Koptiukh Software Developer. With Microsoft’s default consent settings a non-administrator can sign in without approval; connecting the directory, Set it up for me and Check it for me need an administrator as before.
Directory sync
Changes are read every minute (Microsoft Graph’s delta query) and the whole directory once a day, or now from Settings → Connections. Unlicensed users appear and cost nothing. A user who disappears goes to Ascripto’s recycle bin (7 days by default, settable to a year) and returns as the same record if seen again.
Mail flow: the loop-back relay
Microsoft Graph cannot manage Outlook signatures, Exchange Web Services is being disabled in phases from October 2026 to April 2027, and transport-rule disclaimers cannot carry images or sit under the latest reply. Ascripto therefore signs in transit, and, with the Outlook add-in, as people write:
sender ─▶ Exchange Online ──(outbound connector)──▶ Ascripto relay
│ inserts the signature
Exchange Online ◀──(inbound connector)─────┘
│
└─▶ delivers to the recipient as it does today
The message leaves your tenant and comes straight back. Consequences worth stating to whoever owns your mail:
- MX records, inbound mail and SPF are untouched. The last hop to the recipient is Exchange Online’s own IP, so SPF and DMARC evaluate exactly as before.
- Outgoing only, and only for the domains you add in Settings → Delivery, which must be verified in your tenant (Ascripto reads them from Graph).
- Both legs are SMTP on port 25 with TLS required. Ascripto is identified to your tenant by certificate, never by IP, so a change on Ascripto’s side never needs a change in your tenant.
- Relay host:
eu1.relay.ascripto.com, under the*.relay.ascripto.comcertificate, hosted on Microsoft Azure in Germany West Central. The connector also nameseu2.relay.ascripto.com, reserved for a standby: it has no address yet, so all mail goes toeu1. - In Japan, South Korea or Taiwan, this route takes your mail to Frankfurt and back. If your mail must stay in your country’s region, use the Outlook add-in instead: it adds the signature in Outlook, and no mail passes through Ascripto. Where each kind of data is kept: Where your data is.
What the setup creates
Both routes (Set it up for me and the script) create the same three objects from the same description, and both are idempotent: an existing object is updated, not duplicated. Both also add one exception to your own rules that add a disclaimer or a subject prefix (below).
Inbound connector Ascripto inbound: type on-premises, enabled, RequireTls, accepting mail whose TLS client certificate is *.relay.ascripto.com, for any sender domain (RestrictDomainsToCertificate false), CloudServicesMailEnabled so Exchange treats the returning message as its own and keeps the original headers.
Outbound connector Ascripto outbound: type on-premises, enabled, scoped to the transport rule (IsTransportRuleScoped), smart hosts eu1.relay.ascripto.com and eu2.relay.ascripto.com, TlsSettings DomainValidation with TlsDomain *.relay.ascripto.com, UseMxRecord false, RouteAllMessagesViaOnPremises false.
Mail flow rule Ascripto signatures, made at priority 0 and never moved after (a run of the setup sets everything else back), mode Enforce, RuleErrorAction Ignore. It never reads x-ascripto-addin, the add-in’s header; a rule of your own above it may (how).
| Condition / exception | Value | Why |
|---|---|---|
| sender’s address domain is | your routed domains, matched on the envelope | only your domains' mail |
| sender is | inside the organisation | never relay inbound or external mail |
except if the header X-Ascripto-Relayed matches | . | the relay adds this header; without the exception the message would loop |
| except if the sender address matches | <> and Return-Path contains <> | bounces have no signature |
| except if the message type is | Calendaring | invitations are left alone |
| action | route via Ascripto outbound |
The script (relay-setup.ps1, shown step by step on the Delivery page) installs the ExchangeOnlineManagement module if missing, runs Connect-ExchangeOnline, then Get- / Set- or New- each object and Enable-TransportRule. It runs in Windows PowerShell 5.1 or PowerShell 7. Set it up for me runs the same cmdlets through Exchange’s admin endpoint with a delegated token that lives in the request’s memory for about an hour and is never written anywhere: not the database, not a cookie, not a log.
The check
Ascripto cannot read your Exchange configuration. The check script runs Get-InboundConnector, Get-OutboundConnector and Get-TransportRule for the three names and writes ascripto-check.json, with your rules that add a disclaimer or a subject prefix; uploading it on the Delivery page compares each setting with what the setup sets and lists any difference by name and value, and says of each such rule whether it adds its text once or twice. The file is compared and discarded. Check it for me reads the same through Exchange’s admin endpoint with the administrator’s delegated token, as Set it up for me does, and compares it the same way; Account activity records that it ran and whether it matched. The domain row’s mail-flow probe is the other half: Last mail 2 minutes ago · 14 in the last 24 hours, or No mail from it has reached Ascripto in N days.
Disclaimers and subject prefixes
Exchange runs your own mail flow rules on a relayed message twice: before it leaves for Ascripto, and again when it comes back through Ascripto inbound. A rule that adds a disclaimer (ApplyHtmlDisclaimerText) or a subject prefix (PrependSubject) would add it twice, and the second copy, added after Ascripto, would also break a DKIM signature Ascripto adds. Rule order does not change this. One exception on each such rule does: except if the message header X-Ascripto-Relayed matches .. Only mail coming back from Ascripto carries that header, so the rule then adds its text once, before the relay.
The setup adds that exception for you (step 5 of the script, and of Set it up for me) to each such rule that has no header exception yet. Nothing else in the rule changes: not its conditions, its text or its order. A rule can have only one exception of this kind; if yours already uses it for another header, the setup leaves the rule as it is and the check names it. To add the exception by hand, in the Exchange admin center open Mail flow > Rules, edit the rule, and under Except if choose The message headers > matches these text patterns with the header X-Ascripto-Relayed and the pattern .; or in PowerShell:
Set-TransportRule -Identity 'Your disclaimer rule' -ExceptIfHeaderMatchesMessageHeader 'X-Ascripto-Relayed' -ExceptIfHeaderMatchesPatterns '.'
If the rule’s header exception is already taken, write to hello@ascripto.com and we will find the right condition with you. Removing Ascripto leaves the exception in place; it does nothing once no mail carries the header.
DKIM for your domains
Exchange Online does not DKIM-sign a message that came back through a connector, so mail through Ascripto passes DMARC on SPF alone, and a copy a recipient forwards can fail it. Ascripto can sign it instead, with your domain’s own name, on every plan. You delegate two selectors to Ascripto with two CNAME records; the keys stay with Ascripto, which replaces them behind those records without anything for you to do.
- Settings → Delivery → DKIM for your domains: Turn on for a domain whose mail goes through Ascripto. It shows two records.
- At the domain’s DNS host, add both, as they are:
Some DNS hosts want the name without the domain (ascripto1._domainkey.example.com CNAME ascripto1.dkim.ascripto.com ascripto2._domainkey.example.com CNAME ascripto2.dkim.ascripto.comascripto1._domainkey). The records leave Microsoft’s own DKIM (selector1andselector2) alone, which keeps signing the mail that does not go through Ascripto. - Ascripto looks the records up at once, then every hour; Check now looks again. When both point at Ascripto, the domain says Signing, and its mail is signed from then on.
The relay signs a message when its From: address is at a domain that says Signing and belongs to the sender’s own workspace. Mail it passes on unsigned, as for a workspace whose payment failed, is not DKIM-signed either. If a check finds a record gone or changed, the domain says Not signing: the relay stops signing it at once, Home and Delivery warn, and Settings → Team → Account activity records when. Put the records back, or turn DKIM off. To stop, turn DKIM off first, then remove the records. A disclaimer rule must skip mail coming back from Ascripto, or its second copy breaks the signature; the setup sees to that (Disclaimers and subject prefixes).
What the relay does to a message
Per recipient (the relay handles one recipient per transaction, so a message to three people is three deliveries back):
- Route. The sender’s domain is looked up in the relay’s local copy of your routes to find which Exchange Online host to hand the message back to. An unknown domain is refused with a temporary (4xx) error, never guessed, so a propagation gap costs a delay and not a misrouted message. Exchange retries.
- Decide whether to sign. Left exactly as received, and logged as Not signed with the reason: S/MIME-encrypted or digitally signed mail; bounces; a sender who is not a person in your directory with a signature (a distribution list, a redirected message, a shared mailbox no signature names); a message too large to sign; the rare message classic Outlook sends as rich text only (
winmail.dat) that cannot be placed safely; and a message whose text the relay cannot read safely in the character set it declares (below). Calendar messages never arrive: the rule’s Calendaring exception keeps them in Exchange Online. - Insert. The signature’s HTML and plain text are placed under the new text and above any quoted earlier messages, in both the HTML and plain-text parts. Images are embedded as inline MIME parts, deduplicated by content so a thread does not accumulate a copy of the logo per reply. Where the message carries the sender’s own Outlook signature (Outlook’s
<div id="Signature">block), that block is replaced rather than doubled. Ascripto’s own signature is wrapped as<div data-ascripto-sig="1">so a re-send or a loop finds it and does not add a second. - Choose the version. A reply or forward gets the signature’s reply version where it has one, told from the message alone: an
In-Reply-ToorReferencesheader, an OutlookThread-Indexof a later message in a conversation, or else a subject that starts with a reply or forward prefix (RE, FW, FWD, AW, WG, TR, SV, VS, RV, and the Japanese, Korean and Chinese ones). Nothing is looked up. The Message log says which version went in. - Mark and return.
X-Ascripto-Relayedis added and the message is handed back to your tenant over TLS.
Japanese, Korean and Chinese mail
Mail in the older encodings these languages still travel in is signed. Shift_JIS, EUC-KR and its Microsoft form (ks_c_5601-1987), GBK and Big5 are written back in their own encoding with only the signature added. ISO-2022-JP, in which Japanese mail from Outlook usually travels, and ISO-2022-KR and HZ are converted to UTF-8, which every current mail client reads, because a signature cannot be added inside them safely. Headers are never changed, so the subject and the names read exactly as the sender wrote them.
Exchange Online’s remote-domain settings for these languages (PreferredInternetCodePageForShiftJis, CharacterSet, NonMimeCharacterSet) need no change for Ascripto. A message whose text the relay cannot read safely, such as Korean or Chinese mail under the wrong character-set label or with damaged bytes, goes out unsigned and exactly as it came, and the Message log says why.
Signing never depends on Ascripto’s control plane. Signatures are published to the relay hosts as a bundle and read from local disk; the relay keeps signing if the web app or database is down.
Fail modes
| Situation | Default behaviour | Alternative |
|---|---|---|
| Signing cannot happen (the relay’s signer is busy, unreachable or has no bundle for your workspace yet) | fail-open: the message is sent on without a signature and logged as Sent without a signature | fail-closed, per workspace on request: the message is deferred for Exchange Online to retry, for organisations whose signature carries a legally required disclaimer |
| Routing cannot be resolved | always fail-closed (temporary refusal; Exchange queues and retries) | none; a wrong guess would hand your mail to another tenant |
| Workspace suspended for non-payment | mail passes through unsigned for 7 days, then is refused temporarily; Exchange Online queues and eventually returns it to the sender unless the routing is removed | pay, or switch the rule off |
| Workspace suspended for a terms breach | refused temporarily at once | remove the routing |
| Workspace closed or deleted by its owner | refused permanently at once, saying the domain no longer uses Ascripto, from closing until 90 days after it is deleted; then temporarily, as any domain nobody routes | remove the routing before closing |
Shared mailboxes
A shared mailbox (info@, sales@) gets a signature of its own once a signature is For: Shared mailboxes; until then nothing changes for it. It is never a seat, on any plan. A room or equipment mailbox is never signed. People lists shared mailboxes apart, under Status → Shared mailboxes.
A different signature for each. A signature is for people or for shared mailboxes, chosen at the top of its rule. Give info@ and sales@ one signature each: For: Shared mailboxes, then These shared mailboxes and the address. A signature below them with Every shared mailbox not named above takes the rest; the list says Every other shared mailbox. A signature given to one mailbox from People reaches it too. The default signature never does: it reads Everyone else (people, never shared mailboxes).
How Ascripto tells them apart. A directory account with no licence and a mail address is a mailbox nobody signs in to: a shared mailbox, a room, or a leaver’s mailbox converted to shared. With MailboxSettings.Read, Ascripto asks Microsoft which, for those accounts only. Without it, each is taken for a shared mailbox; a room sends only calendar messages, which are never signed. A shared mailbox keeps the status your directory gives it (its sign-in is blocked, so it reads as suspended): its kind, not its status, decides that it may be signed.
Through the relay. Mail sent as the shared mailbox (Send As) carries its address as the sender, and the relay signs it with the mailbox’s signature. Mail sent on behalf of it carries the writer as the sender and the mailbox as From: the relay reads From and signs with the mailbox’s signature where it has one, otherwise the writer’s. The same holds for someone sending as or on behalf of a colleague: the colleague’s signature, if they hold a seat.
With the Outlook add-in. It reads From as a message opens and again when someone changes it, and puts in that address’s signature: the shared mailbox’s, a colleague’s who holds a seat, or the writer’s own where From has none. Where the shared mailbox is in your own folder list (Outlook on the web in the same tab, new Outlook when an administrator added it, classic Outlook), a new message starts from you; change From to the mailbox and its signature goes in. Where the mailbox is opened on its own (Outlook on the web with Open another mailbox, in its own tab; new Outlook when you added it as an account yourself; Outlook for Mac), every message written in it gets the mailbox’s signature; that needs the add-in’s update of November 2026. Outlook on phones supports none of this, so there the writer’s goes in. The add-in marks a message as signed only with From’s own signature (the add-in).
A workspace connected before this takes two steps, and Ascripto shows them until both are done: accept the updated add-in in the Microsoft 365 admin center (Settings → Integrated apps → Ascripto), and grant the new permission with Settings → Connections → Reconnect. Until the first, Outlook does not run the add-in for your people; mail through the relay is still signed. A shared mailbox opened on its own needs one more update of the add-in there, of November 2026 (Update add-in, with the file from https://outlook.ascripto.com/manifest.xml); until then Outlook keeps running the version you have.
The message log
Settings → Delivery → Message log: every message through the relay, newest first, for the last 10 days, searchable by sender, recipient or Message-ID, updated every few minutes. Per recipient: Signature inserted or Not signed: reason, and Left the relay, accepted by Microsoft / Waiting: Microsoft asked the relay to try again / Refused by Microsoft; the sender gets a bounce, with the SMTP code and attempt count. The subject and content of mail are never stored, so they cannot be searched. The trace holds envelope addresses, Message-ID, time, size and outcome.
What recipients and senders see
- With the relay alone, the signature is not in the compose window or in Sent Items, because it is inserted after Send. There is no “Sent Items update”. Where it deploys — on a paid plan, or on Free for five people — the Outlook add-in puts it there as people write, and the relay then replaces it rather than adding a second.
- Every client is covered, including Outlook mobile and Apple Mail, because nothing depends on the client.
- Authentication: Exchange Online delivers the returned message with SPF-aligned DMARC (its own IP sends it). It does not DKIM-sign a message that came back through a connector, which is the same as other relay products. A copy later forwarded by a recipient may therefore fail DMARC, unless you turn DKIM on for the domain and add two CNAME records: Ascripto then signs its mail with the domain’s own name.
Removing Ascripto
When you close the workspace, Settings → Team → Close this workspace offers Remove it for me: you sign in to Microsoft as a Global or Exchange Administrator, and Ascripto switches the rule off, removes it and both connectors, then checks that none is left. The permission is used once and not kept. The removal script beside it does the same in PowerShell. Do it before closing: once the workspace is closed, the relay refuses its mail for good. Then remove the add-in and the apps, steps 4 and 5 below.
By hand, keeping the workspace, order matters, because removing a domain in Ascripto makes the relay hold that domain’s mail at once.
- In Exchange Online, switch the rule off first:
Disable-TransportRule -Identity 'Ascripto signatures' -Confirm:$false(the Delivery page shows this line when you remove the last domain). - In Ascripto, Settings → Delivery → Remove each domain.
- Delete the rule and the connectors:
Remove-TransportRule 'Ascripto signatures',Remove-OutboundConnector 'Ascripto outbound',Remove-InboundConnector 'Ascripto inbound'. - If the Outlook add-in is deployed: Microsoft 365 admin center → Settings → Integrated apps → Ascripto → remove it.
- In the Microsoft Entra admin center → Entra ID → Enterprise apps → Ascripto → Permissions → Admin consent → revoke the permissions, or delete the enterprise application, which removes every grant. Do the same for Ascripto Exchange setup if it is listed, as it is once Set it up for me or Check it for me has been used.
To remove one domain and keep the rest: remove it in Ascripto, then run the setup again straight away; the regenerated rule no longer names it. Until you do, Exchange keeps sending that domain’s mail to Ascripto and it waits; nothing is lost.
Seats and data
A seat on Microsoft 365 is anyone the relay signed at least one message for, or whose signature the Outlook add-in set, in the month; once, however their mail is signed. Shared mailboxes and senders without a signature cost nothing.
Data handling (storage region, retention, staff access, the DPA) is the same as for Google Workspace and is set out in that guide. Specific to the relay: message content is handled in transit and not stored; the message log is kept 10 days.
Sources
- Configure mail flow using connectors in Exchange Online — Microsoft Learn
- Review permissions granted to enterprise applications — Microsoft Learn
- Deprecation of Exchange Web Services in Exchange Online — Microsoft Learn
- Set up DKIM to sign mail from your Microsoft 365 domain — Microsoft Learn
- EWS deprecation and email signatures: what breaks — Ascripto