Linux/Unix/macOS prompts “You have new mail”

index > dev > operating-system > nix

This shows there are emails, which should locate at /var/mail/$USER or /var/spool/mail/$USER. Typically, it is generated by crontab.