Install and configure Postfix (using Gmail as SMTP relay)
Install packages apt update apt install -y postfix libsasl2-modules mailutils (Installs Postfix, the SASL modules required for authentication, and mailutils so you can send a messages from the command line.) During installation a dialogue will appear — select Internet Site . (This configures Postfix for sending/receiving mail from the server; we will use a relayhost so outgoing mail is forwarded via Gmail.) Edit Postfix configuration nano /etc/postfix/main.cf Add or update these lines: relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable =yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_security_level = encrypt smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt (These settings tell Postfix to relay via Gmail on port 587, enable SASL authentication using the /etc/postfix/sasl_passwd map, require TLS and use the system CA bundle.) Create an app password on Google Go to your Google Account (https://account...