hornet icon

hornet

Interact with hornet API

Actions452

Email Encryption → Email Encryption Communication Settings Put

AI-generated

Summary

Updates the email encryption communication settings for a given object (user, customer, or partner) by creating or modifying a rule that defines how incoming or outgoing mail is handled based on direction, action, and filter criteria.

Inputs

  • object_id (required) — ID of the object (user, customer, or partner) to which the rule applies. Passed as a query parameter according to the node configuration. Default is 0 but must be provided by the workflow author if the endpoint expects a specific value.
  • APP-ID (required) — Application identifier issued by the service. Sent as a custom HTTP header.
  • direction (required) — Mail direction for the rule. 1 = INCOMING, 2 = OUTGOING. Sent in the request body.
  • action (required) — Action to take when the rule matches. 1 = ALLOW_UNENCRYPTED, 2 = ALWAYS_ENCRYPT. Sent in the request body.
  • criterion (required) — Filter criterion type. 1 = ADVANCED, 2 = HEADER, 3 = BODY, 4 = ADD_IN. Sent in the request body.
  • sender — Sender address to filter for. Only required when criterion is ADVANCED (1) or ADD_IN (4). Sent in the request body.
  • receiver — Recipient address to filter for. Only required when criterion is ADVANCED (1) or ADD_IN (4). Sent in the request body.
  • ip — IP address to filter for. Only required when criterion is ADVANCED (1) or ADD_IN (4). Sent in the request body.
  • hostname — Hostname to filter for. Only required when criterion is ADVANCED (1) or ADD_IN (4). Sent in the request body.
  • subject_contains — Subject text to filter for. Only required when criterion is ADVANCED (1) or ADD_IN (4). Sent in the request body.
  • attachment_contains — Attachment name to filter for. Only required when criterion is ADVANCED (1) or ADD_IN (4). Sent in the request body.
  • email_header_filter — Email header value to filter for. Only required when criterion is HEADER (2). Sent in the request body.
  • email_body_filter — Email body text to filter for. Only required when criterion is BODY (3). Sent in the request body.
  • info — Description of the rule. Sent in the request body.
  • encryption_type — List of encryption types as strings (e.g., [TLS, SMIME]). Only required when action is ALWAYS_ENCRYPT (2). Accepted values: TLS, EMIG, DANE, SMIME, PGP, WEBSAFE, ALL_CIPHER, TRUSTED_CERT, SECURE_CIPHER, TRUSTED_CERT_SECURE_CIPHER. Sent in the request body and parsed from JSON.
  • active — Flag indicating whether the rule should be applied. Sent in the request body.
  • priority — Priority of the rule. Lower integer = higher priority. Sent in the request body.

Output shape

object

The operation returns the API response containing the updated or created email encryption communication rule. Exact structure depends on the backend but will be a JSON object passed through n8n's standard HTTP response handling.

Links

Discussion