The following subsections cover the different tests available on Stalwart SMTP. Before running these tests, make sure you have Rust installed by following the instructions in the compile section.


The base tests perform protocol compliance tests as well as basic functionality testing on different functions across the Stalwart SMTP code base. To run the base test suite execute:

cargo test


To run the fuzz tests please refer to the Stalwart libraries that handle parsing for the SMTP server: smtp-proto, mail-parser, mail-auth and sieve-rs.