Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A simple local SMTP server [closed]

I want to test a Java code for sending email. I don't want to use any commercial mail client or connect to any external mail providers (like Gmail or Yahoo). I would like to know if there is any software which allows a user to configure dummy email addresses and server (locally) which can be used in my software to send and receive mails. I just want to test the functionality of the Java code.

like image 521
sathish kumar Avatar asked Dec 22 '11 05:12

sathish kumar


People also ask

Why is my SMTP server not working?

Check whether there is network access from CSO to the SMTP server. Check whether the firewall is blocking SMTP traffic to SMTP server or whether the ports are blocked. If the server settings and authentication settings are correct, check whether the firewall is blocking port 587 and 465 and SMTP traffic.

What is a local SMTP server?

SMTP stands for Simple Mail Transfer Protocol, and it's an application used by mail servers to send, receive, and/or relay outgoing mail between email senders and receivers.

How do I recover my SMTP server?

In Outlook, click File. Then navigate to Account Settings > Account Settings. On the Email tab, double-click on the account you want to connect to HubSpot. Below Server Information, you can find your incoming mail server (IMAP) and outgoing mail server (SMTP) names.


2 Answers

For email testing, try Dumbster. From their page:

The Dumbster is a very simple fake SMTP server designed for unit and system testing applications that send email messages. It responds to all standard SMTP commands but does not deliver messages to the user. The messages are stored within the Dumbster for later extraction and verification.

The Dumbster slots itself very easily into your testing strategy. As long as your application talks to an email server using SMTP then the Dumbster can be used to test the application with no code changes.

Various forks exist since the original page is no longer available:

  • https://github.com/kirviq/dumbster
  • https://github.com/rjo1970/dumbster

More can be found using a Github Search

like image 120
Matthew Farwell Avatar answered Oct 02 '22 13:10

Matthew Farwell


I prefer Fake SMTP for this. It's a desktop app (packed into jar file). Since it is written in Java, you can run it both from Linux/Mac/Windows

like image 41
Anton Shchastnyi Avatar answered Oct 02 '22 14:10

Anton Shchastnyi