This articles explains how to configure the log automation using gmail account. In this scenario the 2FA is enabled on the gmail account and uses app passwords to setup log automation.
Resolution
To Configure the log automation navigate to Device | Log | Automation | Mail Server Settings.
Mail Server (name or IP address):- smtp.gmail.com
From Email address:- Mention the gmail Ex:- test@gmail.com
Click on Advanced
SMTP Port= 25.
Connection Security Method= STARTLS.
Enable SMTP Authentication.
To setup username and password, login to gmail account.