To install and configure Postfix on Ubuntu 24.10, follow these simple steps to set up a functional mail transfer agent.
Step 1 : Ensure your system is up-to-date:
Step 2 : Install Postfix using the following command:
During installation:
- Select "Internet Site".
- Enter your System Mail Name (e.g., example.com
).
Step 3 : Run the configuration tool to adjust Postfix settings:
Provide the following details:
- General type of mail configuration: Internet Site
- System mail name: Your domain name or server hostname
- Recipient for root and postmaster mail: Your email address
- Other destinations to accept mail for: Keep the default
- Force synchronous updates on mail queue?: No
Local networks: Keep the default value
Mailbox size limit: 0 (unlimited)
Local address extension character: Leave as default
Internet protocols to use: Select "all"
Step 4 : Check if Postfix is running:
Step 5 : Test Postfix
- Install mailutils
- Visit a temporary email service like https://temp-mail.org.
- Send an email to the temporary address:
- Check if the email is received on the temporary email website.
Step 6 : Inspect logs to verify mail activity:
Congratulations! You have successfully installed and configured Postfix on Ubuntu 24.10.