* @return An array of {@link ServerSetup} used to configure the embedded Greenmail server.
*/
private ServerSetup[] getServerSetups() {
if (isUseSSL()) {
return new ServerSetup[]{
new ServerSetup(465 + getPortOffset(), null, ServerSetup.PROTOCOL_SMTPS),
new ServerSetup(995 + getPortOffset(), null, ServerSetup.PROTOCOL_POP3S),
new ServerSetup(993 + getPortOffset(), null, ServerSetup.PROTOCOL_IMAPS)
};
} else {
return new ServerSetup[]{
new ServerSetup(25 + getPortOffset(), null, ServerSetup.PROTOCOL_SMTP),
new ServerSetup(110 + getPortOffset(), null, ServerSetup.PROTOCOL_POP3),
new ServerSetup(143 + getPortOffset(), null, ServerSetup.PROTOCOL_IMAP)
};
}
}