*
* @param logger Used to log error messages.
*/
public void start(final Logger logger) {
logInfo(logger, "com.btmatthews.maven.plugin.emailserver.subethasmtp.starting");
final MessageHandlerFactory messageHandlerFactory = new SimpleMessageHandlerFactory();
server = new SMTPServer(messageHandlerFactory);
if (isUseSSL()) {
server.setPort(DEFAULT_SMTPS_PORT + getPortOffset());
server.setEnableTLS(true);
server.setRequireTLS(true);