Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP mail support #1

Closed
pjeby opened this issue Dec 9, 2017 · 1 comment
Closed

Add PHP mail support #1

pjeby opened this issue Dec 9, 2017 · 1 comment

Comments

@pjeby
Copy link
Member

pjeby commented Dec 9, 2017

Basic idea: Use sSMTP as a transport, by making the ssmtp package part of the default image, and including the necessary PHP config if SSMTP_MAILHUB is set. There'd be a template in tpl/etc/ssmtp/ssmtp.conf to configure (roughly):

Mailhub={{SSMTP_MAILHUB}}
FromLineOverride={{SSMTP_FROM_LINE_OVERRIDE}}
UseTLS={{SSMTP_USE_TLS}}
UseSTARTTLS={{SSMTP_USE_STARTTLS}}
AuthUser={{SSMTP_USER}}
AuthPass={{SSMTP_PASS}}
AuthMethod={{SSMTP_AUTH_METHOD}}

There might need to be a Hostname setting, too, and defaults need to be decided on. Plus many of the above need if's to only include those lines if the variable has a value. There's also a few other options, like RewriteDomain and root. (A related issue is logging: an rsyslog install would be needed, configured to send stuff to stdout or stderr. That's a whole other feature by itself.)

@pjeby
Copy link
Member Author

pjeby commented Sep 22, 2018

Closing as virtually everything I work with these days has its own way of configuring mail/SMTP, independent of PHP, and there's too many variables in ssmtp config to make this worth doing.

@pjeby pjeby closed this as completed Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant