StackStorm / StackStorm/st2

Use ssmtp instead of sendmail for st2actionrunner

Open
#6,002 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

breaking change feature proposal wontfix
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Please consider using ssmtp for email sending from core.sendmail:

https://manpages.ubuntu.com/manpages/focal/en/man8/ssmtp.8.html

Recent versions of sendmail don't work well without configuration, which is difficult within a Docker container.

Ubuntu provides a package for ssmtp, which provides an alternative sendmail executable, suitable for typical smarthost setups. It can be configured easily via two small text files, which can be mounted as volumes.

Locally tested and works well.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the core.sendmail entry point used by st2actionrunner and inspect how email sending is packaged and configured in its Docker container. Check the Ubuntu ssmtp package and its two mounted configuration files, then verify that typical smarthost email sending works without relying on sendmail configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
backend, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.