config.getSmtpConfiguration().setPassword(password);
// global proxy
config.setRemoteProxySettings(new CRemoteProxySettings());
final CRemoteHttpProxySettings httpProxySettings = new CRemoteHttpProxySettings();
httpProxySettings.setProxyHostname("localhost");
httpProxySettings.setProxyPort(1234);
httpProxySettings.setAuthentication(new CRemoteAuthentication());
httpProxySettings.getAuthentication().setPassword(password);
final CRemoteHttpProxySettings httpsProxySettings = new CRemoteHttpProxySettings();
httpsProxySettings.setProxyHostname("localhost");
httpsProxySettings.setProxyPort(1234);
httpsProxySettings.setAuthentication(new CRemoteAuthentication());
httpsProxySettings.getAuthentication().setPassword(password);
config.getRemoteProxySettings().setHttpProxySettings(httpProxySettings);
config.getRemoteProxySettings().setHttpsProxySettings(httpsProxySettings);
// config.getSecurity().setAnonymousPassword( password );