Sign inSign up

erdalmutlu/php-fpm-ssmtp

By erdalmutlu

Updated over 7 years ago

php-fpm with ssmtp

Image
0

280

erdalmutlu/php-fpm-ssmtp repository overview

docker-php-fpm-ssmtp

php-fpm with ssmtp mail support

Configure sSMTP

Change the following according to your needs:

FromLineOverride=YES
mailhub=mail.example.org
hostname=server1.example.org
UseTLS=NO
UseSTARTTLS=NO

And save the file as ssmtp.conf

Configure mail for php:fpm

We need to set the sendmail_path to use the sSMTP

[mail function]
sendmail_path = "/usr/sbin/ssmtp -t"

And save the file as mail.ini

Putting it all together

To run the following needs to be mounted:

  • /path/to/ssmtp.conf:/etc/ssmtp/ssmtp.conf:ro
  • /path/to/mail.ini:/usr/local/etc/php/conf.d/mail.ini:ro
  • /path/to/html_scripts:/usr/share/nginx/html:ro

Clone the repo or copy and the docker-compose.yml and run

docker-compose up -d

Tag summary

Content type

Image

Digest

Size

125.5 MB

Last updated

over 7 years ago

docker pull erdalmutlu/php-fpm-ssmtp