voodoodyne / subethasmtp

SubEtha SMTP is a Java library for receiving SMTP mail
Other
343 stars 138 forks source link

Feature Request: Enhance Wiser to be able to handle authentication + SSL #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Right now you can only have a Non-SSL non-authenticated SMTP dummy server, but 
sometimes it would be nice to be able to test that SSL support+authentication 
is working as well in a client code.
Personally I was thinking of a new AuthenticationHandler+NOOPMessageHandler 
instead of the Wiser solution, would that be feasible?

Original issue reported on code.google.com by majorpe...@gmail.com on 8 Oct 2012 at 12:21

GoogleCodeExporter commented 9 years ago
You can still use Wiser for TLS. At least if you want to use the TLS default 
configuration facility of the JRE. You only have to call 
Wiser.getServer().setEnableTLS. But you have to configure the JRE using system 
properties, the minimum is that you have to provide a keystore file with your 
server certificate.
Regarding authentication, maybe Wiser should be extended to accept and require 
a specific user-password combination. Assuming that you want simple password 
authentication, and not client certificate authentication. I never tried the 
latter.

Original comment by hontvari@flyordie.com on 28 Nov 2012 at 6:26

GoogleCodeExporter commented 9 years ago

Original comment by hontvari@flyordie.com on 12 May 2013 at 12:53