Check manual page of check_mailboxes
|Distribution||official part of Check_MK|
There is a caveat though: Many mailservers don't support retrieving mails sorted by age and it would be very costy (in terms of traffic and check time) to retrive all mails. To work around this, the check retrieves a configurable number of the least recently and most recently modified mails from the server and checks the age of those. Unless mails get moved between mailboxes, the least recenly modified mail should also be the oldest one and the most recently modified mail should be the newest.