Even the simplest parser systems, like the Scott Adams database format, basically always have some way of flagging whether objects are portable or not: being able to take things and drop them in different rooms has been a hallmark of the genre since Colossal Cave. State tracking in a Scott Adams game is limited to the locations of the player and each object; a big pile of boolean flags; and a small number of integer variables. So the game handles picking things up and moving them around, but beyond that, the author has to do everything themself—there’s no conception of objects having individual properties, for example, beyond their location and whether they’re portable. So if you want three different pieces of clothing that can be worn, you need to make three separate global flags and track them individually.
More advanced systems typically extend this portable/not portable distinction to other things. Most of them will have a “container” option in the standard library, for example; set this flag on an object, and you can put other things inside it. Or “light source” (lets you see in the dark), or “edible” (lets you eat it), and so on. The majority of objects in your average parser game are singletons (there aren’t a lot of identical copies of the same thing), but these represent traits shared between many objects: there may be only one apple and one pear, but they’re both edible, both portable, both lightweight, and so on.
Dialog, for example, has standard traits for various linguistic purposes (“name starts with a vowel”, “proper noun”, “plural”, “pair”, “unique”, “uncountable”, “belongs to you”) and world-modelling ones (“can put things in it”, “can put things on it”, “player can fit in/on it”, “counts as a location”, “connects locations”, “vehicle”, “is a direction”, “is a relation”, “animate”, “can be opened”, “can be locked”, “opaque”, “portable”, “wearable”, “male/female/gender-neutral”…and more!).
This means that, while there’s no standard definition of a mailbox—the details will depend on the game, after all!—you can build your singleton mailbox and immediately tag it with “unique”, “belongs to you”, “can put things in it”, “openable”, “not portable”, “not lockable”, and so on. That’ll get you a lot of the behaviors you want without needing any special treatment. Authors can also create their own traits for their own purposes, and most do!