System senders using your own domain: connecting ERP, scanners and web shops correctly

If a system sends through someone else's mail server with your own domain as the sender, its mail looks like a forgery. This page shows how to recognise that and the four ways to solve it.

ERP systems, web shops, point-of-sale systems, ticket systems and scanners often send through their provider's mail server while using your own address as the sender, for instance info@example.com. If such a message goes to a mailbox in your organisation, it arrives from the internet with your own domain as the sender. Technically that is the same picture as a forged message pretending to be a colleague.

MailGuard can only tell the two apart by proof. If the system proves itself for your domain through SPF or DKIM, the message is confirmed. Without proof it is scored as a possible forgery and, depending on the policy, ends up in the junk folder or in quarantine.

How to recognise it

  1. In message tracing, search for the sender @example.com and set the visibility to Inbound.
  2. Open a message and look at the source IP. If it belongs neither to Microsoft 365 nor to your site, a system is sending through someone else's server.
  3. Check the Authentication-Results line in the message headers. If it shows neither spf=pass for your domain nor dkim=pass with your domain, the proof is missing.

A spf=pass alone is not enough if it applies to the provider's domain. The proof only counts if the checked domain matches the address the recipient sees as the sender.

The four ways

The order is also the recommendation.

1. Send through Microsoft 365 or Conbool Mail. The system signs in with its own mailbox or sending account. Its mail then travels like any other mail of your organisation, is signed with DKIM and no longer arrives from outside. This is the simplest way if the system allows its own SMTP server with authentication. With Microsoft 365 the system should sign in with OAuth, because Microsoft restricts sign-in with a password only.

2. Fixed address of your site. If the system sends by itself, for instance a scanner or an application on your own server, and your site has a fixed public address, that address gets its own connector in Exchange Online. The address also belongs in your domain's SPF record as ip4:.

3. The provider signs with your domain. Many web shop and ERP providers offer a custom sender domain. You add a DKIM key from the provider to your DNS, and every message then carries a signature of your domain. An include: of the provider in your SPF record is the second choice: it also allows every other customer of that provider to send in your name, and it only helps if the provider sets the return path to your domain as well.

4. A subdomain of its own. If none of this works, the system gets its own subdomain, for example send.example.com, with its own SPF record. Mistakes there then do not affect your main domain.

After the change, watch the DMARC evaluation for a few days. Only when all systems appear there with proof should the policy be set to p=quarantine or p=reject.

What you should not do

  • Put your own domain on the allow list. Every forgery carrying your domain as the sender would get through. Those are exactly the most dangerous messages.
  • Exclude internal mail from inspection. For the inspection, the system's message is not internal mail, it comes from outside. The exception would cover real forgeries as well.
  • Raise the policy threshold. That lowers protection for all senders just to accommodate a single system.

If a system cannot be changed at short notice, a separate policy just for the affected recipient mailbox is the smallest exception. It remains a transition: as long as it applies, this mailbox is less protected.

Continue with gateway bypass if devices still deliver directly to Microsoft 365.