# Run test for main domain email filters This function tests mail filters. The function tests filters for the cPanel account's main domain, and only tests against the message's body. For more information about Exim filters, read Exim's documentation. If the domain or account does not contain a filter file, this function will fail. When you disable the Receive Mail role, the system this function. Endpoint: GET /Email/trace_filter Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `msg` (string, required) The string to test. The function uses this string as the body of an email message, to check whether filters would match the string. Example: "Test" - `account` (string) The email address, to test legacy cPanel filters in the filters directory. If you do not use this parameter, the function tests the main domain's filters in the directory. Example: "user@example.com" ## Response 200 fields (application/json): - `apiversion` (integer) The version of the API. Example: 3 - `func` (string) The name of the method called. Example: "trace_filter" - `module` (string) The name of the module called. Example: "Email" - `result` (object) - `result.data` (object) - `result.data.trace` (string) A series of messages that describe the trace results. This output may contain HTML. Example: "Warning: no message headers read\\nReturn-path copied from sender\\nSender = user@example.com\\nRecipient = user@example.com\\nTesting Exim filter file "/etc/vfilters/example.com"\\n\\nFiltering did not set up a significant delivery.\\nNormal delivery will occur.\\n" - `result.errors` (array,null) List of errors if the API failed. - `result.messages` (array,null) List of messages generated by the API. - `result.metadata` (object) - `result.status` (integer) * - Success. * - Failed. Check the field for more details. Enum: 0, 1 - `result.warnings` (array,null) List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.