on RHEL/AlmaLinux/CentOS 9.0+ to solve issue of mail: command not found. Use the renamed package name:
mail: command not found
sudo dnf install s-nail
From Repository: @System / appstream