[WIP] Utilise mailcatcher pour l'envois de mail
This commit is contained in:
21
config/ssmtpd.conf
Normal file
21
config/ssmtpd.conf
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# Config file for sSMTP sendmail
|
||||||
|
#
|
||||||
|
# The person who gets all mail for userids < 1000
|
||||||
|
# Make this empty to disable rewriting.
|
||||||
|
root=postmaster
|
||||||
|
|
||||||
|
# The place where the mail goes. The actual machine name is required no
|
||||||
|
# MX records are consulted. Commonly mailhosts are named mail.domain.com
|
||||||
|
mailhub=mailcatcher
|
||||||
|
|
||||||
|
# Where will the mail seem to come from?
|
||||||
|
#rewriteDomain=
|
||||||
|
|
||||||
|
# The full hostname
|
||||||
|
hostname=devphp
|
||||||
|
|
||||||
|
# Are users allowed to set their own From: address?
|
||||||
|
# YES - Allow the user to specify their own From: address
|
||||||
|
# NO - Use the system generated From: address
|
||||||
|
FromLineOverride=YES
|
@@ -21,6 +21,7 @@ php:
|
|||||||
- ./config/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
- ./config/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
||||||
links:
|
links:
|
||||||
- mariadb
|
- mariadb
|
||||||
|
- mailcatcher
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
@@ -36,12 +37,12 @@ nginx:
|
|||||||
links:
|
links:
|
||||||
- php
|
- php
|
||||||
|
|
||||||
|
mailcatcher:
|
||||||
|
build: ./mailcatcher
|
||||||
# smtp:
|
volumes:
|
||||||
# build: ./smtp
|
- ./config/smtpd.conf:/etc/smtpd.conf
|
||||||
# volumes:
|
- ./config/mailname:/etc/mailname
|
||||||
# - ./config/smtpd.conf:/etc/smtpd.conf
|
expose:
|
||||||
# - ./config/mailname:/etc/mailname
|
- 25
|
||||||
# expose:
|
ports:
|
||||||
# - 25
|
- 1080:1080
|
||||||
|
5
mailcatcher/Dockerfile
Normal file
5
mailcatcher/Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
FROM ruby
|
||||||
|
|
||||||
|
RUN gem install mailcatcher
|
||||||
|
|
||||||
|
ENTRYPOINT ["mailcatcher", "-f", "--ip", "0.0.0.0", "--smtp-port", "25", "--no-quit"]
|
@@ -21,5 +21,6 @@ RUN apt-get update && apt-get install -y \
|
|||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY ../config/ssmtpd.conf /etc/ssmtp/ssmtp.conf
|
||||||
|
|
||||||
RUN docker-php-ext-install xdebug
|
RUN docker-php-ext-install xdebug
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
FROM debian:jessie
|
|
||||||
RUN echo "deb http://debian.mirrors.ovh.net/debian/ jessie-backports main" >> /etc/apt/sources.list \
|
|
||||||
&& apt-get update && apt-get install -y \
|
|
||||||
opensmtpd/jessie-backports \
|
|
||||||
&& apt-get clean \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/sbin/smtpd", "-d"]
|
|
Reference in New Issue
Block a user