Mailpit is an email testing tool for developers. It acts as an SMTP server, and provides a web interface to view all captured emails. Documentation: https://github.com/axllent/mailpit https://mailpit.axllent.org/docs/ Usage: mailpit [flags] mailpit [command] Available Commands: dump Dump all messages from a database to a directory ingest Ingest a file or folder of emails for testing readyz Run a healthcheck to test if Mailpit is running reindex Reindex the database sendmail A sendmail command replacement for Mailpit version Display the current version & update information Flags: -d, --database string Database to store persistent data --disable-wal Disable WAL for local database (allows NFS mounted DBs) --disable-version-check Disable version update checking --disable-auto-vacuum Disable auto-VACUUM for the database --compression int Compression level to store raw messages (0-3) (default 1) --label string Optional label identify this Mailpit instance --tenant-id string Database tenant ID to isolate data -m, --max int Max number of messages to store (default 500) --max-age string Max age of messages in either (h)ours or (d)ays (eg: 3d) --max-message-size int Maximum message size in MB (0 = unlimited) (default 50) --use-message-dates Use message dates as the received dates --ignore-duplicate-ids Ignore duplicate messages (by Message-ID) --log-file string Log output to file instead of stdout -q, --quiet Quiet logging (errors only) -v, --verbose Verbose logging -l, --listen string HTTP bind interface & port for UI (default "[::]:8025") --webroot string Set the webroot for web UI & API (default "/") --ui-auth-file string A password file for web UI & API authentication --ui-tls-cert string TLS certificate for web UI (HTTPS) - requires ui-tls-key --ui-tls-key string TLS key for web UI (HTTPS) - requires ui-tls-cert --api-cors string Set CORS origin(s) for the API, comma-separated (eg: example.com,foo.com) --block-remote-css-and-fonts Block access to remote CSS & fonts --allow-internal-http-requests Allow link checker, HTML checker & screenshots to access internal IP addresses --enable-spamassassin string Enable integration with SpamAssassin --allow-untrusted-tls Do not verify HTTPS certificates (link checker & screenshots) --disable-http-compression Disable HTTP compression support (web UI & API) --hide-delete-all-button Hide the "Delete all" button in the web UI --send-api-auth-file string A password file for Send API authentication --send-api-auth-accept-any Accept any username and password for the Send API endpoint, including none -s, --smtp string SMTP bind interface and port (default "[::]:1025") --smtp-auth-file string A password file for SMTP authentication --smtp-auth-accept-any Accept any SMTP username and password, including none --smtp-tls-cert string TLS certificate for SMTP (STARTTLS) - requires smtp-tls-key --smtp-tls-key string TLS key for SMTP (STARTTLS) - requires smtp-tls-cert --smtp-require-starttls Require SMTP client use STARTTLS --smtp-require-tls Require client use SSL/TLS --smtp-auth-allow-insecure Allow insecure PLAIN & LOGIN SMTP authentication --smtp-strict-rfc-headers Return SMTP error if message headers contain --smtp-max-recipients int Maximum SMTP recipients allowed (default 100) --smtp-allowed-recipients string Only allow SMTP recipients matching a regular expression (default allow all) --smtp-ignore-rejected-recipients Ignore rejected SMTP recipients with 2xx response --smtp-disable-rdns Disable SMTP reverse DNS lookups --smtp-relay-config string SMTP relay configuration file to allow releasing messages --smtp-relay-all Auto-relay all new messages via external SMTP server (caution!) --smtp-relay-matching string Auto-relay new messages to only matching recipients (regular expression) --smtp-forward-config string SMTP forwarding configuration file for all messages --enable-chaos Enable Chaos functionality (API / web UI) --chaos-triggers string Enable Chaos & set the triggers for SMTP server --pop3 string POP3 server bind interface and port (default "[::]:1110") --pop3-auth-file string A password file for POP3 server authentication (enables POP3 server) --pop3-tls-cert string Optional TLS certificate for POP3 server - requires pop3-tls-key --pop3-tls-key string Optional TLS key for POP3 server - requires pop3-tls-cert -t, --tag string Tag new messages matching filters --tags-config string Load tags filters from yaml configuration file --tags-title-case TitleCase new tags generated from plus-addresses and X-Tags --tags-disable string Disable auto-tagging, comma separated (eg: plus-addresses,x-tags) --tags-username Auto-tag messages with the authenticated username --enable-prometheus string Enable Prometheus metrics: true|false| (eg:'0.0.0.0:9090') --webhook-url string Send a webhook request for new messages --webhook-limit int Limit webhook requests per second (default 1) --webhook-delay int Delay in seconds before sending webhook requests (default 0) Use "mailpit [command] --help" for more information about a command.