Debian 13 was fairly recently released, but AWS is already shoving it as the primary AMI, and make getting a good Debian 12 a few more steps. Most apps aren't yet compatible with Debian 13, so I recommend waiting for it to stabilize, but here is some information on getting a basic mail server working on Debian 13...