Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Add ssmtp for sendmail email #38

Closed
wants to merge 1 commit into from
Closed

Add ssmtp for sendmail email #38

wants to merge 1 commit into from

Conversation

jrmoserbaltimore
Copy link

There is no sendmail installed. This change adds ssmtp, a small, stand-alone sendmail.

By running the container with /etc/ssmtp/ssmtp.conf as a volume, the administrator can use a centralized configuration: if the administrator's default mail gateway changes, he can update the host ssmtp.conf to reflect the change to all Docker containers using ssmtp.

ssmtp configuration file would look as below:

# SSMTP configuration so sendmail works
# relays to our internal server
root=postmaster
Mailhub=smtp.example.com
hostname=docker-01.example.com
FromLineOverride=YES

@pierreozoux
Copy link
Contributor

Already tried :)

Not gonna happen apparently, but nice to see one more voice on this issue ;)

docker-library/official-images#1203
docker-library/wordpress#30

@tianon
Copy link
Member

tianon commented Dec 16, 2015

Installing SSMTP seems like an OK compromise -- my problem in docker-library/official-images#1203 is that some default hard-coded configuration was applied with no way to override it. Just installing the package is IMO a good middle ground so that users can provide their own configuration themselves.

It looks like the whitespace here is a little off -- would you mind updating to tabs?

@pierreozoux
Copy link
Contributor

Ok, I actually just remembered, ownCloud is one of the few good student out there.
You can configure mail though web interface or config file.

Here is what I use:

 'mail_domain' => 'indie.host',
'mail_from_address' => 'cloud',
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'mail.indie.host',
'mail_smtpport' => '587',
'mail_smtpauth' => 1,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpname' => '[email protected]',
'mail_smtppassword' => 'xxx',

no need for any ssmtp or whatsover. Isn't it a good news? :)

@tianon
Copy link
Member

tianon commented Dec 16, 2015 via email

@md5
Copy link

md5 commented Dec 17, 2015

Ok, I actually just remembered, ownCloud is one of the few good student out there.

What drives me crazy about this whole thing is that PHP supports SMTP for mail on Windows but not on any other platform. I see that as the root cause of (most) PHP applications not supporting direct SMTP connections out of the box.

@tianon tianon closed this Jun 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants