I've not personally used them but there have been a lot of posts regarding using ESP boards flashed with Konnected as they're cheap/versatile. You could connect a standard magnetic alarm contact to it that so it signalled when the mailbox door was opened.
Take a look at this post:
and the info provided by @djh_wolf who often recommends them