Back to registry

MailHog

An email testing tool that captures SMTP traffic for development environments with a web UI for viewing messages.

emailtesting

Usage

dockup.config.ts
import { defineConfig } from 'dockup/config';
import { mailhog } from 'dockup/services';

export default defineConfig({
  services: [
    mailhog()
  ],
});

Metadata

This service automatically exposes metadata.

dockup metadata
Connection URL: smtp://localhost:1025

SMTP connection string for sending test emails

Web UI: http://localhost:8025

Web interface to view captured emails

The above are the metadata generated when using this service with the default options.

Options

PropTypeDefault
smtpPort?
number
1025
webPort?
number
8025
hostname?
string
"mailhog"
storage?
"memory" | "maildir"
"memory"
auth?
{ user: string; password: string; }
-
name?
string
-
image?
string
-
extend?
((service: ContainerService) => ContainerService)
-