Fake SMTP Server for testing

When you develop a website or an application, you may need to use a fake SMTP server for debugging. Fake SMTP servers access emails, but they won’t deliver emails to the recipient’s email address.

The simplest way to run a debugging SMTP server is using the following python code

This will start an SMTP server on port 2525. It does not support SMTP authentication.

If you want to run a Fake SMTP server with Authentication support, use

https://github.com/rnwood/smtp4dev

You can install it using docker.

First you need to install Docker. On Ubuntu, run

Run smtp4dev with the command

SMTP Server will listen on port 2525. On port 3000, you have a web interface to read the mails

Fake SMTP Server

See SMTP

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *