Use a lightweight MTA like postfix or Haraka to receive emails.
Here is the stripped-down logic that actually worked 18 months ago.
Here are some of the top temporary mail script solutions for 2021:
This walkthrough uses a Node.js ecosystem with Postfix, optimized for speed and modern deployment standards. Step 1: Server and DNS Setup