This release brings significant database performance improvements by using SQLite's WAL (Write-Ahead-Log) feature, resulting in far less disk I/O while writing to & deleting from the database. Previously, any changes made to the database were immediately written back to the database file (eg: mailpit.db
), however now an temporary mailpit.db-wal
& mailpit.db-shm
file will exist alongside while Mailpit is running, which are then merged into the original mailpit.db
when the program exists or during automatic pruning.
There is also a new feature (--smtp-allowed-recipients
) which allows you to define (using regex) allowed recipients. All other SMTP connections will receive a 550 5.1.0 Requested action not taken: mailbox unavailable
error response. This means you can run Mailpit as an open SMTP server allowing only recipients you have defined (ie: like a regular mail server). Please refer to #219 for more information.
Lastly there are a few minor big fixes to the runtime statistics visible when clicking on the "About" in the web UI.
Chore
- Significantly increase database performance using WAL (Write-Ahead-Log)
- Standardize error logging & formatting
Feature
- Add option to only allow SMTP recipients matching a regular expression (disable open-relay behaviour #219)
UI
- Automatically refresh connected browsers if Mailpit is upgraded (version change)
Fix
- Log total deleted messages when auto-pruning messages (--max)
- Prevent rare error from websocket connection (
unexpected non-whitespace character
) - Log total deleted messages when deleting all messages from search
Libs
- Update node modules
Tests
- Run tests on Linux, Windows & Mac