Code Monkey home page Code Monkey logo

Comments (6)

guzzijones avatar guzzijones commented on July 3, 2024

I actually managed to get my own container build to work by changing sendmail.mc config with:

define(`SMART_HOST', `hostname_not_mx.tld')dnl
define(`nullclient', `hostname_not_mx.tld')dnl
dnl # LOCAL_DOMAIN(`localhost.localdomain')dnl

then running

buildah copy "$container" sendmail.mc /etc/mail/sendmail.mc
buildah run "$container" bash -c "bash /etc/mail/make"
buildah run "$container" bash -c "sendmail -bd"

but this isn't possible with the st2 container since the sendmail.mc config file needs to be changed and rebuilt

the most important setting was manually fixing /etc/hosts with xxx is the ip address below

xxx.xx.xx.xx    stackstorm-ha-st2actionrunner-7f4d87fdd-z6x5x.localhost stackstorm-ha-st2actionrunner-7f4d87fdd-z6x5x

of course manually editing this line is not a solution

from stackstorm-k8s.

guzzijones avatar guzzijones commented on July 3, 2024

In the end ssmtp is infinitly easier to setup with a config file

from stackstorm-k8s.

sburlappp avatar sburlappp commented on July 3, 2024

I agree, I made the same recommendation elsewhere, and it works well for me:

StackStorm/st2#6002

from stackstorm-k8s.

guzzijones avatar guzzijones commented on July 3, 2024

it turns out ssmtp does NOT work with piped input with To: in the input file. ssmtp requires a to address via command line

bash-4.4# cat mail | ssmtp
sendmail: No recipients supplied - mail will not be sent

so i ended up writing a new action instead of using sendmail and overriding the binary.

from stackstorm-k8s.

guzzijones avatar guzzijones commented on July 3, 2024
/usr/sbin/sendmail -t 

should work with the send_mail action
-t tells it to use the TO from the input file. Why they did that I have no idea. Probably some old rfc specification.

from stackstorm-k8s.

guzzijones avatar guzzijones commented on July 3, 2024

the stackstorm-email pack has a full python client that can be used in place of sendmail. # wont fix

from stackstorm-k8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.