hornet icon

hornet

Interact with hornet API

Actions452

Spam And Malware Protection → Filtering Emailhandling Domain Id Post

AI-generated

Summary

Filter email handling configuration for a domain identifier

Inputs

  • domain_id (required) — The domain identifier for the filtering rule set
  • APP-ID (required) — A unique identifier specific to your app issued by the Hornet service, sent as a request header
  • spamhandling — The type of spam handling (1=Quarantine, 0=Tag), sent in the request body
  • tagphrase — The tag phrase applied when spam handling is set to Tag (0)
  • infomailtagphrase — The tag phrase applied to infomail filtering
  • infomailhandling — The type of infomail handling (0=Quarantine, 1=Tag), sent in the request body
  • grey_active — If true, activates the infomail filter for all users; default is true
  • grey_user — If true, allows individual users to enable or disable the infomail filter; default is false
  • social_media_filter_enabled — Enables or disables social media filtering; default is false
  • travel_filter_enabled — Enables or disables travel-related filtering; default is false
  • purchase_filter_enabled — Enables or disables purchase-related filtering; default is false
  • requestOptions — Collection of request-level options including batching (size and interval), timeout, HTTP proxy, and SSL certificate validation bypass

Output shape

API response from the Hornet spam and malware protection filtering endpoint

Returns the server's confirmation or status of the applied filtering configuration

Examples

Example 1: Apply spam quarantine and tagging rules to a specific domain

domain_id: 42, APP-ID: 'my-app-123', spamhandling: 1, tagphrase: '[SPAM]', infomailhandling: 0, grey_active: true

Links

Discussion