Skip to main content

Get Rejection Logs

Find rejected messages and the reasons for their rejection.

Required application permissions: Monitoring | Rejections | Read..

Note: You must provide at least one parameter to execute the action.

External Documentation

To learn more, visit the Mimecast V2 documentation.

Basic Parameters

ParameterDescription
AdminIndicate whether the request is at the admin or user level. When selected, the request retrieves messages for all users.
Search By End DateThe end date ot results to search by. The default value is the current date.
Search By MailboxRetrieve rejections by a given user. If the Admin parameter is selected and no mailbox is provided, will retrieve rejections for all users. Otherwise, if no mailbox is provided, will retrieve rejections for the authenticated user.
Search By Start DateThe start date of results to search by. The default value id the start on the current day.

Advanced Parameters

ParameterDescription
Search FieldThe field to be searched.
Search ValueThe value on which the search will be applied.

Example Output

{
"data": {
"rejections": [
{
"created": "yyyy-MM-dd'T'HH:mm:ssZ",
"description": "string",
"detectionLevel": "not_initiated",
"fromAddress": "string",
"id": "string",
"info": "string",
"ipAddress": "string",
"manageRecipient": true,
"remoteEhlo": "string",
"remoteName": "string",
"spamScore": 0,
"toAddress": "string",
"toAddressPostCheck": "string",
"toAddressPreCheck": "string",
"type": 0
}
]
},
"fail": [
{
"errors": [
{
"code": "string",
"message": "string",
"retryable": true
}
],
"key": {
"admin": true,
"end": "yyyy-MM-dd'T'HH:mm:ssZ",
"mailbox": "string",
"searchBy": {
"field": "string",
"value": "string"
},
"start": "yyyy-MM-dd'T'HH:mm:ssZ"
}
}
]
}

Workflow Library Example

Get Rejection Logs with Mimecast V2 and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop