How to Install and Configure Postfix on Ubuntu 26.04

To install and configure Postfix on Ubuntu 26.04, choose Internet Site and test with a throwaway inbox on temp-mail.org.

Step 1 : Update.

Step 2 : Install Postfix. Debconf: Internet Site; system mail name = this machine’s hostname.

Step 3 : Check status.

Step 4 : Install mailutils.

Step 5 : Open a temporary inbox and copy the address.

Step 6 : Change you@example.com to the address from step 5 (a throwaway inbox — not a vhost hostname).

Step 7 : Reload the inbox and confirm the mail arrived.

Step 8 : Check the journal.

If the mail type was wrong, run sudo dpkg-reconfigure postfix.

You have installed and configured Postfix on Ubuntu 26.04.