Custom logic for Dreamhost discovery

This commit is contained in:
M66B 2021-04-01 08:07:01 +02:00
parent 696950374f
commit dc360caa9f
1 changed files with 9 additions and 0 deletions

View File

@ -275,6 +275,15 @@ public class EmailProvider {
return provider;
}
// https://help.dreamhost.com/hc/en-us/articles/214918038-Email-client-configuration-overview
if (autoconfig.imap.host != null &&
autoconfig.imap.host.endsWith(".dreamhost.com"))
autoconfig.imap.host = "imap.dreamhost.com";
if (autoconfig.smtp.host != null &&
autoconfig.smtp.host.endsWith(".dreamhost.com"))
autoconfig.smtp.host = "smtp.dreamhost.com";
// https://docs.aws.amazon.com/workmail/latest/userguide/using_IMAP_client.html
if (autoconfig.imap.host != null &&
autoconfig.imap.host.endsWith(".awsapps.com"))