1. General Approach

ANS can deliver alarm events generated within EOS SCADA by email via SMTP to designated recipients. Gmail is one of the SMTP services that can be used for this purpose.

Basic flow of ANS integration with Gmail:

GMAIL ACCOUNT  →  2-STEP VERIFICATION  →  APP PASSWORD  →  ANS SMTP  →  SCADA ALARMI  →  EMAIL

The main purpose here is to allow ANS to authenticate to Gmail via SMTP using an application-specific password generated by Gmail, without requiring ANS to know the normal Gmail account password. Google defines an App Password as a 16-character access code that can be used on accounts with 2-Step Verification enabled.

2. Prerequisites

Before sending email with ANS through Gmail, the following conditions must be met:

  • An active Gmail account must be available.
  • The Google account must have 2 Adımlı Doğrulama enabled.
  • An App Password must be created.
  • The computer running ANS must be able to access the Gmail SMTP server.
  • Windows Firewall or corporate network security policies must not block the SMTP connection.

Corporate account note: Google Workspace or kurum tarafından yönetilen hesaplarda App Password seçeneği kuruluş politikaları nedeniyle In such cases, the Google Workspace administrator should review the relevant security and SMTP policies.

3. Enabling 2-Step Verification

To create an App Password, 2 Adımlı Doğrulama must be enabled on the Google account. According to Google's official help page, an App Password can only be created on accounts where 2-Step Verification is enabled.

  1. Google Account Security page.
  2. 2 Adımlı Doğrulama section.
  3. Follow Google's instructions to enable 2-Step Verification.

2-Step Verification increases account security; an App Password is a separate access method that may be required for applications that do not support Google sign-in.

4. Creating a Gmail App Password

If ANS connects to Gmail via SMTP using password-based SMTP authentication, the normal Gmail account password should be replaced with an App Password App Password.

  1. Google App Passwords page and sign in to your account.
  2. Choose a meaningful name for the application. For example: EOS ANS SMTP.
  3. Follow Google's instructions to create the application password.
  4. Store the generated 16 haneli App Password değerini güvenli şekilde saklayın.
  5. Use this value in the ANS Password field.

Example:

abcd efgh ijkl mnop

This is only a format example. A real account password or real App Password must not be shared in documentation.

According to Google, an App Password is a 16-character code and cannot be viewed again after it is created. If it is lost, a new App Password can be created. If the normal Google account password is changed, existing App Passwords may be revoked for security reasons, requiring a new App Password for ANS.

5. ANS SMTP Settings

The following values can be used for Gmail integration in ANS. 587 + TLS/STARTTLS or 465 + SSL Gmail's are supported secure SMTP connection options. ANS'deki SSL Kullan field behavior depends on the SMTP library in use; therefore, it should be verified that the application field supports STARTTLS with port 587.

Parameter Value Description
SMTP Server smtp.gmail.com Gmail SMTP server.
SMTP Port 587 SMTP port used for STARTTLS/TLS connections.
Use SSL / TLS Selected The connection must be encrypted. When using 587, the application's STARTTLS/TLS behavior should be verified.
Username Gmail address Full Gmail address used for SMTP authentication.
Password App Password The generated application password instead of the normal Gmail account password.
Timeout 20 Recommended initial timeout value for the ANS SMTP connection.

Alternative secure connection: If the ANS SMTP configuration treats SSL/TLS as a direct SSL connection, smtp.gmail.com : 465 + SSL combination can be used. Google's official help documentation specifies port 587 for TLS/STARTTLS and 465 for SSL connections.

6. Testing ANS Email Delivery

After completing the SMTP settings, create a test alarm through ANS to verify the Gmail connection and notification mechanism.

  1. Verify that the SMTP server is smtp.gmail.com .
  2. Verify that the selected port and TLS/SSL settings match the connection method.
  3. Enter the full Gmail address as the username.
  4. In the Password field, use an App Password instead of the normal Gmail password.
  5. Create a test alarm and verify that the email reaches the recipient.
  6. If delivery fails, check the Google account, App Password, network connection, and SMTP/TLS settings.

7. Common Problems

Symptom What to Check
App Password option is not visible Check 2-Step Verification, the account type, and organization/Google Workspace policies. The option may be unavailable in some cases, such as Advanced Protection.
Authentication failed Check the Gmail address and App Password; do not use the normal account password.
ANS does not work after a password change App Passwords may be revoked when the Google account password is changed; create a new App Password.
Cannot connect to the SMTP server Check internet access, the firewall, SMTP port, and TLS/SSL settings.
Too many alarm emails are being generated Review ANS alarm selection, notification groups, and sending frequency.

8. Security and Operational Notes

  • Do not use the normal Gmail account password in ANS.
  • For password-based SMTP connections, use only the relevant App Password instead of the normal Gmail password.
  • Protect the App Password against unauthorized access.
  • If passwords are stored in configuration files, use encryption or secure secret management where possible.
  • Google hesabının normal parolası değiştirildiğinde ANS'nin kullandığı App Password'ü yeniden oluşturmanız gerekebileceğini unutmayın.
  • Configure ANS alarm notification policies carefully to prevent excessive alarm emails.

Important: An alarm notification system is not limited to the SMTP connection. Which alarms are sent to which users or groups, the notification frequency, and the priority of critical alarms must also be determined according to operational requirements.

9. Configuration Summary

GMAIL ACCOUNT

2-STEP VERIFICATION

APP PASSWORD

smtp.gmail.com : 587 + STARTTLS/TLS

GMAIL ADDRESS + APP PASSWORD

ANS SMTP SETTINGS

SCADA ALARM → EMAIL NOTIFICATION

With this configuration, EOS SCADA ANS can use Gmail as an SMTP-based email notification channel. Under Gmail's current security approach, the old password-based "less secure apps" methods are replaced by a preference for OAuth 2.0; for an SMTP client such as ANS that does not support OAuth/Google sign-in, a App Password can be used provided that 2-Step Verification is enabled on the Google account.

← Back to Previous Content