/mail/accounts/{address}/activity
0.2.0Unchanged since publicationGet a mailbox's activity report
mailreadallThe report uses the mail logs to compare hourly send counts with the mailbox's usual daily volume. It lists sending IP addresses, when each was first and last seen, and whether it is new. It counts failed sign-ins by hour, separating SMTP from IMAP and POP3, and groups successful mailbox sign-ins by IP address and device. It also shows recipient domains, message subjects, receiving servers' responses, and traffic in bytes per device since the start of the month and across the weeks covered by the retained logs.
The report flags possible compromise if the mailbox reaches its hourly sending limit or the spam filter rejects an outgoing message. It also flags a day when the mailbox sends at least 100 messages and at least 10 times its usual daily volume, if the first message that day comes from an IP address with no prior sign-in for the mailbox.
Resellers can view activity only for mailboxes on their own domains and those of their customers. The API returns 400 if hours exceeds 168 or fails validation as a nonnegative whole number.
As a command
Run as root on the serverParameters
addresspath ·MailAddressRequiredhoursquery ·integer, 1 to 168Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/mail/accounts/info@example.com/activity?hours=1" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"activity": {
"account": {},
"address": "info@example.com",
"compromised": true,
"devices": [
{}
],
"failed": {},
"hours": 1,
"ip_count": 1,
"ips": [
{}
],
"logs": {},
"logs_reach_month_start": true,
"mailbox_logins": [
{}
],
"month_start": "text",
"per_hour": [
{}
],
"queued": {},
"read_at": "text",
"rejected": [
{}
],
"responses": {},
"rules": [
{}
],
"scan": {},
"sent": {},
"server_time": "text",
"since": "text",
"spam_checks": {},
"statuses": {},
"timezone": "text",
"top": {}
}
}Errors
18 errors, each a status and a sentence400--address is required400<what> must be a whole number from 0 to <max>400<what> must be text without control characters, 1 to <max> characters400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid mail address400Invalid mail address: local part over 64 characters400Invalid mail address: no local part400Invalid mail address: the local part may hold letters, digits, dots, _ + and -400Invalid port400Invalid setting key401Authentication required404No mailbox <address> here404No such user: <owner>404Setting '<key>' not foundurbestack.com/docs/api/get-mail-accounts-address-activity/