(01)Install Postfix
Linux
1sudo apt-get install -y postfix2# Select 'Internet Site' during installMail transfer agent (MTA) for sending email
What is this?
Postfix receives and sends email for your domain — the engine behind most Linux mail servers.
Where to create or edit the main configuration — paths below match the setup steps.
/etc/postfix/main.cfLocation: Postfix server
Hostname, relay, and mailbox settings
Step 01
1sudo apt-get install -y postfix2# Select 'Internet Site' during installStep 02
1sudo nano /etc/postfix/main.cf2sudo systemctl restart postfix3echo test | mail -s 'Test' you@example.comStep 03
1sudo systemctl status postfix2mailq