Setup Postfix on Ubuntu 20.04 Localhost and Use Sendinblue/Brevo SMTP

Ref: https://www.linuxbabe.com/mail-server/postfix-smtp-relay-ubuntu-sendinblue
https://oastic.com/posts/configure-postfix-to-send-email-using-sendinblue-as-smtp-server/

Setup Postfix on Ubuntu 16.04 Localhost and Use Gmail SMTP

Create the Brevo account (https://www.sendinblue.com/)
choose the free plan

FOLLOW THE SETUP IN THE ABOVE REFS
ONLY THE WORKING SETTING FOR ME (localhost) IN /etc/postfix/main.cf

AND THE SETTING SMTP FOR /etc/postfix/sasl_passwd you can find IN https://app.brevo.com/settings/keys/smtp LIKE

NOW:
[smtp-relay.brevo.com]:587 smtp_username:smtp_password

SORRY, ONLY ADMIN CAN SHOW THIS!

NOW:

SORRY, ONLY ADMIN CAN SHOW THIS!

TLS = Port 587

THEN TEST

CHECK IN sudo tail /var/log/mail.log
THE WORKING SMTP WOULD BE LIKE THIS

 

Setup Sendmail on Ubuntu 20.04 Localhost and Use Gmail SMTP

READ: https://linuxconfig.org/configuring-gmail-as-sendmail-email-relay

SET APP PASSWORD ON GMAIL:
https://wpmailsmtp.com/gmail-less-secure-apps/#:~:text=What%20Is%20Less%20Secure%20Apps,with%20this%20setting%20turned%20on.

SORRY, ONLY ADMIN CAN SHOW THIS!
Modified php.ini in /etc/php/7.4/apache2

RESTART APACHE2

THE SEND EMAIL TOOK A LONG TIME ON LOCAL.
STOP SENDMAIL SERVICE IF NEEDED

Mate Ubuntu Tips and Tricks

1. The mate menu is freeze on the toolbar bottom. Can’t click the menu
Solution:
Read: https://www.addictivetips.com/ubuntu-linux-tips/fix-a-frozen-mate-linux-desktop/
RUN TERMINAL THEN

it’d SHOW THE PID. FOR EXAMPLE 3004

THEN KILL THE PROCESS LIKE THIS

THEN THE MENU WOULD BE CLICKABLE AGAIN