This is a repository for Mailtutan, a SMTP server built in Rust. The server allows you to simulate an SMTP (Simple Mail Transfer Protocol) server for testing and development purposes without actually sending emails to real addresses.
cargo install mailtutan
docker run -p 1080:1080 -p 1025:1025 -d mailtutan/mailtutan:latest
By default, Mailtutan listens on port 1025 for SMTP and logs incoming emails to memory. The web interface is available on port 1080. However, you can customize the server configuration by supported parameters and environment variables
To send emails to Mailtutan, configure your email client or application to use the server's IP address or hostname and the configured port number. Any emails sent to this server will be captured and logged.
You can access the web interface to view the list of logged emails by navigating to http://localhost:1080
in your web browser. Additionally, a REST API is available at http://localhost:1080/api/messages
to programmatically access the email data.
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository. Make sure to follow the existing coding style and guidelines.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license.
If you have any questions or need further assistance, feel free to contact the project maintainer at mohsen@alizadeh.us.