Skip to content

Commit

Permalink
Replace MailHog with MailPit skilld-labs#449
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey-Orlov committed Dec 15, 2023
1 parent ac0da42 commit 05341a2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docker/90-mail.ini
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sendmail_path = /usr/sbin/sendmail -t -i -S mailhog:1025
sendmail_path = /usr/sbin/sendmail -t -i -S mailpit:1025
18 changes: 9 additions & 9 deletions docker/docker-compose.override.yml.default
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,21 @@ services:
# POSTGRES_PASSWORD: dbroot
# PGDATA: /var/lib/postgresql/data

mailhog:
mailpit:
<<: *service-defaults
image: skilldlabs/mailhog
image: axllent/mailpit
container_name: "${COMPOSE_PROJECT_NAME}_mail"
labels:
- 'sdc.port=8025'
- 'traefik.enable=true'
# Treafik 2.x
- 'traefik.http.routers.mailhog-${COMPOSE_PROJECT_NAME}.rule=Host(`mail-${MAIN_DOMAIN_NAME}`)'
- 'traefik.http.routers.mailhog-${COMPOSE_PROJECT_NAME}.tls.certresolver=dns'
- 'traefik.http.routers.mailhog-${COMPOSE_PROJECT_NAME}.tls=true'
- 'traefik.http.routers.mailhog-${COMPOSE_PROJECT_NAME}.middlewares=mailhog-${COMPOSE_PROJECT_NAME}@docker'
- 'traefik.http.services.mailhog-${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=8025'
- 'traefik.http.middlewares.mailhog-${COMPOSE_PROJECT_NAME}.basicauth.users=${RA_BASIC_AUTH}'
- 'traefik.http.middlewares.mailhog-${COMPOSE_PROJECT_NAME}.basicauth.removeheader=true'
- 'traefik.http.routers.mailpit-${COMPOSE_PROJECT_NAME}.rule=Host(`mail-${MAIN_DOMAIN_NAME}`)'
- 'traefik.http.routers.mailpit-${COMPOSE_PROJECT_NAME}.tls.certresolver=dns'
- 'traefik.http.routers.mailpit-${COMPOSE_PROJECT_NAME}.tls=true'
- 'traefik.http.routers.mailpit-${COMPOSE_PROJECT_NAME}.middlewares=mailpit-${COMPOSE_PROJECT_NAME}@docker'
- 'traefik.http.services.mailpit-${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=8025'
- 'traefik.http.middlewares.mailpit-${COMPOSE_PROJECT_NAME}.basicauth.users=${RA_BASIC_AUTH}'
- 'traefik.http.middlewares.mailpit-${COMPOSE_PROJECT_NAME}.basicauth.removeheader=true'

# nginx:
## Uncomment for MacOS.
Expand Down
3 changes: 3 additions & 0 deletions settings/settings.local.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
// Global
$settings['file_private_path'] = '../private-files';

// Sendmail command for symfony_mailer.
$settings['mailer_sendmail_commands'][] = ini_get('sendmail_path');
$config['symfony_mailer.mailer_transport.sendmail']['configuration']['query']['command'] = ini_get('sendmail_path') ;

0 comments on commit 05341a2

Please sign in to comment.