Skip to content

Email configuration checker only warning, not stop the skript. #199

@rdpanek

Description

@rdpanek

Listener is stopped when the client does not need to set up EMAIL_SMTP_USER and EMAIL_SMTP_PASS. In some cases, this environment variable is not necessary.

For example:

reporter:email:missing EMAIL_SMTP_USER. Stopped.
process.exit(1)

Now, the Listener only displays a warning:

reporter:email:missing EMAIL_SMTP_USER.

If EMAIL_SMTP_USER and EMAIL_SMTP_PASS are set in the environment, the following piece will be added to the nodemailer configuration:

  mailerConfig['auth'] = {
    user: emailSmtpUser,
    pass: emailSmtpPass
  }

The default nodemailer configuration without the auth property is as follows:

  const mailerConfig = {
    host: emailSmtpServer,
    port: emailSmtpPort,
    secure: true,
    tls: {
      minVersion: tlsMinVersion,
      maxVersion: tlsMaxVersion,
      rejectUnauthorized: tlsRejectUnauthorized
    }
  };

Metadata

Metadata

Assignees

Labels

🧬 listener-agentData analytics, evaluating and alerting

Type

No type

Projects

Status

📦 Released

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions