- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2017 10:59 AM
Hi,
I would like to setup a local SMTP server to test if the notifications work correcly on my instance. How can I do that?
Thanks,
Manon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2017 11:04 AM
Hi Manon!
There is an easy way to setup a local smtp server by using this project: http://nilhcem.github.io/FakeSMTP/. It binds a dummy SMTP server that listens on whichever port you want (it means 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.
...
# Mail settings (for notifications)
#nuxeo.notification.eMailSubjectPrefix="[Nuxeo]"
mail.transport.host=localhost
mail.transport.port=25000 # Adjust with FakeSMTP configuration. Avoid port 25 that is generally used by other applications.
#mail.transport.auth=
#mail.transport.user=
#mail.transport.password=
#mail.from=
...
To start the software, just launch the command:
java -jar fakeSMTP.jar
If you are on Windows, you can check this software that seems to do the same job: http://smtp4dev.codeplex.com/.
Regards,
Manon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2017 11:04 AM
Hi Manon!
There is an easy way to setup a local smtp server by using this project: http://nilhcem.github.io/FakeSMTP/. It binds a dummy SMTP server that listens on whichever port you want (it means 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.
...
# Mail settings (for notifications)
#nuxeo.notification.eMailSubjectPrefix="[Nuxeo]"
mail.transport.host=localhost
mail.transport.port=25000 # Adjust with FakeSMTP configuration. Avoid port 25 that is generally used by other applications.
#mail.transport.auth=
#mail.transport.user=
#mail.transport.password=
#mail.from=
...
To start the software, just launch the command:
java -jar fakeSMTP.jar
If you are on Windows, you can check this software that seems to do the same job: http://smtp4dev.codeplex.com/.
Regards,
Manon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2017 02:37 AM
Hi Manon,
we are using https://github.com/mailhog/MailHog It's an easy to use mailserver with a docker container. It has a nice API which allows us to run integration tests.
cheers
