Skip to main content

Mailpit email

Mailpit is a test SMTP server that catches outgoing mail. By default it listens on 127.0.0.1:1025 with no TLS or auth.

1. Run Mailpit

Start the Mailpit service so the SMTP server is available at 127.0.0.1:1025 (or your configured host/port).

Mailpit configuration

2. Create the email provider in Casdoor

ProvidersAdd. Set Category to Email, Type to the appropriate SMTP option. Set Host and Port to match Mailpit (e.g. 127.0.0.1, 1025). Leave Username and Password empty if Mailpit has no auth. Save.

Mailpit email provider

3. Test

Use Test SMTP Connection; you should see “SMTP connected successfully”. Use Send Testing Email; you should see “Email sent successfully” and the message in Mailpit’s UI.

Sending a test email using Mailpit Receiving a test email using Mailpit