emails-help 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1665 @@
1
+ // src/autoconfig.ts
2
+ function autoconfigUrls(domain) {
3
+ return [
4
+ { method: "autoconfig", url: `https://autoconfig.${domain}/mail/config-v1.1.xml` },
5
+ { method: "well-known", url: `https://${domain}/.well-known/autoconfig/mail/config-v1.1.xml` }
6
+ ];
7
+ }
8
+ function ispdbUrl(domain) {
9
+ return `https://autoconfig.thunderbird.net/v1.1/${domain}`;
10
+ }
11
+ function tagText(block, tag) {
12
+ const match = new RegExp(`<${tag}[^>]*>([\\s\\S]*?)</${tag}>`, "i").exec(block);
13
+ return match === null ? null : match[1].trim();
14
+ }
15
+ function toSecurity(raw) {
16
+ switch ((raw ?? "").trim().toUpperCase()) {
17
+ case "SSL":
18
+ return "ssl";
19
+ case "STARTTLS":
20
+ return "starttls";
21
+ case "PLAIN":
22
+ case "NONE":
23
+ return "none";
24
+ default:
25
+ return null;
26
+ }
27
+ }
28
+ function serverBlocks(xml, element) {
29
+ const blocks = [];
30
+ const pattern = new RegExp(`<${element}\\b[^>]*>([\\s\\S]*?)</${element}>`, "gi");
31
+ let match;
32
+ while ((match = pattern.exec(xml)) !== null) {
33
+ blocks.push(match[0]);
34
+ }
35
+ return blocks;
36
+ }
37
+ function typeOf(block) {
38
+ return (/\btype\s*=\s*["']([^"']+)["']/i.exec(block)?.[1] ?? "").toLowerCase();
39
+ }
40
+ function toServer(block) {
41
+ const host = tagText(block, "hostname");
42
+ if (host === null || host === "") return null;
43
+ const port = tagText(block, "port");
44
+ return {
45
+ host,
46
+ port: port === null ? null : Number.parseInt(port, 10),
47
+ security: toSecurity(tagText(block, "socketType")),
48
+ // A published autoconfig file states its socket type as a matter of
49
+ // format. If the element is missing the file is simply incomplete, and
50
+ // that is an unstated value exactly as a provider's silence is.
51
+ securityDocumented: tagText(block, "socketType") !== null
52
+ };
53
+ }
54
+ function parseClientConfig(xml) {
55
+ if (!/<clientConfig\b/i.test(xml)) return null;
56
+ const incoming = serverBlocks(xml, "incomingServer");
57
+ const outgoing = serverBlocks(xml, "outgoingServer");
58
+ const imapBlock = incoming.find((block) => typeOf(block) === "imap");
59
+ const popBlock = incoming.find((block) => typeOf(block) === "pop3");
60
+ const smtpBlock = outgoing.find((block) => typeOf(block) === "smtp") ?? outgoing[0];
61
+ const imap = imapBlock === void 0 ? null : toServer(imapBlock);
62
+ const pop3 = popBlock === void 0 ? null : toServer(popBlock);
63
+ const smtp = smtpBlock === void 0 ? null : toServer(smtpBlock);
64
+ if (imap === null && pop3 === null && smtp === null) return null;
65
+ const usernameBlock = imapBlock ?? popBlock ?? smtpBlock;
66
+ return {
67
+ provider: tagText(xml, "displayName"),
68
+ imap,
69
+ pop3,
70
+ smtp,
71
+ username: usernameBlock === void 0 ? null : tagText(usernameBlock, "username")
72
+ };
73
+ }
74
+ async function fetchClientConfig(url, fetchImpl, timeout) {
75
+ const response = await fetchImpl(url, {
76
+ signal: AbortSignal.timeout(timeout),
77
+ redirect: "follow",
78
+ headers: { accept: "application/xml, text/xml" }
79
+ });
80
+ if (!response.ok) return null;
81
+ return parseClientConfig(await response.text());
82
+ }
83
+
84
+ // src/data.generated.ts
85
+ var DATASET = {
86
+ "version": 1,
87
+ "generated_at": "2026-11-23T00:03:12+00:00",
88
+ "source": "https://emails.help",
89
+ "about": `Email server settings, each value taken from the provider's own documentation. A null with a note in "undocumented" means the provider does not state that value, not that it is unknown.`,
90
+ "licence": "CC BY 4.0",
91
+ "count": 31,
92
+ "providers": [
93
+ {
94
+ "slug": "aol",
95
+ "name": "AOL Mail",
96
+ "domains": [
97
+ "aol.com"
98
+ ],
99
+ "mx_patterns": [],
100
+ "client_access": true,
101
+ "incoming": {
102
+ "imap": {
103
+ "host": "imap.aol.com",
104
+ "port": 993,
105
+ "security": "ssl",
106
+ "security_documented": true
107
+ },
108
+ "pop3": {
109
+ "host": "pop.aol.com",
110
+ "port": 995,
111
+ "security": "ssl",
112
+ "security_documented": true
113
+ }
114
+ },
115
+ "outgoing": {
116
+ "smtp": {
117
+ "host": "smtp.aol.com",
118
+ "port": 465,
119
+ "security": "ssl",
120
+ "security_documented": true
121
+ }
122
+ },
123
+ "username": "Your full email address",
124
+ "authentication": "An app password from your AOL Account Security page \u2014 unless your app signs in through AOL\u2019s own sign-in page.",
125
+ "notes": [
126
+ "IMAP keeps the app and mail.aol.com in sync; POP only downloads the Inbox."
127
+ ],
128
+ "undocumented": [],
129
+ "sources": [
130
+ "https://help.aol.com/articles/how-do-i-use-other-email-applications-to-send-and-receive-my-aol-mail"
131
+ ],
132
+ "guide": "https://emails.help/aol-mail/server-settings",
133
+ "verified": null
134
+ },
135
+ {
136
+ "slug": "att",
137
+ "name": "AT&T Mail",
138
+ "domains": [
139
+ "att.net",
140
+ "sbcglobal.net",
141
+ "bellsouth.net",
142
+ "pacbell.net",
143
+ "prodigy.net",
144
+ "ameritech.net",
145
+ "currently.com",
146
+ "flash.net",
147
+ "nvbell.net",
148
+ "snet.net",
149
+ "swbell.net",
150
+ "wans.net"
151
+ ],
152
+ "mx_patterns": [],
153
+ "client_access": true,
154
+ "incoming": {
155
+ "imap": {
156
+ "host": "imap.mail.att.net",
157
+ "port": 993,
158
+ "security": "ssl",
159
+ "security_documented": true
160
+ },
161
+ "pop3": {
162
+ "host": "inbound.att.net",
163
+ "port": 995,
164
+ "security": "ssl",
165
+ "security_documented": true
166
+ }
167
+ },
168
+ "outgoing": {
169
+ "smtp": {
170
+ "host": "smtp.mail.att.net",
171
+ "port": 465,
172
+ "security": "ssl",
173
+ "security_documented": true
174
+ }
175
+ },
176
+ "username": "Your full email address",
177
+ "authentication": "A secure mail key (16 characters, created in your AT&T profile) \u2014 unless your app signs in with OAuth, where your AT&T password works.",
178
+ "notes": [
179
+ "AT&T also lists port 587 for the IMAP outgoing server.",
180
+ "With POP3, the outgoing server is outbound.att.net on port 465 with SSL."
181
+ ],
182
+ "undocumented": [],
183
+ "sources": [
184
+ "https://www.att.com/support/article/email-support/KM1010523/",
185
+ "https://www.att.com/support/article/email-support/KM1240308/"
186
+ ],
187
+ "guide": "https://emails.help/att-mail/server-settings",
188
+ "verified": null
189
+ },
190
+ {
191
+ "slug": "centurylink",
192
+ "name": "CenturyLink Email",
193
+ "domains": [
194
+ "centurylink.net",
195
+ "centurytel.net",
196
+ "clds.net",
197
+ "coastalnow.net",
198
+ "cochill.net",
199
+ "cswnet.com",
200
+ "elpasotel.net",
201
+ "embarqmail.com",
202
+ "emadisonriver.com",
203
+ "emadisonriver.net",
204
+ "gallatinriver.net",
205
+ "grics.net",
206
+ "gulftel.com",
207
+ "madisonriver.biz",
208
+ "mebtel.net",
209
+ "qwest.net"
210
+ ],
211
+ "mx_patterns": [],
212
+ "client_access": true,
213
+ "incoming": {
214
+ "imap": {
215
+ "host": "mail.centurylink.net",
216
+ "port": 993,
217
+ "security": "ssl",
218
+ "security_documented": true
219
+ },
220
+ "pop3": {
221
+ "host": "pop.centurylink.net",
222
+ "port": 995,
223
+ "security": "ssl",
224
+ "security_documented": true
225
+ }
226
+ },
227
+ "outgoing": {
228
+ "smtp": {
229
+ "host": "smtp.centurylink.net",
230
+ "port": 587,
231
+ "security": "starttls",
232
+ "security_documented": true
233
+ }
234
+ },
235
+ "username": "Your full email address",
236
+ "authentication": null,
237
+ "notes": [
238
+ "CenturyLink moved all email to a new service in October 2022 \u2014 apps set up before then may need these updated settings.",
239
+ "qwestoffice.net uses different servers (pop.qwestoffice.net and smtp.qwestoffice.net)."
240
+ ],
241
+ "undocumented": [],
242
+ "sources": [
243
+ "https://www.centurylink.com/home/help/internet/email/how-to-set-up-your-email-server-settings-to-go-through-pop-and-smtp.html"
244
+ ],
245
+ "guide": "https://emails.help/centurylink/server-settings",
246
+ "verified": null
247
+ },
248
+ {
249
+ "slug": "cox",
250
+ "name": "Cox Email (Yahoo)",
251
+ "domains": [
252
+ "cox.net"
253
+ ],
254
+ "mx_patterns": [],
255
+ "client_access": true,
256
+ "incoming": {
257
+ "imap": {
258
+ "host": "imap.mail.yahoo.com",
259
+ "port": 993,
260
+ "security": "ssl",
261
+ "security_documented": true
262
+ },
263
+ "pop3": {
264
+ "host": "pop.mail.yahoo.com",
265
+ "port": 995,
266
+ "security": "ssl",
267
+ "security_documented": true
268
+ }
269
+ },
270
+ "outgoing": {
271
+ "smtp": {
272
+ "host": "smtp.mail.yahoo.com",
273
+ "port": 465,
274
+ "security": "ssl",
275
+ "security_documented": true,
276
+ "alternative": {
277
+ "port": 587,
278
+ "security": null
279
+ }
280
+ }
281
+ },
282
+ "username": "Your full cox.net email address",
283
+ "authentication": "A Yahoo app password \u2014 your regular password won\u2019t work in email apps.",
284
+ "notes": [
285
+ "Cox moved all cox.net email to Yahoo Mail; Yahoo now handles cox.net email support."
286
+ ],
287
+ "undocumented": [],
288
+ "sources": [
289
+ "https://help.yahoo.com/kb/mail/SLN36637.html",
290
+ "https://www.cox.com/residential/support/coxnet-email-transitioning-to-yahoo.html"
291
+ ],
292
+ "guide": "https://emails.help/cox-email/server-settings",
293
+ "verified": null
294
+ },
295
+ {
296
+ "slug": "earthlink",
297
+ "name": "EarthLink",
298
+ "domains": [
299
+ "earthlink.net",
300
+ "mindspring.com",
301
+ "peoplepc.com"
302
+ ],
303
+ "mx_patterns": [],
304
+ "client_access": true,
305
+ "incoming": {
306
+ "imap": {
307
+ "host": "imap.earthlink.net",
308
+ "port": 993,
309
+ "security": "ssl",
310
+ "security_documented": true
311
+ },
312
+ "pop3": {
313
+ "host": "pop.earthlink.net",
314
+ "port": 995,
315
+ "security": "ssl",
316
+ "security_documented": true
317
+ }
318
+ },
319
+ "outgoing": {
320
+ "smtp": {
321
+ "host": "smtpauth.earthlink.net",
322
+ "port": 587,
323
+ "security": "starttls",
324
+ "security_documented": true
325
+ }
326
+ },
327
+ "username": "Your full email address",
328
+ "authentication": null,
329
+ "notes": [
330
+ "For POP, other EarthLink domains use pop. plus the domain \u2014 for example pop.mindspring.com or pop.peoplepc.com.",
331
+ "If you use more than one device, put them all on IMAP; EarthLink warns that mixing POP and IMAP can stop messages saving."
332
+ ],
333
+ "undocumented": [],
334
+ "sources": [
335
+ "https://help.earthlink.net/portal/en/kb/articles/email-server-settings"
336
+ ],
337
+ "guide": "https://emails.help/earthlink/server-settings",
338
+ "verified": null
339
+ },
340
+ {
341
+ "slug": "fastmail",
342
+ "name": "Fastmail",
343
+ "domains": [
344
+ "fastmail.com"
345
+ ],
346
+ "mx_patterns": [
347
+ "messagingengine.com"
348
+ ],
349
+ "client_access": true,
350
+ "incoming": {
351
+ "imap": {
352
+ "host": "imap.fastmail.com",
353
+ "port": 993,
354
+ "security": "ssl",
355
+ "security_documented": true
356
+ },
357
+ "pop3": {
358
+ "host": "pop.fastmail.com",
359
+ "port": 995,
360
+ "security": "ssl",
361
+ "security_documented": true
362
+ }
363
+ },
364
+ "outgoing": {
365
+ "smtp": {
366
+ "host": "smtp.fastmail.com",
367
+ "port": 465,
368
+ "security": "ssl",
369
+ "security_documented": true,
370
+ "alternative": {
371
+ "port": 587,
372
+ "security": "starttls"
373
+ }
374
+ }
375
+ },
376
+ "username": "Your full email address",
377
+ "authentication": "An app password \u2014 Fastmail doesn\u2019t accept your regular password in email apps.",
378
+ "notes": [
379
+ "Don\u2019t turn on Secure Password Authentication (SPA) \u2014 it isn\u2019t needed with SSL/TLS and won\u2019t work.",
380
+ "If your network blocks these ports, Fastmail offers proxy servers (imaps-proxy, pops-proxy, smtps-proxy.fastmail.com)."
381
+ ],
382
+ "undocumented": [],
383
+ "sources": [
384
+ "https://fastmail.help/hc/en-us/articles/1500000278342"
385
+ ],
386
+ "guide": "https://emails.help/fastmail/server-settings",
387
+ "verified": null
388
+ },
389
+ {
390
+ "slug": "frontier",
391
+ "name": "Frontier Mail",
392
+ "domains": [
393
+ "frontier.com",
394
+ "frontiernet.net",
395
+ "citilink.net",
396
+ "epix.net",
397
+ "gvni.com",
398
+ "newnorth.net"
399
+ ],
400
+ "mx_patterns": [],
401
+ "client_access": true,
402
+ "incoming": {
403
+ "pop3": {
404
+ "host": "pop3.frontier.com",
405
+ "port": 995,
406
+ "security": "ssl",
407
+ "security_documented": true
408
+ }
409
+ },
410
+ "outgoing": {
411
+ "smtp": {
412
+ "host": "smtp.frontier.com",
413
+ "port": 465,
414
+ "security": "ssl",
415
+ "security_documented": true
416
+ }
417
+ },
418
+ "username": "Your full email address",
419
+ "authentication": "Your Frontier email password. The outgoing server requires authentication.",
420
+ "notes": [
421
+ "Frontier Mail is powered by Yahoo. Frontier says to use an OAuth-compliant email app; on iPhone it adds Frontier email as a Yahoo account.",
422
+ "Frontier\u2019s settings page lists POP3 and SMTP only \u2014 no IMAP server."
423
+ ],
424
+ "undocumented": [],
425
+ "sources": [
426
+ "https://frontier.com/helpcenter/categories/internet/email/troubleshooting-email/get-started/mail-server-settings",
427
+ "https://frontier.com/helpcenter/residential/categories/internet/email/use-frontier-yahoo-mail"
428
+ ],
429
+ "guide": "https://emails.help/frontier-mail/server-settings",
430
+ "verified": null
431
+ },
432
+ {
433
+ "slug": "gmail",
434
+ "name": "Gmail",
435
+ "domains": [
436
+ "gmail.com"
437
+ ],
438
+ "mx_patterns": [
439
+ "google.com",
440
+ "googlemail.com"
441
+ ],
442
+ "client_access": true,
443
+ "incoming": {
444
+ "imap": {
445
+ "host": "imap.gmail.com",
446
+ "port": 993,
447
+ "security": "ssl",
448
+ "security_documented": true
449
+ },
450
+ "pop3": {
451
+ "host": "pop.gmail.com",
452
+ "port": 995,
453
+ "security": "ssl",
454
+ "security_documented": true
455
+ }
456
+ },
457
+ "outgoing": {
458
+ "smtp": {
459
+ "host": "smtp.gmail.com",
460
+ "port": 587,
461
+ "security": "starttls",
462
+ "security_documented": true
463
+ }
464
+ },
465
+ "username": "Your full email address",
466
+ "authentication": "Use your app\u2019s \u201CSign in with Google\u201D option where available. If you use 2-Step Verification and your app can\u2019t sign in with Google, Google suggests an app password.",
467
+ "notes": [
468
+ "IMAP is always on for personal Gmail accounts.",
469
+ "POP has to be turned on first in Gmail settings under Forwarding and POP/IMAP.",
470
+ "Work or school accounts: check with your administrator for the correct SMTP configuration."
471
+ ],
472
+ "undocumented": [],
473
+ "sources": [
474
+ "https://support.google.com/mail/answer/7104828",
475
+ "https://support.google.com/mail/answer/7126229"
476
+ ],
477
+ "guide": "https://emails.help/gmail/server-settings",
478
+ "verified": null
479
+ },
480
+ {
481
+ "slug": "gmx",
482
+ "name": "GMX",
483
+ "domains": [
484
+ "gmx.com"
485
+ ],
486
+ "mx_patterns": [],
487
+ "client_access": true,
488
+ "incoming": {
489
+ "imap": {
490
+ "host": "imap.gmx.com",
491
+ "port": 993,
492
+ "security": "ssl",
493
+ "security_documented": true
494
+ },
495
+ "pop3": {
496
+ "host": "pop.gmx.com",
497
+ "port": 995,
498
+ "security": "ssl",
499
+ "security_documented": true
500
+ }
501
+ },
502
+ "outgoing": {
503
+ "smtp": {
504
+ "host": "mail.gmx.com",
505
+ "port": 587,
506
+ "security": "starttls",
507
+ "security_documented": true,
508
+ "alternative": {
509
+ "port": 465,
510
+ "security": "ssl"
511
+ }
512
+ }
513
+ },
514
+ "username": "Your full email address",
515
+ "authentication": null,
516
+ "notes": [
517
+ "POP3 and IMAP are switched off by default. Turn them on in your GMX email settings first.",
518
+ "Your app must support TLS 1.2 or 1.3 \u2014 older TLS versions are no longer accepted."
519
+ ],
520
+ "undocumented": [],
521
+ "sources": [
522
+ "https://support.gmx.com/pop-imap/setup-emailprogram-fails.html"
523
+ ],
524
+ "guide": "https://emails.help/gmx/server-settings",
525
+ "verified": null
526
+ },
527
+ {
528
+ "slug": "gmx-net",
529
+ "name": "GMX (gmx.net)",
530
+ "domains": [
531
+ "gmx.net"
532
+ ],
533
+ "mx_patterns": [],
534
+ "client_access": true,
535
+ "incoming": {
536
+ "imap": {
537
+ "host": "imap.gmx.net",
538
+ "port": 993,
539
+ "security": "ssl",
540
+ "security_documented": true
541
+ }
542
+ },
543
+ "outgoing": {
544
+ "smtp": {
545
+ "host": "mail.gmx.net",
546
+ "port": 587,
547
+ "security": "starttls",
548
+ "security_documented": true,
549
+ "alternative": {
550
+ "port": 465,
551
+ "security": "ssl"
552
+ }
553
+ }
554
+ },
555
+ "username": "Your full email address",
556
+ "authentication": null,
557
+ "notes": [
558
+ "POP3 or IMAP has to be switched on in your GMX settings before you can use them.",
559
+ "Your app must support TLS 1.2 or 1.3."
560
+ ],
561
+ "undocumented": [],
562
+ "sources": [
563
+ "https://hilfe.gmx.net/pop-imap/imap/imap-serverdaten.html"
564
+ ],
565
+ "guide": null,
566
+ "verified": null
567
+ },
568
+ {
569
+ "slug": "godaddy",
570
+ "name": "GoDaddy Professional Email",
571
+ "domains": [],
572
+ "mx_patterns": [
573
+ "secureserver.net"
574
+ ],
575
+ "client_access": true,
576
+ "incoming": {
577
+ "imap": {
578
+ "host": "imap.secureserver.net",
579
+ "port": 993,
580
+ "security": "ssl",
581
+ "security_documented": true
582
+ }
583
+ },
584
+ "outgoing": {
585
+ "smtp": {
586
+ "host": "smtpout.secureserver.net",
587
+ "port": 465,
588
+ "security": "ssl",
589
+ "security_documented": true
590
+ }
591
+ },
592
+ "username": "Your full email address",
593
+ "authentication": "Your email password \u2014 not your GoDaddy account password.",
594
+ "notes": [
595
+ "Microsoft 365 from GoDaddy uses Microsoft\u2019s servers instead; GoDaddy recommends Exchange settings or Outlook on the web for it.",
596
+ "Older Workspace Email accounts use the same IMAP and SMTP servers. GoDaddy is retiring Workspace Email."
597
+ ],
598
+ "undocumented": [],
599
+ "sources": [
600
+ "https://www.godaddy.com/en-ca/help/use-imap-settings-to-add-my-professional-email-to-a-client-32204",
601
+ "https://www.godaddy.com/en-in/help/what-are-my-dns-settings-for-professional-email-powered-by-titan-42767"
602
+ ],
603
+ "guide": "https://emails.help/godaddy-email/server-settings",
604
+ "verified": null
605
+ },
606
+ {
607
+ "slug": "icloud",
608
+ "name": "iCloud Mail",
609
+ "domains": [
610
+ "icloud.com"
611
+ ],
612
+ "mx_patterns": [
613
+ "mail.icloud.com"
614
+ ],
615
+ "client_access": true,
616
+ "incoming": {
617
+ "imap": {
618
+ "host": "imap.mail.me.com",
619
+ "port": 993,
620
+ "security": "ssl",
621
+ "security_documented": true
622
+ }
623
+ },
624
+ "outgoing": {
625
+ "smtp": {
626
+ "host": "smtp.mail.me.com",
627
+ "port": 587,
628
+ "security": "starttls",
629
+ "security_documented": true
630
+ }
631
+ },
632
+ "username": "IMAP: usually the part of your address before the @ (try the full address if that fails). SMTP: your full iCloud address.",
633
+ "authentication": "An app-specific password, generated from your Apple Account \u2014 not your normal Apple password.",
634
+ "notes": [
635
+ "iCloud Mail doesn\u2019t support POP.",
636
+ "On Apple devices that meet iCloud\u2019s requirements, use the built-in iCloud settings instead."
637
+ ],
638
+ "undocumented": [],
639
+ "sources": [
640
+ "https://support.apple.com/en-us/102525"
641
+ ],
642
+ "guide": "https://emails.help/icloud-mail/server-settings",
643
+ "verified": null
644
+ },
645
+ {
646
+ "slug": "juno",
647
+ "name": "Juno",
648
+ "domains": [
649
+ "juno.com"
650
+ ],
651
+ "mx_patterns": [],
652
+ "client_access": true,
653
+ "incoming": {
654
+ "pop3": {
655
+ "host": "pop.juno.com",
656
+ "port": 995,
657
+ "security": "ssl",
658
+ "security_documented": true
659
+ }
660
+ },
661
+ "outgoing": {
662
+ "smtp": {
663
+ "host": "smtp.juno.com",
664
+ "port": 465,
665
+ "security": "ssl",
666
+ "security_documented": true
667
+ }
668
+ },
669
+ "username": "Your full email address (memberid@juno.com)",
670
+ "authentication": null,
671
+ "notes": [
672
+ "Juno publishes no IMAP server \u2014 POP3 only. Set \u201CDelete email from server\u201D to Never so a second device and webmail can still see your mail.",
673
+ "Outgoing mail needs authentication: tick Require Sign-in on the SMTP server.",
674
+ "Juno\u2019s help pages have not been revised in years \u2014 its setup page still lists Outlook Express. Re-check these values against Juno before relying on them."
675
+ ],
676
+ "undocumented": [],
677
+ "sources": [
678
+ "https://help.juno.com/support/webmail/wm-email-setup.html",
679
+ "https://help.juno.com/support/webmail/mobile/droid.html"
680
+ ],
681
+ "guide": "https://emails.help/juno/server-settings",
682
+ "verified": null
683
+ },
684
+ {
685
+ "slug": "mail-com",
686
+ "name": "mail.com",
687
+ "domains": [
688
+ "mail.com"
689
+ ],
690
+ "mx_patterns": [
691
+ "mail.com"
692
+ ],
693
+ "client_access": true,
694
+ "incoming": {
695
+ "imap": {
696
+ "host": "imap.mail.com",
697
+ "port": 993,
698
+ "security": "ssl",
699
+ "security_documented": true
700
+ },
701
+ "pop3": {
702
+ "host": "pop.mail.com",
703
+ "port": 995,
704
+ "security": "ssl",
705
+ "security_documented": true
706
+ }
707
+ },
708
+ "outgoing": {
709
+ "smtp": {
710
+ "host": "smtp.mail.com",
711
+ "port": 587,
712
+ "security": "starttls",
713
+ "security_documented": true,
714
+ "alternative": {
715
+ "port": 465,
716
+ "security": "ssl"
717
+ }
718
+ }
719
+ },
720
+ "username": "Your full email address",
721
+ "authentication": null,
722
+ "notes": [
723
+ "POP3, IMAP and SMTP are mail.com Premium features only \u2014 free accounts use the website or the mail.com Mail app.",
724
+ "Access is switched off by default: Email \u203A Settings \u203A POP3 & IMAP \u203A \u201CEnable access to this account via POP3 and IMAP\u201D. mail.com turns it off again after long non-use.",
725
+ "With two-factor authentication on, use an application-specific password in the app."
726
+ ],
727
+ "undocumented": [],
728
+ "sources": [
729
+ "https://support.mail.com/pop-imap/toggle.html",
730
+ "https://support.mail.com/pop-imap/setup-emailprogram-fails.html"
731
+ ],
732
+ "guide": "https://emails.help/mail-com/server-settings",
733
+ "verified": null
734
+ },
735
+ {
736
+ "slug": "microsoft-365",
737
+ "name": "Microsoft 365",
738
+ "domains": [],
739
+ "mx_patterns": [
740
+ "mail.protection.outlook.com"
741
+ ],
742
+ "client_access": true,
743
+ "incoming": {
744
+ "imap": {
745
+ "host": "outlook.office365.com",
746
+ "port": 993,
747
+ "security": "ssl",
748
+ "security_documented": true
749
+ },
750
+ "pop3": {
751
+ "host": "outlook.office365.com",
752
+ "port": 995,
753
+ "security": "ssl",
754
+ "security_documented": true
755
+ }
756
+ },
757
+ "outgoing": {
758
+ "smtp": {
759
+ "host": "smtp.office365.com",
760
+ "port": 587,
761
+ "security": "starttls",
762
+ "security_documented": true
763
+ }
764
+ },
765
+ "username": "Your full email address",
766
+ "authentication": "Your work or school account password. Turn on \u201CMy outgoing server requires authentication\u201D and leave Secure Password Authentication off.",
767
+ "notes": [
768
+ "Your organisation\u2019s administrator can turn POP, IMAP or SMTP off for your mailbox. If these settings don\u2019t work, ask them first.",
769
+ "Accounts operated by 21Vianet (China) use different servers."
770
+ ],
771
+ "undocumented": [],
772
+ "sources": [
773
+ "https://support.microsoft.com/en-us/topic/775748a1-0075-40fd-b630-1d2a84be081a"
774
+ ],
775
+ "guide": "https://emails.help/microsoft-365/smtp-settings",
776
+ "verified": null
777
+ },
778
+ {
779
+ "slug": "netzero",
780
+ "name": "NetZero",
781
+ "domains": [
782
+ "netzero.com",
783
+ "netzero.net"
784
+ ],
785
+ "mx_patterns": [],
786
+ "client_access": true,
787
+ "incoming": {
788
+ "pop3": {
789
+ "host": "pop.netzero.com",
790
+ "port": 995,
791
+ "security": "ssl",
792
+ "security_documented": true
793
+ }
794
+ },
795
+ "outgoing": {
796
+ "smtp": {
797
+ "host": "smtp.netzero.com",
798
+ "port": 465,
799
+ "security": "ssl",
800
+ "security_documented": true
801
+ }
802
+ },
803
+ "username": "Your NetZero Member ID",
804
+ "authentication": null,
805
+ "notes": [
806
+ "NetZero publishes no IMAP server \u2014 POP3 only. Set \u201CDelete email from server\u201D to Never so a second device and webmail can still see your mail.",
807
+ "Webmail is on netzero.net; addresses and mail servers are on netzero.com. A hostname that looks almost right is usually this.",
808
+ "Outgoing mail needs authentication: tick Require Sign-in on the SMTP server."
809
+ ],
810
+ "undocumented": [],
811
+ "sources": [
812
+ "https://help.netzero.net/support/webmail/wm-email-setup.html",
813
+ "https://help.netzero.net/support/webmail/mobile/droid.html"
814
+ ],
815
+ "guide": "https://emails.help/netzero/server-settings",
816
+ "verified": null
817
+ },
818
+ {
819
+ "slug": "optimum",
820
+ "name": "Optimum Email",
821
+ "domains": [
822
+ "optimum.net"
823
+ ],
824
+ "mx_patterns": [],
825
+ "client_access": true,
826
+ "incoming": {
827
+ "imap": {
828
+ "host": "mail.optimum.net",
829
+ "port": 993,
830
+ "security": "ssl",
831
+ "security_documented": true
832
+ },
833
+ "pop3": {
834
+ "host": "mail.optimum.net",
835
+ "port": 995,
836
+ "security": "ssl",
837
+ "security_documented": true
838
+ }
839
+ },
840
+ "outgoing": {
841
+ "smtp": {
842
+ "host": "mail.optimum.net",
843
+ "port": 465,
844
+ "security": "ssl",
845
+ "security_documented": true
846
+ }
847
+ },
848
+ "username": "Your full email address",
849
+ "authentication": "The password for your email address. Turn on \u201CMy outgoing server requires authentication\u201D.",
850
+ "notes": [
851
+ "Optimum recommends IMAP if you read email on more than one device."
852
+ ],
853
+ "undocumented": [],
854
+ "sources": [
855
+ "https://www.optimum.net/FAQ/#/answers/a_id/216"
856
+ ],
857
+ "guide": "https://emails.help/optimum-email/server-settings",
858
+ "verified": null
859
+ },
860
+ {
861
+ "slug": "outlook",
862
+ "name": "Outlook.com",
863
+ "domains": [
864
+ "outlook.com",
865
+ "hotmail.com",
866
+ "live.com"
867
+ ],
868
+ "mx_patterns": [
869
+ "olc.protection.outlook.com"
870
+ ],
871
+ "client_access": true,
872
+ "incoming": {
873
+ "imap": {
874
+ "host": "outlook.office365.com",
875
+ "port": 993,
876
+ "security": "ssl",
877
+ "security_documented": true
878
+ },
879
+ "pop3": {
880
+ "host": "outlook.office365.com",
881
+ "port": 995,
882
+ "security": "ssl",
883
+ "security_documented": true
884
+ }
885
+ },
886
+ "outgoing": {
887
+ "smtp": {
888
+ "host": "smtp-mail.outlook.com",
889
+ "port": 587,
890
+ "security": "starttls",
891
+ "security_documented": true
892
+ }
893
+ },
894
+ "username": "Your full email address",
895
+ "authentication": "Your Microsoft account password. Outlook.com requires an app that supports Modern Auth (OAuth2).",
896
+ "notes": [
897
+ "POP and IMAP access are off by default. Turn them on in Outlook.com under Settings \u203A Mail \u203A Forwarding and IMAP."
898
+ ],
899
+ "undocumented": [],
900
+ "sources": [
901
+ "https://support.microsoft.com/en-us/outlook/pop-imap-and-smtp-settings-for-outlook-com"
902
+ ],
903
+ "guide": "https://emails.help/outlook/server-settings",
904
+ "verified": null
905
+ },
906
+ {
907
+ "slug": "proton",
908
+ "name": "Proton Mail",
909
+ "domains": [
910
+ "proton.me",
911
+ "protonmail.com"
912
+ ],
913
+ "mx_patterns": [
914
+ "protonmail.ch"
915
+ ],
916
+ "client_access": false,
917
+ "notes": [],
918
+ "undocumented": [],
919
+ "sources": [
920
+ "https://proton.me/support/imap-smtp-and-pop3-setup"
921
+ ],
922
+ "guide": "https://emails.help/proton-mail/server-settings",
923
+ "verified": null
924
+ },
925
+ {
926
+ "slug": "spectrum-brighthouse",
927
+ "name": "Spectrum Email (Bright House)",
928
+ "domains": [
929
+ "brighthouse.com",
930
+ "bak.rr.com",
931
+ "bham.rr.com",
932
+ "cfl.rr.com",
933
+ "emore.rr.com",
934
+ "eufala.rr.com",
935
+ "indy.rr.com",
936
+ "mi.rr.com",
937
+ "panhandle.rr.com",
938
+ "tampabay.rr.com"
939
+ ],
940
+ "mx_patterns": [],
941
+ "client_access": true,
942
+ "incoming": {
943
+ "imap": {
944
+ "host": "mail.brighthouse.com",
945
+ "port": 993,
946
+ "security": "ssl",
947
+ "security_documented": true
948
+ }
949
+ },
950
+ "outgoing": {
951
+ "smtp": {
952
+ "host": "mail.brighthouse.com",
953
+ "port": 587,
954
+ "security": null,
955
+ "security_documented": true
956
+ }
957
+ },
958
+ "username": "Your full Spectrum-provided email address",
959
+ "authentication": "Your Spectrum email password. Outgoing mail requires authentication.",
960
+ "notes": [
961
+ "Spectrum lists IMAP with SSL on, incoming port 993 and outgoing port 587."
962
+ ],
963
+ "undocumented": [],
964
+ "sources": [
965
+ "https://www.spectrum.net/support/internet/mobile-email-setup"
966
+ ],
967
+ "guide": "https://emails.help/spectrum-email/server-settings",
968
+ "verified": null
969
+ },
970
+ {
971
+ "slug": "spectrum-charter",
972
+ "name": "Spectrum Email (Charter)",
973
+ "domains": [
974
+ "spectrum.net",
975
+ "charter.net",
976
+ "bresnan.net"
977
+ ],
978
+ "mx_patterns": [],
979
+ "client_access": true,
980
+ "incoming": {
981
+ "imap": {
982
+ "host": "mobile.charter.net",
983
+ "port": 993,
984
+ "security": "ssl",
985
+ "security_documented": true
986
+ }
987
+ },
988
+ "outgoing": {
989
+ "smtp": {
990
+ "host": "mobile.charter.net",
991
+ "port": 587,
992
+ "security": null,
993
+ "security_documented": true
994
+ }
995
+ },
996
+ "username": "Your full Spectrum-provided email address",
997
+ "authentication": "Your Spectrum email password. Outgoing mail requires authentication.",
998
+ "notes": [
999
+ "Spectrum lists IMAP with SSL on, incoming port 993 and outgoing port 587."
1000
+ ],
1001
+ "undocumented": [],
1002
+ "sources": [
1003
+ "https://www.spectrum.net/support/internet/mobile-email-setup"
1004
+ ],
1005
+ "guide": "https://emails.help/spectrum-email/server-settings",
1006
+ "verified": null
1007
+ },
1008
+ {
1009
+ "slug": "spectrum-twc",
1010
+ "name": "Spectrum Email (Roadrunner / TWC)",
1011
+ "domains": [
1012
+ "twc.com",
1013
+ "roadrunner.com",
1014
+ "*.rr.com"
1015
+ ],
1016
+ "mx_patterns": [],
1017
+ "client_access": true,
1018
+ "incoming": {
1019
+ "imap": {
1020
+ "host": "mail.twc.com",
1021
+ "port": 993,
1022
+ "security": "ssl",
1023
+ "security_documented": true
1024
+ }
1025
+ },
1026
+ "outgoing": {
1027
+ "smtp": {
1028
+ "host": "mail.twc.com",
1029
+ "port": 587,
1030
+ "security": null,
1031
+ "security_documented": true
1032
+ }
1033
+ },
1034
+ "username": "Your full Spectrum-provided email address",
1035
+ "authentication": "Your Spectrum email password. Outgoing mail requires authentication.",
1036
+ "notes": [
1037
+ "Spectrum lists IMAP with SSL on, incoming port 993 and outgoing port 587.",
1038
+ "Two-domain accounts (roadrunner.com / adelphia.net, mi.rr.com / twmi.rr.com, nycap.rr.com / berkshire.rr.com): sign in to email apps with the roadrunner.com, mi.rr.com or nycap.rr.com address."
1039
+ ],
1040
+ "undocumented": [],
1041
+ "sources": [
1042
+ "https://www.spectrum.net/support/internet/mobile-email-setup"
1043
+ ],
1044
+ "guide": "https://emails.help/spectrum-email/server-settings",
1045
+ "verified": null
1046
+ },
1047
+ {
1048
+ "slug": "suddenlink",
1049
+ "name": "Suddenlink Email (Optimum)",
1050
+ "domains": [
1051
+ "suddenlink.net"
1052
+ ],
1053
+ "mx_patterns": [],
1054
+ "client_access": true,
1055
+ "incoming": {
1056
+ "imap": {
1057
+ "host": "imap.suddenlink.net",
1058
+ "port": 993,
1059
+ "security": "ssl",
1060
+ "security_documented": true
1061
+ },
1062
+ "pop3": {
1063
+ "host": "pop.suddenlink.net",
1064
+ "port": 995,
1065
+ "security": "ssl",
1066
+ "security_documented": true
1067
+ }
1068
+ },
1069
+ "outgoing": {
1070
+ "smtp": {
1071
+ "host": "smtp.suddenlink.net",
1072
+ "port": 465,
1073
+ "security": "ssl",
1074
+ "security_documented": true
1075
+ }
1076
+ },
1077
+ "username": "Your full email address",
1078
+ "authentication": "The password for your email address. Turn on \u201CMy outgoing server requires authentication\u201D.",
1079
+ "notes": [],
1080
+ "undocumented": [],
1081
+ "sources": [
1082
+ "https://www.optimum.net/FAQ/#/answers/a_id/216"
1083
+ ],
1084
+ "guide": "https://emails.help/optimum-email/server-settings",
1085
+ "verified": null
1086
+ },
1087
+ {
1088
+ "slug": "tuta",
1089
+ "name": "Tuta Mail",
1090
+ "domains": [
1091
+ "tuta.com",
1092
+ "tutanota.com",
1093
+ "tutanota.de",
1094
+ "tutamail.com",
1095
+ "tuta.io",
1096
+ "keemail.me"
1097
+ ],
1098
+ "mx_patterns": [],
1099
+ "client_access": false,
1100
+ "notes": [],
1101
+ "undocumented": [],
1102
+ "sources": [
1103
+ "https://tuta.com/blog/beta-time-is-over-release-notes"
1104
+ ],
1105
+ "guide": "https://emails.help/tuta/server-settings",
1106
+ "verified": null
1107
+ },
1108
+ {
1109
+ "slug": "verizon",
1110
+ "name": "Verizon.net (AOL Mail)",
1111
+ "domains": [
1112
+ "verizon.net"
1113
+ ],
1114
+ "mx_patterns": [],
1115
+ "client_access": true,
1116
+ "incoming": {
1117
+ "imap": {
1118
+ "host": "imap.aol.com",
1119
+ "port": 993,
1120
+ "security": "ssl",
1121
+ "security_documented": true
1122
+ },
1123
+ "pop3": {
1124
+ "host": "pop.verizon.net",
1125
+ "port": 995,
1126
+ "security": "ssl",
1127
+ "security_documented": true
1128
+ }
1129
+ },
1130
+ "outgoing": {
1131
+ "smtp": {
1132
+ "host": "smtp.verizon.net",
1133
+ "port": 465,
1134
+ "security": "ssl",
1135
+ "security_documented": true
1136
+ }
1137
+ },
1138
+ "username": "Your full address, including @verizon.net",
1139
+ "authentication": "Use an app that supports OAuth2, or create an AOL app password.",
1140
+ "notes": [
1141
+ "Verizon retired its email service; verizon.net addresses that moved to AOL use these AOL-published settings.",
1142
+ "If your verizon.net address moved to Yahoo instead, use Yahoo Mail\u2019s settings."
1143
+ ],
1144
+ "undocumented": [],
1145
+ "sources": [
1146
+ "https://help.aol.com/articles/how-do-i-set-up-other-email-applications-to-send-and-receive-my-verizon-net-mail"
1147
+ ],
1148
+ "guide": "https://emails.help/verizon-email/server-settings",
1149
+ "verified": null
1150
+ },
1151
+ {
1152
+ "slug": "web-de",
1153
+ "name": "WEB.DE",
1154
+ "domains": [
1155
+ "web.de"
1156
+ ],
1157
+ "mx_patterns": [],
1158
+ "client_access": true,
1159
+ "incoming": {
1160
+ "imap": {
1161
+ "host": "imap.web.de",
1162
+ "port": 993,
1163
+ "security": "ssl",
1164
+ "security_documented": true
1165
+ }
1166
+ },
1167
+ "outgoing": {
1168
+ "smtp": {
1169
+ "host": "smtp.web.de",
1170
+ "port": 587,
1171
+ "security": "starttls",
1172
+ "security_documented": true,
1173
+ "alternative": {
1174
+ "port": 465,
1175
+ "security": "ssl"
1176
+ }
1177
+ }
1178
+ },
1179
+ "username": "Your full email address",
1180
+ "authentication": null,
1181
+ "notes": [
1182
+ "POP3 or IMAP has to be switched on in your WEB.DE settings before you can use them."
1183
+ ],
1184
+ "undocumented": [],
1185
+ "sources": [
1186
+ "https://hilfe.web.de/pop-imap/imap/imap-serverdaten.html"
1187
+ ],
1188
+ "guide": null,
1189
+ "verified": null
1190
+ },
1191
+ {
1192
+ "slug": "windstream",
1193
+ "name": "Windstream (Kinetic) Email",
1194
+ "domains": [
1195
+ "windstream.net"
1196
+ ],
1197
+ "mx_patterns": [],
1198
+ "client_access": true,
1199
+ "incoming": {
1200
+ "imap": {
1201
+ "host": "imap.windstream.net",
1202
+ "port": 993,
1203
+ "security": "ssl",
1204
+ "security_documented": true
1205
+ }
1206
+ },
1207
+ "outgoing": {
1208
+ "smtp": {
1209
+ "host": "smtp.windstream.net",
1210
+ "port": 465,
1211
+ "security": "ssl",
1212
+ "security_documented": true,
1213
+ "alternative": {
1214
+ "port": 587,
1215
+ "security": null
1216
+ }
1217
+ }
1218
+ },
1219
+ "username": "Your full email address",
1220
+ "authentication": null,
1221
+ "notes": [
1222
+ "Windstream recommends IMAP. If one device uses IMAP, set every device to IMAP to avoid \u201CPOP lock\u201D.",
1223
+ "Accounts with no Webmail, POP or IMAP activity for 180 days become inactive."
1224
+ ],
1225
+ "undocumented": [],
1226
+ "sources": [
1227
+ "https://www.gokinetic.com/support/my-account/email-101/what-server-settings-do-i-use-for-windstream-email",
1228
+ "https://www.gokinetic.com/support/my-account/email-101/how-do-i-recover-or-reset-my-email-password"
1229
+ ],
1230
+ "guide": "https://emails.help/windstream-email/server-settings",
1231
+ "verified": null
1232
+ },
1233
+ {
1234
+ "slug": "xfinity",
1235
+ "name": "Xfinity Email (Comcast)",
1236
+ "domains": [
1237
+ "comcast.net"
1238
+ ],
1239
+ "mx_patterns": [],
1240
+ "client_access": true,
1241
+ "incoming": {
1242
+ "imap": {
1243
+ "host": "imap.comcast.net",
1244
+ "port": 993,
1245
+ "security": "ssl",
1246
+ "security_documented": true
1247
+ },
1248
+ "pop3": {
1249
+ "host": "pop3.comcast.net",
1250
+ "port": 995,
1251
+ "security": "ssl",
1252
+ "security_documented": true
1253
+ }
1254
+ },
1255
+ "outgoing": {
1256
+ "smtp": {
1257
+ "host": "smtp.comcast.net",
1258
+ "port": 587,
1259
+ "security": "starttls",
1260
+ "security_documented": true,
1261
+ "alternative": {
1262
+ "port": 465,
1263
+ "security": "ssl"
1264
+ }
1265
+ }
1266
+ },
1267
+ "username": "Your full Comcast.net email address",
1268
+ "authentication": "Your Xfinity ID password. Turn on third-party access first: Xfinity Email \u203A Settings \u203A Security \u203A Third Party Access Security.",
1269
+ "notes": [
1270
+ "Port 25 isn\u2019t supported for sending, and POP port 110 no longer works.",
1271
+ "Xfinity recommends IMAP, so mail and folders stay in sync across devices."
1272
+ ],
1273
+ "undocumented": [],
1274
+ "sources": [
1275
+ "https://www.xfinity.com/support/articles/email-client-programs-with-xfinity-email",
1276
+ "https://www.xfinity.com/support/articles/third-party-email-access"
1277
+ ],
1278
+ "guide": "https://emails.help/xfinity-email/server-settings",
1279
+ "verified": null
1280
+ },
1281
+ {
1282
+ "slug": "yahoo",
1283
+ "name": "Yahoo Mail",
1284
+ "domains": [
1285
+ "yahoo.com"
1286
+ ],
1287
+ "mx_patterns": [],
1288
+ "client_access": true,
1289
+ "incoming": {
1290
+ "imap": {
1291
+ "host": "imap.mail.yahoo.com",
1292
+ "port": 993,
1293
+ "security": "ssl",
1294
+ "security_documented": true
1295
+ }
1296
+ },
1297
+ "outgoing": {
1298
+ "smtp": {
1299
+ "host": "smtp.mail.yahoo.com",
1300
+ "port": 465,
1301
+ "security": "ssl",
1302
+ "security_documented": true,
1303
+ "alternative": {
1304
+ "port": 587,
1305
+ "security": null
1306
+ }
1307
+ }
1308
+ },
1309
+ "username": "Your full email address",
1310
+ "authentication": "Yahoo asks you to generate an app password for third-party email apps.",
1311
+ "notes": [],
1312
+ "undocumented": [],
1313
+ "sources": [
1314
+ "https://help.yahoo.com/kb/SLN4075.html"
1315
+ ],
1316
+ "guide": "https://emails.help/yahoo-mail/server-settings",
1317
+ "verified": null
1318
+ },
1319
+ {
1320
+ "slug": "yandex",
1321
+ "name": "Yandex Mail",
1322
+ "domains": [
1323
+ "yandex.com"
1324
+ ],
1325
+ "mx_patterns": [],
1326
+ "client_access": true,
1327
+ "incoming": {
1328
+ "imap": {
1329
+ "host": "imap.yandex.com",
1330
+ "port": 993,
1331
+ "security": "ssl",
1332
+ "security_documented": true
1333
+ }
1334
+ },
1335
+ "outgoing": {
1336
+ "smtp": {
1337
+ "host": "smtp.yandex.com",
1338
+ "port": 465,
1339
+ "security": "ssl",
1340
+ "security_documented": true,
1341
+ "alternative": {
1342
+ "port": 587,
1343
+ "security": null
1344
+ }
1345
+ }
1346
+ },
1347
+ "username": "The part of your address before the @",
1348
+ "authentication": "An app password (type \u201CMail\u201D) created in your Yandex ID. It\u2019s shown only once.",
1349
+ "notes": [
1350
+ "Turn on mail-client access first: Mail settings \u203A Email clients \u203A \u201CFrom the imap.yandex.com server via IMAP\u201D, plus \u201CApp passwords and OAuth tokens\u201D.",
1351
+ "Yandex no longer updates POP3 support and doesn\u2019t guarantee it works."
1352
+ ],
1353
+ "undocumented": [],
1354
+ "sources": [
1355
+ "https://www.yandex.com/support/mail/mail-clients/others.html"
1356
+ ],
1357
+ "guide": "https://emails.help/yandex-mail/server-settings",
1358
+ "verified": null
1359
+ },
1360
+ {
1361
+ "slug": "zoho",
1362
+ "name": "Zoho Mail",
1363
+ "domains": [
1364
+ "zoho.com",
1365
+ "zohomail.com"
1366
+ ],
1367
+ "mx_patterns": [
1368
+ "zoho.com"
1369
+ ],
1370
+ "client_access": true,
1371
+ "incoming": {
1372
+ "imap": {
1373
+ "host": "imap.zoho.com",
1374
+ "port": 993,
1375
+ "security": "ssl",
1376
+ "security_documented": true
1377
+ }
1378
+ },
1379
+ "outgoing": {
1380
+ "smtp": {
1381
+ "host": "smtp.zoho.com",
1382
+ "port": 465,
1383
+ "security": "ssl",
1384
+ "security_documented": true,
1385
+ "alternative": {
1386
+ "port": 587,
1387
+ "security": "starttls"
1388
+ }
1389
+ }
1390
+ },
1391
+ "username": "Your Zoho username or full Zoho Mail address",
1392
+ "authentication": null,
1393
+ "notes": [
1394
+ "Turn on IMAP Access first: Settings \u203A Mail Accounts \u203A your address \u203A IMAP.",
1395
+ "Paid organisation accounts (you@yourdomain.com) use imappro.zoho.com and smtppro.zoho.com instead.",
1396
+ "Your account\u2019s Server Configuration Details shows the exact servers for your data centre \u2014 use those if they differ.",
1397
+ "IMAP isn\u2019t available to newly signed-up free-plan users."
1398
+ ],
1399
+ "undocumented": [],
1400
+ "sources": [
1401
+ "https://www.zoho.com/mail/help/imap-access.html"
1402
+ ],
1403
+ "guide": "https://emails.help/zoho-mail/server-settings",
1404
+ "verified": null
1405
+ }
1406
+ ]
1407
+ };
1408
+
1409
+ // src/dataset.ts
1410
+ var DEFAULT_ENDPOINT = "https://emails.help/api/email-providers.json";
1411
+ function bundledDataset() {
1412
+ return DATASET;
1413
+ }
1414
+ async function liveDataset(endpoint = DEFAULT_ENDPOINT, fetchImpl = globalThis.fetch, timeout = 5e3) {
1415
+ const signal = AbortSignal.timeout(timeout);
1416
+ const response = await fetchImpl(endpoint, { signal, headers: { accept: "application/json" } });
1417
+ if (!response.ok) {
1418
+ throw new Error(`emails-help: dataset endpoint returned ${response.status}`);
1419
+ }
1420
+ return await response.json();
1421
+ }
1422
+ function rowForDomain(dataset, domain) {
1423
+ const needle = domain.toLowerCase().trim();
1424
+ if (needle === "") return null;
1425
+ for (const row of dataset.providers) {
1426
+ if (row.domains.some((known) => known.toLowerCase() === needle)) {
1427
+ return row;
1428
+ }
1429
+ }
1430
+ return null;
1431
+ }
1432
+ function rowForMx(dataset, mxHosts2) {
1433
+ const hosts = mxHosts2.map((host) => host.toLowerCase().replace(/\.$/, ""));
1434
+ for (const row of dataset.providers) {
1435
+ for (const pattern of row.mx_patterns) {
1436
+ const suffix = pattern.toLowerCase();
1437
+ if (suffix !== "" && hosts.some((host) => host === suffix || host.endsWith(`.${suffix}`))) {
1438
+ return row;
1439
+ }
1440
+ }
1441
+ }
1442
+ return null;
1443
+ }
1444
+ function toServer2(server) {
1445
+ if (server === void 0) return null;
1446
+ return {
1447
+ host: server.host,
1448
+ port: server.port,
1449
+ security: server.security,
1450
+ securityDocumented: server.security_documented
1451
+ };
1452
+ }
1453
+ function fromRow(row) {
1454
+ const smtpRow = row.outgoing?.smtp;
1455
+ let smtp = toServer2(smtpRow);
1456
+ if (smtp !== null && smtpRow?.alternative !== void 0) {
1457
+ smtp = { ...smtp, alternative: smtpRow.alternative };
1458
+ }
1459
+ return {
1460
+ found: true,
1461
+ // A row that publishes a server but leaves a field unstated is a
1462
+ // weaker answer than one that states everything, and the caller
1463
+ // deserves to be able to tell them apart without reading the array.
1464
+ confidence: row.undocumented.length > 0 ? "undocumented" : "documented",
1465
+ provider: row.name,
1466
+ clientAccess: row.client_access,
1467
+ imap: toServer2(row.incoming?.imap),
1468
+ pop3: toServer2(row.incoming?.pop3),
1469
+ smtp,
1470
+ username: row.username ?? null,
1471
+ authentication: row.authentication ?? null,
1472
+ undocumented: row.undocumented,
1473
+ notes: row.notes,
1474
+ sources: row.sources,
1475
+ guide: row.guide,
1476
+ verified: row.verified
1477
+ };
1478
+ }
1479
+
1480
+ // src/mx.ts
1481
+ async function mxHosts(domain, timeout) {
1482
+ let resolveMx;
1483
+ try {
1484
+ const dns = await import("dns");
1485
+ resolveMx = dns.promises.resolveMx;
1486
+ } catch {
1487
+ return null;
1488
+ }
1489
+ try {
1490
+ const records = await withTimeout(resolveMx(domain), timeout);
1491
+ return records.slice().sort((a, b) => a.priority - b.priority).map((record) => record.exchange.toLowerCase().replace(/\.$/, ""));
1492
+ } catch (error) {
1493
+ const code = error.code;
1494
+ if (code === "ENODATA" || code === "ENOTFOUND") return [];
1495
+ return null;
1496
+ }
1497
+ }
1498
+ function withTimeout(promise, ms) {
1499
+ return Promise.race([
1500
+ promise,
1501
+ new Promise((_, reject) => {
1502
+ const timer = setTimeout(() => reject(new Error("dns timeout")), ms);
1503
+ if (typeof timer.unref === "function") timer.unref();
1504
+ })
1505
+ ]);
1506
+ }
1507
+
1508
+ // src/resolve.ts
1509
+ var ALL_METHODS = ["dataset", "autoconfig", "well-known", "ispdb", "autodiscover", "mx"];
1510
+ function toDomain(input) {
1511
+ let value = input.trim().toLowerCase();
1512
+ const at = value.lastIndexOf("@");
1513
+ if (at !== -1) value = value.slice(at + 1);
1514
+ value = value.replace(/^[a-z]+:\/\//, "").replace(/[/?#].*$/, "");
1515
+ value = value.replace(/^\.+|\.+$/g, "");
1516
+ value = value.replace(/^\[|\]$/g, "").replace(/:\d+$/, "");
1517
+ return value;
1518
+ }
1519
+ function empty(input, domain) {
1520
+ return {
1521
+ input,
1522
+ domain,
1523
+ found: false,
1524
+ method: null,
1525
+ confidence: null,
1526
+ provider: null,
1527
+ clientAccess: true,
1528
+ imap: null,
1529
+ pop3: null,
1530
+ smtp: null,
1531
+ username: null,
1532
+ authentication: null,
1533
+ undocumented: [],
1534
+ notes: [],
1535
+ sources: [],
1536
+ guide: null,
1537
+ verified: null,
1538
+ checkedAt: (/* @__PURE__ */ new Date()).toISOString(),
1539
+ trail: []
1540
+ };
1541
+ }
1542
+ function applyConfig(result, config, method, source) {
1543
+ return {
1544
+ ...result,
1545
+ found: true,
1546
+ method,
1547
+ // A config file published by the domain itself, or by Mozilla on its
1548
+ // behalf, is the operator stating the values. That is documentation.
1549
+ confidence: "documented",
1550
+ provider: config.provider,
1551
+ imap: config.imap,
1552
+ pop3: config.pop3,
1553
+ smtp: config.smtp,
1554
+ username: config.username,
1555
+ sources: [source]
1556
+ };
1557
+ }
1558
+ async function resolve(input, options = {}) {
1559
+ const {
1560
+ methods = ALL_METHODS,
1561
+ timeout = 5e3,
1562
+ live = false,
1563
+ endpoint,
1564
+ fetch: fetchImpl = globalThis.fetch
1565
+ } = options;
1566
+ const domain = toDomain(input);
1567
+ let result = empty(input, domain);
1568
+ if (domain === "" || !domain.includes(".")) {
1569
+ return result;
1570
+ }
1571
+ let dataset = null;
1572
+ const needsDataset = methods.includes("dataset") || methods.includes("mx");
1573
+ if (needsDataset) {
1574
+ if (live) {
1575
+ try {
1576
+ dataset = await liveDataset(endpoint, fetchImpl, timeout);
1577
+ } catch (error) {
1578
+ dataset = bundledDataset();
1579
+ result.trail.push({ method: "dataset", outcome: "error", detail: error.message });
1580
+ }
1581
+ } else {
1582
+ dataset = bundledDataset();
1583
+ }
1584
+ }
1585
+ for (const method of methods) {
1586
+ try {
1587
+ if (method === "dataset") {
1588
+ const row = dataset === null ? null : rowForDomain(dataset, domain);
1589
+ if (row !== null) {
1590
+ result.trail.push({ method, outcome: "hit" });
1591
+ return { ...result, ...fromRow(row), method };
1592
+ }
1593
+ result.trail.push({ method, outcome: "miss" });
1594
+ continue;
1595
+ }
1596
+ if (method === "autoconfig" || method === "well-known") {
1597
+ const target = autoconfigUrls(domain).find((entry) => entry.method === method);
1598
+ if (target === void 0) continue;
1599
+ const config = await fetchClientConfig(target.url, fetchImpl, timeout);
1600
+ if (config !== null) {
1601
+ result.trail.push({ method, outcome: "hit" });
1602
+ return applyConfig(result, config, method, target.url);
1603
+ }
1604
+ result.trail.push({ method, outcome: "miss" });
1605
+ continue;
1606
+ }
1607
+ if (method === "ispdb") {
1608
+ const url = ispdbUrl(domain);
1609
+ const config = await fetchClientConfig(url, fetchImpl, timeout);
1610
+ if (config !== null) {
1611
+ result.trail.push({ method, outcome: "hit" });
1612
+ return applyConfig(result, config, method, url);
1613
+ }
1614
+ result.trail.push({ method, outcome: "miss" });
1615
+ continue;
1616
+ }
1617
+ if (method === "autodiscover") {
1618
+ result.trail.push({ method, outcome: "miss", detail: "not implemented" });
1619
+ continue;
1620
+ }
1621
+ if (method === "mx") {
1622
+ const hosts = await mxHosts(domain, timeout);
1623
+ if (hosts === null) {
1624
+ result.trail.push({ method, outcome: "error", detail: "MX lookup failed" });
1625
+ continue;
1626
+ }
1627
+ const row = dataset === null ? null : rowForMx(dataset, hosts);
1628
+ if (row !== null) {
1629
+ result.trail.push({ method, outcome: "hit", detail: hosts[0] });
1630
+ return {
1631
+ ...result,
1632
+ ...fromRow(row),
1633
+ method,
1634
+ // The provider documents these values. Nobody documents that
1635
+ // THIS domain uses that provider — the MX records only make it
1636
+ // very likely. That gap is what `inferred` records.
1637
+ confidence: "inferred",
1638
+ notes: [
1639
+ ...fromRow(row).notes,
1640
+ `Matched by MX record (${hosts[0]}). The provider documents these settings; that this domain uses the provider is inferred, not stated.`
1641
+ ]
1642
+ };
1643
+ }
1644
+ result.trail.push({ method, outcome: "miss", detail: hosts[0] ?? "no MX records" });
1645
+ }
1646
+ } catch (error) {
1647
+ result.trail.push({ method, outcome: "error", detail: error.message });
1648
+ }
1649
+ }
1650
+ return result;
1651
+ }
1652
+
1653
+ export {
1654
+ autoconfigUrls,
1655
+ ispdbUrl,
1656
+ parseClientConfig,
1657
+ bundledDataset,
1658
+ liveDataset,
1659
+ rowForDomain,
1660
+ rowForMx,
1661
+ fromRow,
1662
+ mxHosts,
1663
+ toDomain,
1664
+ resolve
1665
+ };