diff --git a/src/configure/mod.rs b/src/configure/mod.rs index d965ff30f..1b6a9e8c9 100644 --- a/src/configure/mod.rs +++ b/src/configure/mod.rs @@ -161,7 +161,7 @@ pub fn JobConfigureImap(context: &Context) { p.send_user = param.addr.clone(); p.send_pw = param.mail_pw.clone(); - p.send_port = 465; + p.send_port = 25; p.smtp_certificate_checks = CertificateChecks::AcceptInvalidCertificates; p.server_flags = DC_LP_AUTH_NORMAL as i32 | DC_LP_IMAP_SOCKET_PLAIN as i32 @@ -169,7 +169,7 @@ pub fn JobConfigureImap(context: &Context) { // pretend we did autoconfig, to prevent further tries param_autoconfig = Some(p); - step_counter = STEP_3_INDEX - 1; + step_counter = 12 - 1; } else if param.mail_server.is_empty() && param.mail_port == 0 /*&¶m.mail_user.is_empty() -- the user can enter a loginname which is used by autoconfig then */ diff --git a/src/login_param.rs b/src/login_param.rs index 58dbae773..b814faa57 100644 --- a/src/login_param.rs +++ b/src/login_param.rs @@ -108,11 +108,11 @@ impl LoginParam { // Rust-TLS does not support nauta.cu's RSA1024 TLS cert. // see https://github.com/deltachat/deltachat-core-rust/issues/1007 if mail_server.ends_with(".nauta.cu") { - server_flags |= !0x300; // clear out IMAP_SSL/STARTTLS + server_flags &= !0x300; // clear out IMAP_SSL/STARTTLS server_flags |= 0x400; // set IMAP_PLAIN } if send_server.ends_with(".nauta.cu") { - server_flags |= !0x30000; // clear out SMTP_SSL/STARTTLS + server_flags &= !0x30000; // clear out SMTP_SSL/STARTTLS server_flags |= 0x40000; // set SMTP_PLAIN }