To provision and benchmark an IMAP server backed by PostgreSQL, please have a look at following steps:
Build and extract the Postgres app docker image.
mvn clean install -DskipTests -Dmaven.skip.doc=truedocker load -i ./target/jib-image.tarRun the Postgres app: docker compose up
Provision users and IMAP mailboxes + messages: ./provision.sh
Performance test IMAP server using james-gatling
Sample IMAP simulation: gatling:testOnly org.apache.james.gatling.simulation.imap.PlatformValidationSimulation.