Skip to content

minidocks/mailhog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mailhog docker image (minidocks/mailhog)

MailHog is an email testing tool for developers.

Usage

docker run --rm -it -p 25:25 -p 80:80 minidocks/mailhog

Configuration

You can configure MailHog using command line options or environment variables:

Environment Command line Default Description
MH_CORS_ORIGIN -cors-origin If set, a Access-Control-Allow-Origin header is returned for API endpoints
MH_HOSTNAME -hostname mailhog.example Hostname to use for EHLO/HELO and message IDs
MH_API_BIND_ADDR -api-bind-addr 0.0.0.0:80 Interface and port for HTTP API server to bind to
MH_UI_BIND_ADDR -ui-bind-addr 0.0.0.0:80 Interface and port for HTTP UI server to bind to
MH_MAILDIR_PATH -maildir-path Maildir path (for maildir storage backend)
MH_MONGO_COLLECTION -mongo-coll messages MongoDB collection name for message storage
MH_MONGO_DB -mongo-db mailhog MongoDB database name for message storage
MH_MONGO_URI -mongo-uri 127.0.0.1:27017 MongoDB host and port
MH_SMTP_BIND_ADDR -smtp-bind-addr 0.0.0.0:25 Interface and port for SMTP server to bind to
MH_STORAGE -storage memory Set message storage: memory / mongodb / maildir
MH_OUTGOING_SMTP -outgoing-smtp JSON file defining outgoing SMTP servers
MH_UI_WEB_PATH -ui-web-path WebPath under which the ui is served (without leading or trailing slahes), e.g. ‘mailhog’

Tags

Tag Size
latest

Related images

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published