Preventing spam contacts from syncing to HubSpot via MS email integration

Hi everyone,

Our company has had Microsoft email integrated with HubSpot for about four years. I’ve recently joined the team and noticed that we have thousands of spam contacts, as contacts from spam emails are being automatically added to our HubSpot CRM.

These spam contacts typically offer services such as SEO assistance or website fixes. The challenge is that many of them use domains like outlook.com, which are also used by legitimate contacts, so domain blocking isn’t a reliable solution.

With thousands of these unwanted contacts already in our CRM, I’m actively working on cleaning them up. However, my main goal is to prevent this issue from recurring and ideally automate the removal of both previously added and newly incoming spam contacts.

Has anyone found a way to prevent spam email senders from being added as contacts in HubSpot when using the Microsoft email integration?
Any tips on filtering, automation, or best practices would be hugely appreciated.

Thanks in advance!

Hi @HelgaH,

Can you specify if these contacts are being added through a connected team email / conversations inbox or through personal inboxes?

It sounds like it’s the former in which case options in HubSpot are limited: Manage the allow and deny list in the conversations inbox or help desk

Have you reached out to your IT team to automatically quarantine certain incoming messages in your Microsoft environment? If they don’t make it to an inbox, they also can’t be logged to HubSpot. If they keywords repeat (e.g. SEO), this could be achieved with mail flow rules, for example: Mail flow rules (transport rules) in Exchange Online | Microsoft Learn

Best regards

Hi @karstenkoehler ,
Thanks for your reply!
Through personal inboxes for sure, but I’ll double-check if we also have some team emails. I suspect we have, for example, our support and general email connected to HubSpot. Would the approach be different in that case if we also receive team emails?
Thanks for the options you listed, I’ll share with our email admin to see if that could help.
Cheers,
Helga

Hi @HelgaH and welcome, it’s a pleasure to have you here!
Thanks for your question on the HubSpot Community!
If it is a shared inbox, you could use the article that @karstenkoehler shared: “Manage the allow and deny list in the conversations inbox or help desk” which explains that you can add filtering rules.
You can manage which types of emails will automatically be marked as spam.
For example, you can choose to have any emails containing a subscription link automatically marked as spam.
I hope this helps!
Let’s also consult our Top Experts: Hi @karstenkoehler, @danmoyle and @MadisonMoniz do you have other tips or best practices for filtering or automating the removal of spam contacts?
Have a lovely day and thanks so much!
Bérangère

Thanks for the opportunity @BérangèreL :grin:

Welcome to the Community @HelgaH! I’ll +1 to what @karstenkoehler has offered (always - that guy is a gem). I’ll also add some thoughts here.

HubSpot doesn’t automatically add a contact in your CRM simply because someone sends an unsolicited email to one of your users. Or at least, it’s not supposed to. However, HubSpot has a relatively new beta feature related to incoming emails and contact creation. This feature, available in some HubSpot subscriptions, allows the system to automatically populate contact properties from emails received in connected personal email inboxes by scanning email signatures and bodies for contact info. But the botoom line is that it does not create new contacts solely from incoming emails if those contacts don’t already exist.

Instead, contact creation in HubSpot via Microsoft email integration typically happens when your users send out emails to new recipients, or when emails are logged through HubSpot’s connected inbox and sales tools, especially with the Outlook or Office 365 plugins actively used for tracking and logging.

Here’s what that’s supposed to look like (Expected Behavior you might say):

  • HubSpot creates new contacts when a user sends or logs an email to a new email address. This includes outgoing emails from your users.
  • Incoming unsolicited emails to your users’ Microsoft inbox alone do not automatically create contacts in HubSpot unless the email is logged manually or via an enabled sales extension.
  • If HubSpot’s Connected Inbox or sales extension is actively logging all emails (including replies), it may create contacts for new email addresses found in those tracked emails, but just receiving an unsolicited email without an associated logged email from your user does not create a contact.
  • I have seen some feedback reported in the Community that if the email address is seen in tracked email threads, HubSpot may automatically create a contact record, but this usually still connects to logged outbound or replied emails from your team.

So my guess here is that the spam contacts you are seeing likely result from HubSpot logging emails sent or replied to by your users, or from other tools or automations connected to HubSpot. HubSpot won’t create CRM contacts solely from receiving unsolicited inbound emails without user action to log or send emails.

A few ideas to help with this could be:

  • Limit automatic logging of inbound emails unless necessary.
  • Use workflows to flag and clean spam contacts created.
  • Adjust Connected Inbox and sales extension logging settings for who and what gets logged.

To go a little deeper, recent updates to the platform mean HubSpot can automatically block or flag spammy form submissions with new AI-powered spam detection that can block contact creation at the form-level when enabled. This doesn’t apply to emails coming in through Microsoft integration directly, but it may help if you find that spammy contacts are coming through form submissions. By the way, I’d definitely investigate that to see if that’s the more likely case.

HubSpot’s Conversations Inbox allow & deny list can help mark certain emails or domains as spam to avoid adding them to CRM automatically. Unfortunately, HubSpot does not have a built-in way to filter incoming contacts created directly from connected personal inbox emails (such as Outlook in Microsoft’s email integration).

I also found these short lists that may be helpful:

Here’s a recommended HubSpot workflow and automation approach you could test out.

  1. Create a custom property to flag spam contacts.
  2. Build workflows that identify suspicious contacts (e.g., containing spammy keywords in email or company name, no engagement, etc.).
  3. Automatically unmark such contacts as marketing contacts or delete after a grace period.
  4. Use HubSpot’s allow & deny lists in Conversations Inbox to reduce spam in conversations from connected team emails.
  5. Regularly monitor contacts flagged as spam for review.

Hopefully that helps some as well.