HaloPSA’s built-in treat as spam option can’t be reached from quick actions or workflows, and it’s gated on agent role — so a “close as spam” action can only close the ticket, never stop the next one. Email rules are the way to automate this.
Two things to enable
Both are required. Neo can read your email rules as soon as the HaloPSA integration is connected, but creating one needs each of these.1
Enable the `admin` scope on your HaloPSA API application
In HaloPSA, go to Configuration → Integrations → HaloPSA API → View Applications, open the application you created for Neo Agent, then Permissions → Edit. Set admin to Yes and save.Without it, HaloPSA rejects every configuration write — including email rules — with a 403 Forbidden and an empty response body. Reads are unaffected.
2
Grant the Email Rules permission group to your agent
In the Neo Agent dashboard, open the agent that should do the blocking — typically a spam-cleanup or triage agent — and on its Integrations tab set the Email Rules permission group to Read / Write.Turn on Delete as well if the agent should be able to remove rules (that’s how a wrongly-blocked sender is unblocked). To review each block before it applies, turn on technician approval for this group.The group is read-only in the Read Only and Helpdesk profiles, and read/write in IT Admin and Full Automation. Existing agents don’t get it automatically — grant it deliberately, per agent.
What Neo does with it
Given the permission, an agent that identifies a message as spam can add a rule that matches that exact sender address and ignores it. Neo reads your existing rules first so it mirrors your tenant’s conventions and doesn’t add a duplicate, and it records the address it blocked on the ticket — an ignore rule is invisible until someone goes looking for it.Unblocking a sender
Delete the rule in HaloPSA (Configuration → Email → Email Rules) and delivery resumes immediately. An agent with Delete enabled on the Email Rules group can also remove it on request.If it isn’t working
Related
- Creating an API Application — full OAuth scope list for the HaloPSA integration
- PSA API tool — how permission groups gate everything Neo does in your PSA
- Technician-in-the-Loop — requiring approval before a write
