#4384 closed enhancement (fixed)

Add SMTP login to rtems-tools mailer

Reported by: Alex White Owned by: Alex White
Priority: normal Milestone: 6.1
Component: tool Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

The ability to provide a username and password to perform an SMTP login should be added so that rtems-test results can be mailed via an external SMTP server that requires authentication.

The following additional command line options should be enough to make it work:
--smtp-port
--smtp-user
--smtp-password

The mail-related command line options should be filtered from the mailed logs so that credentials do not get leaked.

Change History (6)

comment:1 Changed on 04/12/21 at 18:34:20 by Alex White

Owner: set to Alex White
Status: newaccepted

comment:2 in reply to:  description Changed on 04/12/21 at 18:36:29 by Alex White

Replying to Alex White:

The following additional command line options should be enough to make it work:
--smtp-port
--smtp-user
--smtp-password

Additionally, a --smtp-use-gitconfig option to use the information found in ~/.gitconfig would be nice.

comment:3 Changed on 04/13/21 at 21:45:02 by Alex White <alex.white@…>

In 1a575af/rtems-tools:

rtemstoolkit/mailer.py: Return full smtp-host arg value

This fixes mail.smtp_host() so that it returns the full argument value
rather than just the second character.

Updates #4384

comment:4 Changed on 04/13/21 at 21:45:04 by Alex White <alex.white@…>

In 92f7f67/rtems-tools:

rtemstoolkit: Filter mail options from log output

This filters mail-related options out before logging the command line
options. This is needed to prevent leaking potentially sensitive
information via logs and emails.

Updates #4384

comment:5 Changed on 04/13/21 at 21:45:06 by Alex White <alex.white@…>

In 3b1407f/rtems-tools:

rtemstoolkit/mailer.py: Add SMTP login options

This adds more options so that the user can authenticate with the SMTP
server.

Updates #4384

comment:6 Changed on 04/14/21 at 14:32:23 by Alex White <alex.white@…>

Resolution: fixed
Status: acceptedclosed

In 82b752a/rtems-tools:

rtemstoolkit/mailer.py: Add --use-gitconfig option

This adds the option to pull mail-related configuration values from the
user's git configuration.

Closes #4384

Note: See TracTickets for help on using tickets.