To generate the new password follow these steps:
1. Connect to your Google account. Click on the top right corner and click "My account".
2. Click "Sign-in & security
3. Click app passwords
4. Enter the password of your Gmail account > continue.
5. Click Select app > select "Other (Custom name) > enter Teamgate and click > GENERATE
6. Copy your app password for your device (from yellow field)
7. Enter the password into SMTP password field.