Guides and Tutorials

How to setup a test SMTP server

Updated: September 28, 2017 Page Information Edit on GitHub

For testing purpose, for instance with notifications, you often need to setup an SMTP server. There is an easy way to setup a local smtp server by using this project : http://nilhcem.github.com/FakeSMTP/. It binds a dummy SMTP server that listens on whichever port you want (that also mean that those mails won't be really sent) and on which you can setup Nuxeo to send outgoing mails : when the server sends a mail, it shows up into the list of received EMails.

To get this up and running, you only need to adjust your $NUXEO_HOME/bin/nuxeo.conf file to reflect this setup.

$NUXEO_HOME/bin/nuxeo.conf

...

# Mail settings (for notifications)
#nuxeo.notification.eMailSubjectPrefix="[Nuxeo]"
mail.transport.host=localhost
mail.transport.port=25000   # Adjust with FakeSMTP configuration
#mail.transport.auth=
#mail.transport.user=
#mail.transport.password=
#mail.from=

...

 

You can download a precompile version of FakeSMTP here :  . To launch the software, just launch the command :

java -jar fakeSMTP.jar

For Windows users, you can check this software that seems to do the same job : http://smtp4dev.codeplex.com/

 

2 months ago Manon Lumeau Update installation steps on mac os
2 years ago Vladimir Pasquier 5
3 years ago Manon Lumeau 4 | typo
3 years ago Manon Lumeau 3
3 years ago Manon Lumeau 2
5 years ago Damien Metzler 1
History: Created by Damien Metzler