What does PCGEN change in Exchange Online, and why is SPF needed?
Connectors, the routing rule, publication and the SPF include.
For Cloud and Combined modes PCGEN creates, with a separate Exchange administration approval:
- an outbound connector that sends mail to the PCGEN relay (the main mail server first and, when the tenant has one, the backup server second),
- an inbound connector that accepts it back from the relay, and
- a routing rule that sends the in-scope senders' mail through these connectors.
Manage tenant → Exchange Online connectors shows whether the configuration exists, whether routing is enabled, the last verification and the objects PCGEN found. Open connector setup & verification re-runs the checks.
The Relay publication card shows the version of signatures, rules and directory the relay currently has. Changes you make are published automatically.
SPF, DKIM and DMARC (optional)
All three are optional and never block Deploy. Setup shows them in the Email authentication (optional) step with a warning while any is missing: if SPF, DKIM and DMARC are not set up properly, your email might end up in junk or spam. You can deploy first and finish them later from Connectors.
SPF
Add include:spf.signatures.pcgen.cloud to the existing SPF record of your main domain, the default domain in Exchange Online (if that is the .onmicrosoft.com name, the first custom domain). It covers every PCGEN mail server, including backups, so you never need to change it when servers are added. Keep your existing entries and do not create a second SPF record. Use Check DNS to verify it. If it already includes PCGEN, setup shows Already set up and there is nothing to do.
Your other domains are listed under Other domains with their status and the value to copy. They are optional, but add the include there too for every domain you send from: otherwise recipients may treat that mail as failing SPF.
Later, Manage tenant → Exchange Online connectors → Sender SPF authorization shows the same list with the current record and the value to copy for each domain; choose Check SPF DNS after changing a record.
DKIM and DMARC
Below SPF, setup shows DKIM and DMARC for the main domain. They matter for delivery: Microsoft 365 adds a new DKIM signature after PCGEN has added the email signature only when DKIM is switched on for your own domain. Without it, mail leaves unsigned and more of it can land in spam.
- DKIM: PCGEN prepares the DKIM configuration in Exchange Online (switched off) and shows the two CNAME records to add at your DNS provider. When they are published, switch signing on in Microsoft Defender → Email authentication settings → DKIM → your domain → Sign messages for this domain with DKIM signatures. Setup then shows Already set up.
- DMARC: if the domain has no DMARC record, setup suggests
v=DMARC1; p=noneat_dmarc.<your domain>. It only monitors and never rejects mail.
Use Check DNS again to refresh both after a change.
Updated 2026-11-09