Skip to content

Email for professionals and teams

Allow skip configuration when add domain #152

Hieu Nguyen (Jack)ec4abafd00f0
diff --git a/drizzle/migrations/0066_add_domain_dns_skipped.sql b/drizzle/migrations/0066_add_domain_dns_skipped.sql
new file mode 100644
index 0000000..c7c1726
--- /dev/null
+++ b/drizzle/migrations/0066_add_domain_dns_skipped.sql
@@ -0,0 +1 @@
+ALTER TABLE `domains` ADD `dns_skipped` integer DEFAULT false NOT NULL;
diff --git a/drizzle/migrations/meta/_journal.json b/drizzle/migrations/meta/_journal.json
index 4b9a674..3ad1875 100644
--- a/drizzle/migrations/meta/_journal.json
+++ b/drizzle/migrations/meta/_journal.json
@@ -407,6 +407,13 @@
"when": 1788937205023,
"tag": "0065_push_devices_per_user",
"breakpoints": true
+ },
+ {
+ "idx": 58,
+ "version": "6",
+ "when": 1789023605023,
+ "tag": "0066_add_domain_dns_skipped",
+ "breakpoints": true
}
]
}
diff --git a/public/locales/ar.json b/public/locales/ar.json
index 35f3f58..36cfeb8 100644
--- a/public/locales/ar.json
+++ b/public/locales/ar.json
@@ -2051,5 +2051,11 @@
"drive.noPreview": "لا تتوفر معاينة لهذا النوع من الملفات.",
"drive.publicNotFound": "هذا الرابط غير متاح. ربما تم إيقافه أو حذف الملف.",
"drive.sharedBy": "تمت المشاركة بواسطة {name}",
- "drive.save": "حفظ"
+ "drive.save": "حفظ",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/bn.json b/public/locales/bn.json
index 05992af..a3958de 100644
--- a/public/locales/bn.json
+++ b/public/locales/bn.json
@@ -1991,5 +1991,11 @@
"drive.sharedBy": "{name} শেয়ার করেছেন",
"drive.save": "সংরক্ষণ করুন",
"settings.account.generalTitle": "সাধারণ",
- "settings.account.generalDescription": "আপনার অ্যাকাউন্টের ভাষা ও টাইম জোন।"
+ "settings.account.generalDescription": "আপনার অ্যাকাউন্টের ভাষা ও টাইম জোন।",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/de.json b/public/locales/de.json
index a085a9f..0b232ac 100644
--- a/public/locales/de.json
+++ b/public/locales/de.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "Für diesen Dateityp ist keine Vorschau verfügbar.",
"drive.publicNotFound": "Dieser Link ist nicht verfügbar. Er wurde möglicherweise deaktiviert oder die Datei wurde entfernt.",
"drive.sharedBy": "Geteilt von {name}",
- "drive.save": "Speichern"
+ "drive.save": "Speichern",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/es.json b/public/locales/es.json
index 472d878..76c0257 100644
--- a/public/locales/es.json
+++ b/public/locales/es.json
@@ -2006,5 +2006,11 @@
"drive.noPreview": "No hay vista previa disponible para este tipo de archivo.",
"drive.publicNotFound": "Este enlace no está disponible. Puede que se haya desactivado o que se haya eliminado el archivo.",
"drive.sharedBy": "Compartido por {name}",
- "drive.save": "Guardar"
+ "drive.save": "Guardar",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/fa.json b/public/locales/fa.json
index dc805d6..66fe310 100644
--- a/public/locales/fa.json
+++ b/public/locales/fa.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "برای این نوع فایل پیش‌نمایشی در دسترس نیست.",
"drive.publicNotFound": "این پیوند در دسترس نیست. ممکن است خاموش شده یا فایل حذف شده باشد.",
"drive.sharedBy": "اشتراک‌گذاری از {name}",
- "drive.save": "ذخیره"
+ "drive.save": "ذخیره",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/fr.json b/public/locales/fr.json
index 5c95c2c..4a6b19e 100644
--- a/public/locales/fr.json
+++ b/public/locales/fr.json
@@ -2006,5 +2006,11 @@
"drive.noPreview": "Aucun aperçu disponible pour ce type de fichier.",
"drive.publicNotFound": "Ce lien n'est pas disponible. Il a peut-être été désactivé ou le fichier supprimé.",
"drive.sharedBy": "Partagé par {name}",
- "drive.save": "Enregistrer"
+ "drive.save": "Enregistrer",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/gu.json b/public/locales/gu.json
index b396d73..5bf5c86 100644
--- a/public/locales/gu.json
+++ b/public/locales/gu.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "આ ફાઇલ પ્રકાર માટે પૂર્વાવલોકન ઉપલબ્ધ નથી.",
"drive.publicNotFound": "આ લિંક ઉપલબ્ધ નથી. તે બંધ કરવામાં આવી હોઈ શકે છે અથવા ફાઇલ કાઢી નાખવામાં આવી હોઈ શકે છે.",
"drive.sharedBy": "{name} દ્વારા શેર કરેલ",
- "drive.save": "સાચવો"
+ "drive.save": "સાચવો",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/ha.json b/public/locales/ha.json
index cc02ae2..4e5fba3 100644
--- a/public/locales/ha.json
+++ b/public/locales/ha.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "Babu samfoti na wannan nau'in fayil.",
"drive.publicNotFound": "Wannan hanyar haɗi ba ta samuwa. Wataƙila an kashe ta ko an cire fayil ɗin.",
"drive.sharedBy": "{name} ne ya raba",
- "drive.save": "Adana"
+ "drive.save": "Adana",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/hi.json b/public/locales/hi.json
index 87e1dbb..0ddc66f 100644
--- a/public/locales/hi.json
+++ b/public/locales/hi.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "इस फ़ाइल प्रकार के लिए पूर्वावलोकन उपलब्ध नहीं है।",
"drive.publicNotFound": "यह लिंक उपलब्ध नहीं है। हो सकता है इसे बंद कर दिया गया हो या फ़ाइल हटा दी गई हो।",
"drive.sharedBy": "{name} द्वारा साझा किया गया",
- "drive.save": "सहेजें"
+ "drive.save": "सहेजें",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/id.json b/public/locales/id.json
index 08d60a2..336cd45 100644
--- a/public/locales/id.json
+++ b/public/locales/id.json
@@ -1976,5 +1976,11 @@
"drive.noPreview": "Pratinjau tidak tersedia untuk jenis file ini.",
"drive.publicNotFound": "Tautan ini tidak tersedia. Mungkin telah dimatikan atau filenya telah dihapus.",
"drive.sharedBy": "Dibagikan oleh {name}",
- "drive.save": "Simpan"
+ "drive.save": "Simpan",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/it.json b/public/locales/it.json
index c1d1c2a..9fa10e4 100644
--- a/public/locales/it.json
+++ b/public/locales/it.json
@@ -2006,5 +2006,11 @@
"drive.noPreview": "Anteprima non disponibile per questo tipo di file.",
"drive.publicNotFound": "Questo link non è disponibile. Potrebbe essere stato disattivato o il file rimosso.",
"drive.sharedBy": "Condiviso da {name}",
- "drive.save": "Salva"
+ "drive.save": "Salva",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/ja.json b/public/locales/ja.json
index db7f8f8..f3649ca 100644
--- a/public/locales/ja.json
+++ b/public/locales/ja.json
@@ -1976,5 +1976,11 @@
"drive.noPreview": "このファイル形式はプレビューできません。",
"drive.publicNotFound": "このリンクは利用できません。無効になったか、ファイルが削除された可能性があります。",
"drive.sharedBy": "{name}さんが共有",
- "drive.save": "保存"
+ "drive.save": "保存",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/kn.json b/public/locales/kn.json
index 8ab5288..a96de76 100644
--- a/public/locales/kn.json
+++ b/public/locales/kn.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "ಈ ಫೈಲ್ ಪ್ರಕಾರಕ್ಕೆ ಪೂರ್ವವೀಕ್ಷಣೆ ಲಭ್ಯವಿಲ್ಲ.",
"drive.publicNotFound": "ಈ ಲಿಂಕ್ ಲಭ್ಯವಿಲ್ಲ. ಇದನ್ನು ಆಫ್ ಮಾಡಿರಬಹುದು ಅಥವಾ ಫೈಲ್ ತೆಗೆದುಹಾಕಿರಬಹುದು.",
"drive.sharedBy": "{name} ಹಂಚಿಕೊಂಡಿದ್ದಾರೆ",
- "drive.save": "ಉಳಿಸಿ"
+ "drive.save": "ಉಳಿಸಿ",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/ko.json b/public/locales/ko.json
index a637245..c0fe271 100644
--- a/public/locales/ko.json
+++ b/public/locales/ko.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "이 파일 형식은 미리볼 수 없습니다.",
"drive.publicNotFound": "이 링크를 사용할 수 없습니다. 링크가 꺼졌거나 파일이 삭제되었을 수 있습니다.",
"drive.sharedBy": "{name}님이 공유함",
- "drive.save": "저장"
+ "drive.save": "저장",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/ml.json b/public/locales/ml.json
index 448ff73..7db2270 100644
--- a/public/locales/ml.json
+++ b/public/locales/ml.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "ഈ ഫയൽ തരത്തിന് പ്രിവ്യൂ ലഭ്യമല്ല.",
"drive.publicNotFound": "ഈ ലിങ്ക് ലഭ്യമല്ല. ഇത് ഓഫാക്കിയിരിക്കാം അല്ലെങ്കിൽ ഫയൽ നീക്കം ചെയ്തിരിക്കാം.",
"drive.sharedBy": "{name} പങ്കിട്ടത്",
- "drive.save": "സംരക്ഷിക്കുക"
+ "drive.save": "സംരക്ഷിക്കുക",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/mr.json b/public/locales/mr.json
index 3292879..9e7c53c 100644
--- a/public/locales/mr.json
+++ b/public/locales/mr.json
@@ -1991,5 +1991,11 @@
"drive.sharedBy": "{name} यांनी शेअर केले",
"drive.save": "जतन करा",
"settings.account.generalTitle": "सामान्य",
- "settings.account.generalDescription": "तुमच्या खात्याची भाषा आणि वेळ क्षेत्र."
+ "settings.account.generalDescription": "तुमच्या खात्याची भाषा आणि वेळ क्षेत्र.",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/ms.json b/public/locales/ms.json
index 6611eb4..38d6f8e 100644
--- a/public/locales/ms.json
+++ b/public/locales/ms.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "Tiada pratonton tersedia untuk jenis fail ini.",
"drive.publicNotFound": "Pautan ini tidak tersedia. Pautan mungkin telah dimatikan atau fail telah dialih keluar.",
"drive.sharedBy": "Dikongsi oleh {name}",
- "drive.save": "Simpan"
+ "drive.save": "Simpan",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/nl.json b/public/locales/nl.json
index e82be0d..fe4895d 100644
--- a/public/locales/nl.json
+++ b/public/locales/nl.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "Geen voorbeeld beschikbaar voor dit bestandstype.",
"drive.publicNotFound": "Deze link is niet beschikbaar. Hij is mogelijk uitgeschakeld of het bestand is verwijderd.",
"drive.sharedBy": "Gedeeld door {name}",
- "drive.save": "Opslaan"
+ "drive.save": "Opslaan",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/pa.json b/public/locales/pa.json
index dfd7fd8..a2d0acc 100644
--- a/public/locales/pa.json
+++ b/public/locales/pa.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "ਇਸ ਫ਼ਾਈਲ ਕਿਸਮ ਲਈ ਕੋਈ ਝਲਕ ਉਪਲਬਧ ਨਹੀਂ।",
"drive.publicNotFound": "ਇਹ ਲਿੰਕ ਉਪਲਬਧ ਨਹੀਂ ਹੈ। ਇਹ ਬੰਦ ਕੀਤਾ ਗਿਆ ਹੋ ਸਕਦਾ ਹੈ ਜਾਂ ਫ਼ਾਈਲ ਹਟਾਈ ਗਈ ਹੋ ਸਕਦੀ ਹੈ।",
"drive.sharedBy": "{name} ਵੱਲੋਂ ਸਾਂਝਾ ਕੀਤਾ",
- "drive.save": "ਸੰਭਾਲੋ"
+ "drive.save": "ਸੰਭਾਲੋ",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/pl.json b/public/locales/pl.json
index 30df624..e0da157 100644
--- a/public/locales/pl.json
+++ b/public/locales/pl.json
@@ -2021,5 +2021,11 @@
"drive.noPreview": "Podgląd nie jest dostępny dla tego typu pliku.",
"drive.publicNotFound": "Ten link jest niedostępny. Mógł zostać wyłączony lub plik mógł zostać usunięty.",
"drive.sharedBy": "Udostępnił(a): {name}",
- "drive.save": "Zapisz"
+ "drive.save": "Zapisz",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/pt-BR.json b/public/locales/pt-BR.json
index 4ddaa02..a5b8615 100644
--- a/public/locales/pt-BR.json
+++ b/public/locales/pt-BR.json
@@ -2006,5 +2006,11 @@
"drive.noPreview": "Não há pré-visualização para este tipo de arquivo.",
"drive.publicNotFound": "Este link não está disponível. Ele pode ter sido desativado ou o arquivo pode ter sido removido.",
"drive.sharedBy": "Compartilhado por {name}",
- "drive.save": "Salvar"
+ "drive.save": "Salvar",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/pt-PT.json b/public/locales/pt-PT.json
index f730bed..7c47a21 100644
--- a/public/locales/pt-PT.json
+++ b/public/locales/pt-PT.json
@@ -2006,5 +2006,11 @@
"drive.noPreview": "Não há pré-visualização para este tipo de ficheiro.",
"drive.publicNotFound": "Esta ligação não está disponível. Pode ter sido desativado ou o ficheiro pode ter sido removido.",
"drive.sharedBy": "Partilhado por {name}",
- "drive.save": "Guardar"
+ "drive.save": "Guardar",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/ru.json b/public/locales/ru.json
index f1f1e9e..16b9da0 100644
--- a/public/locales/ru.json
+++ b/public/locales/ru.json
@@ -2021,5 +2021,11 @@
"drive.noPreview": "Для этого типа файлов просмотр недоступен.",
"drive.publicNotFound": "Эта ссылка недоступна. Возможно, она отключена или файл удалён.",
"drive.sharedBy": "Поделился(-ась): {name}",
- "drive.save": "Сохранить"
+ "drive.save": "Сохранить",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/si.json b/public/locales/si.json
index dd846fa..e89b065 100644
--- a/public/locales/si.json
+++ b/public/locales/si.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "මෙම ගොනු වර්ගය සඳහා පෙරදසුනක් නොමැත.",
"drive.publicNotFound": "මෙම සබැඳිය ලබාගත නොහැක. එය අක්‍රීය කර හෝ ගොනුව ඉවත් කර තිබිය හැක.",
"drive.sharedBy": "{name} විසින් බෙදාගන්නා ලදී",
- "drive.save": "සුරකින්න"
+ "drive.save": "සුරකින්න",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/sw.json b/public/locales/sw.json
index affd132..85889a0 100644
--- a/public/locales/sw.json
+++ b/public/locales/sw.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "Hakuna hakiki kwa aina hii ya faili.",
"drive.publicNotFound": "Kiungo hiki hakipatikani. Huenda kimezimwa au faili imeondolewa.",
"drive.sharedBy": "Imeshirikiwa na {name}",
- "drive.save": "Hifadhi"
+ "drive.save": "Hifadhi",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/ta.json b/public/locales/ta.json
index db9488b..7a71a79 100644
--- a/public/locales/ta.json
+++ b/public/locales/ta.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "இந்தக் கோப்பு வகைக்கு முன்னோட்டம் இல்லை.",
"drive.publicNotFound": "இந்த இணைப்பு கிடைக்கவில்லை. அது முடக்கப்பட்டிருக்கலாம் அல்லது கோப்பு அகற்றப்பட்டிருக்கலாம்.",
"drive.sharedBy": "{name} பகிர்ந்தது",
- "drive.save": "சேமி"
+ "drive.save": "சேமி",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/te.json b/public/locales/te.json
index 060082a..efacb28 100644
--- a/public/locales/te.json
+++ b/public/locales/te.json
@@ -1991,5 +1991,11 @@
"drive.sharedBy": "{name} షేర్ చేశారు",
"drive.save": "సేవ్ చేయండి",
"settings.account.generalTitle": "సాధారణం",
- "settings.account.generalDescription": "మీ ఖాతా భాష మరియు సమయ మండలం."
+ "settings.account.generalDescription": "మీ ఖాతా భాష మరియు సమయ మండలం.",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/th.json b/public/locales/th.json
index d333965..10f70e7 100644
--- a/public/locales/th.json
+++ b/public/locales/th.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "ไม่มีตัวอย่างสำหรับไฟล์ประเภทนี้",
"drive.publicNotFound": "ลิงก์นี้ไม่พร้อมใช้งาน อาจถูกปิดหรือไฟล์ถูกลบไปแล้ว",
"drive.sharedBy": "แชร์โดย {name}",
- "drive.save": "บันทึก"
+ "drive.save": "บันทึก",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/tr.json b/public/locales/tr.json
index 78ce4ad..d2517ee 100644
--- a/public/locales/tr.json
+++ b/public/locales/tr.json
@@ -1991,5 +1991,11 @@
"drive.noPreview": "Bu dosya türü için önizleme yok.",
"drive.publicNotFound": "Bu bağlantı kullanılamıyor. Kapatılmış veya dosya kaldırılmış olabilir.",
"drive.sharedBy": "Paylaşan: {name}",
- "drive.save": "Kaydet"
+ "drive.save": "Kaydet",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/uk.json b/public/locales/uk.json
index 6a44d9f..737c0ca 100644
--- a/public/locales/uk.json
+++ b/public/locales/uk.json
@@ -2021,5 +2021,11 @@
"drive.noPreview": "Для цього типу файлу попередній перегляд недоступний.",
"drive.publicNotFound": "Це посилання недоступне. Можливо, його вимкнено або файл видалено.",
"drive.sharedBy": "Поділився {name}",
- "drive.save": "Зберегти"
+ "drive.save": "Зберегти",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/ur.json b/public/locales/ur.json
index 47d28df..a6eb806 100644
--- a/public/locales/ur.json
+++ b/public/locales/ur.json
@@ -1991,5 +1991,11 @@
"drive.sharedBy": "{name} نے شیئر کیا",
"drive.save": "محفوظ کریں",
"settings.account.generalTitle": "عمومی",
- "settings.account.generalDescription": "آپ کے اکاؤنٹ کی زبان اور ٹائم زون۔"
+ "settings.account.generalDescription": "آپ کے اکاؤنٹ کی زبان اور ٹائم زون۔",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/vi.json b/public/locales/vi.json
index 0852482..e6f9cb0 100644
--- a/public/locales/vi.json
+++ b/public/locales/vi.json
@@ -1976,5 +1976,11 @@
"drive.noPreview": "Không có bản xem trước cho loại tệp này.",
"drive.publicNotFound": "Liên kết này không khả dụng. Có thể nó đã bị tắt hoặc tệp đã bị xóa.",
"drive.sharedBy": "Được chia sẻ bởi {name}",
- "drive.save": "Lưu"
+ "drive.save": "Lưu",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/public/locales/zh-CN.json b/public/locales/zh-CN.json
index 62d0c81..e4f4cec 100644
--- a/public/locales/zh-CN.json
+++ b/public/locales/zh-CN.json
@@ -1976,5 +1976,11 @@
"drive.noPreview": "此文件类型无法预览。",
"drive.publicNotFound": "此链接不可用。它可能已被关闭,或文件已被删除。",
"drive.sharedBy": "由 {name} 共享",
- "drive.save": "保存"
+ "drive.save": "保存",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up"
}
diff --git a/src/app/(admin)/domains/DomainDnsDetails.tsx b/src/app/(admin)/domains/DomainDnsDetails.tsx
index 3d5960a..79bfcdd 100644
--- a/src/app/(admin)/domains/DomainDnsDetails.tsx
+++ b/src/app/(admin)/domains/DomainDnsDetails.tsx
@@ -23,7 +23,7 @@ export default function DomainDnsDetails({
}: DomainDnsDetailsProps) {
const { t } = useLanguage();
const audit = dns.audit;
- const manual = domain.zoneId === "manual";
+ const manual = domain.zoneId === "manual" && !domain.dnsSkipped;
const subdomain = dns.sendingSubdomain;
const sendingOk = subdomain ? dns.sendingEnabled : manual && domain.sendingEnabled;
const sendingLabel = subdomain
diff --git a/src/app/(admin)/domains/page.tsx b/src/app/(admin)/domains/page.tsx
index 5c87ebe..1f04acd 100644
--- a/src/app/(admin)/domains/page.tsx
+++ b/src/app/(admin)/domains/page.tsx
@@ -15,6 +15,7 @@ import {
} from "@/components/ui/dialog";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
+import { Switch } from "@/components/ui/switch";
import { List } from "@/components/ui/list";
import { CheckCircle2, LoaderCircle, Plus } from "lucide-react";
import { authFetch } from "@/lib/auth/client";
@@ -36,6 +37,7 @@ export default function DomainsPage() {
const managesDns = me?.managesDns ?? true;
const [domainCheck, setDomainCheck] = useState<DomainPreflight | null>(null);
const [domainChecking, setDomainChecking] = useState(false);
+ const [skipDns, setSkipDns] = useState(false);
const [sendingProvider, setSendingProvider] = useState<SendingProvider>("cloudflare");
const [receivingProvider, setReceivingProvider] = useState<ReceivingProvider>("cloudflare");
const [domainCheckError, setDomainCheckError] = useState<string | null>(null);
@@ -63,7 +65,9 @@ export default function DomainsPage() {
mutationFn: async () => {
const normalized = hostname.toLowerCase().trim();
let checkedDomain = domainCheck;
- if (checkedDomain?.hostname !== normalized) {
+ if (skipDns) {
+ checkedDomain = { hostname: normalized, zone: { id: "manual", name: normalized } };
+ } else if (checkedDomain?.hostname !== normalized) {
const result = await checkDomain(normalized);
if (!result.ok || !result.domain) {
throw new Error(result.error ?? t("onboarding.domainCheckFailed"));
@@ -79,6 +83,7 @@ export default function DomainsPage() {
body: JSON.stringify({
hostname: checkedDomain.hostname,
enableRouting: true,
+ skipDns,
sendingProvider,
receivingProvider,
}),
@@ -90,6 +95,7 @@ export default function DomainsPage() {
onSuccess: () => {
setHostname("");
setDomainCheck(null);
+ setSkipDns(false);
setSendingProvider("cloudflare");
setReceivingProvider("cloudflare");
setDomainCheckError(null);
@@ -258,7 +264,7 @@ export default function DomainsPage() {
const inspectDomain = async () => {
const normalized = hostname.toLowerCase().trim();
- if (normalized.length < 3 || domainCheck?.hostname === normalized) return;
+ if (skipDns || normalized.length < 3 || domainCheck?.hostname === normalized) return;
setDomainChecking(true);
setDomainCheckError(null);
@@ -314,6 +320,24 @@ export default function DomainsPage() {
placeholder="example.com"
/>
</div>
+ <div className="flex items-center justify-between gap-4 rounded-xl bg-neutral-50 px-4 py-3">
+ <div>
+ <Label htmlFor="skip-dns">{t("setup.skipDns")}</Label>
+ <p className="mt-1 text-xs leading-5 text-neutral-500">
+ {skipDns ? t("setup.skipDnsOn") : t("setup.skipDnsHint")}
+ </p>
+ </div>
+ <Switch
+ id="skip-dns"
+ checked={skipDns}
+ onCheckedChange={(checked) => {
+ setSkipDns(checked);
+ setDomainCheckError(null);
+ }}
+ />
+ </div>
+ {!skipDns && (
+ <>
<div className="flex items-center justify-between gap-4 rounded-xl bg-neutral-50 px-4 py-3">
<div>
<Label htmlFor="receiving-provider">{t("domains.receiveWith")}</Label>
@@ -363,7 +387,9 @@ export default function DomainsPage() {
<option value="none">{t("domains.notSelected")}</option>
</select>
</div>
- {domainCheck && (
+ </>
+ )}
+ {domainCheck && !skipDns && (
<div className="flex items-center gap-3 rounded-xl bg-green-50 px-4 py-3 text-sm text-green-700">
<CheckCircle2 className="h-4 w-4" />
{t("setup.domainFound", { zone: domainCheck.zone.name })}
diff --git a/src/app/(admin)/domains/types.d.ts b/src/app/(admin)/domains/types.d.ts
index b19e9c7..207a690 100644
--- a/src/app/(admin)/domains/types.d.ts
+++ b/src/app/(admin)/domains/types.d.ts
@@ -11,6 +11,8 @@ export type Domain = {
sendingProvider: SendingProvider;
receivingProvider: ReceivingProvider;
zoneId: string;
+ /** Added with DNS skipped: the Cloudflare zone is attached on first setup. */
+ dnsSkipped?: boolean;
};
export type DomainPreflight = {
diff --git a/src/app/(auth)/onboarding/onboarding-client.tsx b/src/app/(auth)/onboarding/onboarding-client.tsx
index 6ca1401..040d9e2 100644
--- a/src/app/(auth)/onboarding/onboarding-client.tsx
+++ b/src/app/(auth)/onboarding/onboarding-client.tsx
@@ -20,6 +20,7 @@ export function OnboardingClient() {
const [domainCheck, setDomainCheck] = useState<DomainPreflight | null>(null);
const [domainChecking, setDomainChecking] = useState(false);
const [enableSending, setEnableSending] = useState(false);
+ const [skipDns, setSkipDns] = useState(false);
const [domainId, setDomainId] = useState("");
const [localPart, setLocalPart] = useState("me");
const [error, setError] = useState<string | null>(null);
@@ -45,7 +46,9 @@ export function OnboardingClient() {
const normalized = hostname.toLowerCase().trim();
let checkedDomain = domainCheck;
let sendingRequested = enableSending;
- if (checkedDomain?.hostname !== normalized) {
+ if (skipDns) {
+ checkedDomain = { hostname: normalized, zone: { id: "manual", name: normalized } };
+ } else if (checkedDomain?.hostname !== normalized) {
const result = await checkDomain(normalized);
if (!result.ok || !result.domain) {
setLoading(false);
@@ -63,7 +66,7 @@ export function OnboardingClient() {
return;
}
- const { ok, data } = await createDomain(checkedDomain.hostname, sendingRequested, replaceMxRecords);
+ const { ok, data } = await createDomain(checkedDomain.hostname, skipDns ? true : sendingRequested, replaceMxRecords, skipDns);
setLoading(false);
if (!ok || !data.domain) {
if (data.code === "MX_RECORDS_CONFLICT") {
@@ -81,7 +84,7 @@ export function OnboardingClient() {
async function inspectDomain() {
const normalized = hostname.toLowerCase().trim();
- if (normalized.length < 3 || domainCheck?.hostname === normalized) return;
+ if (skipDns || normalized.length < 3 || domainCheck?.hostname === normalized) return;
setDomainChecking(true);
setError(null);
@@ -155,6 +158,24 @@ export function OnboardingClient() {
placeholder="example.com"
/>
</div>
+ <div className="flex items-center justify-between gap-4 rounded-2xl bg-neutral-50 px-4 py-3">
+ <div>
+ <Label htmlFor="onboarding-skip-dns">{t("setup.skipDns")}</Label>
+ <p className="mt-1 text-xs leading-5 text-neutral-500">
+ {skipDns ? t("setup.skipDnsOn") : t("setup.skipDnsHint")}
+ </p>
+ </div>
+ <Switch
+ id="onboarding-skip-dns"
+ checked={skipDns}
+ onCheckedChange={(checked) => {
+ setSkipDns(checked);
+ setMxConflict(false);
+ setError(null);
+ }}
+ />
+ </div>
+ {!skipDns && (
<div className="flex items-center justify-between gap-4 rounded-2xl bg-neutral-50 px-4 py-3">
<div>
<Label htmlFor="onboarding-enable-sending">{t("setup.enableSending")}</Label>
@@ -175,11 +196,12 @@ export function OnboardingClient() {
id="onboarding-enable-sending"
checked={enableSending}
onCheckedChange={setEnableSending}
- disabled={!domainCheck}
+ disabled={!domainCheck || skipDns}
/>
)}
</div>
- {domainCheck && (
+ )}
+ {domainCheck && !skipDns && (
<div className="flex items-center gap-3 rounded-2xl bg-green-50 px-4 py-3 text-sm text-green-700">
<CheckCircle2 className="h-4 w-4" />
{t("setup.domainFound", { zone: domainCheck.zone.name })}
diff --git a/src/app/(auth)/onboarding/utils.ts b/src/app/(auth)/onboarding/utils.ts
index 839a2c4..2c65b04 100644
--- a/src/app/(auth)/onboarding/utils.ts
+++ b/src/app/(auth)/onboarding/utils.ts
@@ -25,11 +25,12 @@ export async function createDomain(
hostname: string,
enableSending: boolean,
replaceMxRecords = false,
+ skipDns = false,
): Promise<{ ok: boolean; data: DomainCreateResult }> {
const res = await authFetch("/api/domains", {
method: "POST",
headers: { "Content-Type": "application/json" },
- body: JSON.stringify({ hostname, enableRouting: true, enableSending, replaceMxRecords }),
+ body: JSON.stringify({ hostname, enableRouting: true, enableSending, replaceMxRecords, skipDns }),
});
return {
diff --git a/src/app/(auth)/register/register-client.tsx b/src/app/(auth)/register/register-client.tsx
index 065296c..230b985 100644
--- a/src/app/(auth)/register/register-client.tsx
+++ b/src/app/(auth)/register/register-client.tsx
@@ -35,6 +35,8 @@ export function RegisterClient() {
const [domainChecking, setDomainChecking] = useState(false);
const [enableSending, setEnableSending] = useState(false);
const [setupEnableSending, setSetupEnableSending] = useState(false);
+ const [skipDns, setSkipDns] = useState(false);
+ const [setupSkipDns, setSetupSkipDns] = useState(false);
const [step, setStep] = useState<1 | 2 | 3>(1);
const [checks, setChecks] = useState<SetupRequirementCheck[]>([]);
const [databaseMigrated, setDatabaseMigrated] = useState(false);
@@ -55,6 +57,14 @@ export function RegisterClient() {
useEffect(() => {
if (step !== 3 || !accountDomain) return;
+ if (setupSkipDns) {
+ // DNS is skipped, so there is nothing on the zone to check.
+ setMxChecking(false);
+ setMxRecordsExist(false);
+ setReplaceMxRecords(false);
+ setError(null);
+ return;
+ }
let active = true;
setMxChecking(true);
@@ -81,7 +91,7 @@ export function RegisterClient() {
return () => {
active = false;
};
- }, [step, accountDomain, mxCheckRevision, t]);
+ }, [step, accountDomain, mxCheckRevision, setupSkipDns, t]);
async function runPreparation() {
setLoading(true);
@@ -116,6 +126,15 @@ export function RegisterClient() {
setError(null);
const hostname = String(new FormData(e.currentTarget).get("domain") ?? "").toLowerCase().trim();
+ if (skipDns) {
+ setLoading(false);
+ setSetupDomain(hostname);
+ setSetupEnableSending(true);
+ setSetupSkipDns(true);
+ setStep(3);
+ return;
+ }
+ setSetupSkipDns(false);
const usedCachedCheck = domainCheck?.hostname === hostname;
const result: { ok: boolean; data: DomainSetupResult } = usedCachedCheck
? { ok: true, data: { domain: domainCheck } }
@@ -135,7 +154,7 @@ export function RegisterClient() {
async function onDomainBlur(e: React.FocusEvent<HTMLInputElement>) {
const hostname = e.currentTarget.value.toLowerCase().trim();
- if (hostname.length < 3 || domainCheck?.hostname === hostname) return;
+ if (skipDns || hostname.length < 3 || domainCheck?.hostname === hostname) return;
setDomainChecking(true);
setError(null);
@@ -172,6 +191,7 @@ export function RegisterClient() {
? setupEnableSending
: primaryDomainSendingRequested ?? undefined,
replaceMxRecords,
+ skipDns: setupDomain ? setupSkipDns : undefined,
});
setLoading(false);
if (!ok) {
@@ -320,6 +340,23 @@ export function RegisterClient() {
{t("setup.zoneHint")}
</p>
</div>
+ <div className="flex items-center justify-between gap-4 rounded-2xl bg-neutral-50 px-4 py-3">
+ <div>
+ <Label htmlFor="setup-skip-dns">{t("setup.skipDns")}</Label>
+ <p className="mt-1 text-xs leading-5 text-neutral-500">
+ {skipDns ? t("setup.skipDnsOn") : t("setup.skipDnsHint")}
+ </p>
+ </div>
+ <Switch
+ id="setup-skip-dns"
+ checked={skipDns}
+ onCheckedChange={(checked) => {
+ setSkipDns(checked);
+ setError(null);
+ }}
+ />
+ </div>
+ {!skipDns && (
<div className="flex items-center justify-between gap-4 rounded-2xl bg-neutral-50 px-4 py-3">
<div>
<Label htmlFor="setup-enable-sending">{t("setup.enableSending")}</Label>
@@ -337,10 +374,11 @@ export function RegisterClient() {
id="setup-enable-sending"
checked={enableSending}
onCheckedChange={setEnableSending}
- disabled={domainChecking || !domainCheck}
+ disabled={domainChecking || !domainCheck || skipDns}
/>
</div>
- {domainCheck && (
+ )}
+ {domainCheck && !skipDns && (
<div className="flex items-center gap-3 rounded-2xl bg-green-50 px-4 py-3 text-sm text-green-700">
<CheckCircle2 className="h-4 w-4" />
{t("setup.domainFound", { zone: domainCheck.zone.name })}
diff --git a/src/app/(auth)/register/utils.ts b/src/app/(auth)/register/utils.ts
index a55008f..f17689d 100644
--- a/src/app/(auth)/register/utils.ts
+++ b/src/app/(auth)/register/utils.ts
@@ -50,7 +50,7 @@ export async function checkExistingMx(hostname: string): Promise<{ ok: boolean;
export async function submitRegistration(
form: FormData,
- payload: { firstRun: boolean; domain: string; enableSending?: boolean; replaceMxRecords?: boolean },
+ payload: { firstRun: boolean; domain: string; enableSending?: boolean; replaceMxRecords?: boolean; skipDns?: boolean },
): Promise<{ ok: boolean; data: RegisterResult }> {
const res = await fetch("/api/auth/register", {
method: "POST",
@@ -61,6 +61,7 @@ export async function submitRegistration(
domain: payload.domain,
enableSending: payload.enableSending,
replaceMxRecords: payload.replaceMxRecords,
+ skipDns: payload.skipDns,
username: form.get("username"),
password: form.get("password"),
resetEmail: form.get("resetEmail"),
diff --git a/src/app/(dashboard)/layout.tsx b/src/app/(dashboard)/layout.tsx
index ded5fa1..abcca57 100644
--- a/src/app/(dashboard)/layout.tsx
+++ b/src/app/(dashboard)/layout.tsx
@@ -14,6 +14,7 @@ import { MailboxSelector } from "@/components/mailbox-selector";
import { AgentPanel } from "@/components/agent/agent-panel";
import { AssistantOpenContext } from "@/components/agent/assistant-open-state";
import { Button } from "@/components/ui/button";
+import { DnsSkippedBanner } from "@/components/dns-skipped-banner";
import { LicenseIndicator } from "@/components/license-indicator";
import { DashboardNav } from "@/components/dashboard-nav";
import { SidebarProvider } from "@/components/sidebar-state";
@@ -75,6 +76,7 @@ export default function DashboardLayout({
{assistantEnabled && <Button type="button" variant="ghost" size="sm" className={assistantOpen ? "bg-blue-50 text-blue-700" : "text-neutral-600"} onClick={() => { setAssistantOpen((current) => !current); setAssistantFullSize(false); }} aria-label={assistantOpen ? t("agent.assistant.close") : t("agent.assistant.open")} aria-expanded={assistantOpen} aria-controls="email-assistant-panel"><Sparkles className="h-5 w-5" /></Button>}
<MailboxSelector />
</header>
+ <DnsSkippedBanner />
<div className="flex min-h-0 min-w-0 flex-1 overflow-hidden">
<AssistantOpenContext.Provider value={assistantVisible}>
<main id="main-content" tabIndex={-1} className="focus:outline-none min-h-0 min-w-0 flex-1 overflow-y-auto rounded-t-3xl bg-white overscroll-contain scrollbar-gutter-stable" aria-hidden={assistantVisible && assistantFullSize} inert={assistantVisible && assistantFullSize}>
diff --git a/src/app/api/auth/register/route.ts b/src/app/api/auth/register/route.ts
index 4bd3aa9..8f6a938 100644
--- a/src/app/api/auth/register/route.ts
+++ b/src/app/api/auth/register/route.ts
@@ -75,6 +75,7 @@ export async function POST(request: Request) {
enableRouting: true,
enableSending: firstRunParsed.data.enableSending ?? true,
replaceMxRecords: firstRunParsed.data.replaceMxRecords,
+ skipDns: firstRunParsed.data.skipDns,
});
const domain = added.domain;
changes = added.changes;
diff --git a/src/app/api/domains/[id]/dns/setup/route.ts b/src/app/api/domains/[id]/dns/setup/route.ts
index 789a468..cd97fb5 100644
--- a/src/app/api/domains/[id]/dns/setup/route.ts
+++ b/src/app/api/domains/[id]/dns/setup/route.ts
@@ -8,6 +8,7 @@ import { canManageDomains } from "@/lib/auth/admin";
import { getDomainForUser } from "@/lib/domains/service";
import { getDomainDnsView } from "@/lib/domains/dns-view";
import type { DnsAuthRecord } from "@/lib/domains/dns-audit";
+import { adoptCloudflareZone } from "@/lib/domains/adopt-zone";
import { setupDomainDnsRecord } from "@/lib/domains/dns-setup";
import { MxConflictError } from "@/lib/domains/receiving-dns";
import { hasValidSessionMutationOrigin } from "@/lib/auth/origin";
@@ -22,7 +23,7 @@ export async function POST(request: Request, { params }: Params) {
const user = await requireUser(env, request);
if (!canManageDomains(user)) return NextResponse.json({ error: "Forbidden" }, { status: 403 });
if (!hasValidSessionMutationOrigin(request)) return NextResponse.json({ error: "Invalid origin" }, { status: 403 });
- const domain = await getDomainForUser(env, user.id, id);
+ let domain = await getDomainForUser(env, user.id, id);
if (!domain) return NextResponse.json({ error: "Not found" }, { status: 404 });
const body = (await request.json().catch(() => ({}))) as { record?: string; replaceMx?: boolean };
@@ -32,6 +33,8 @@ export async function POST(request: Request, { params }: Params) {
}
try {
+ // A domain added with DNS skipped gets its real zone on the first setup.
+ domain = await adoptCloudflareZone(env, domain);
await setupDomainDnsRecord(env, domain, record, { replaceMx: body.replaceMx === true });
const dns = await getDomainDnsView(env, domain);
const [updated] = await getDb(env)
diff --git a/src/app/api/domains/[id]/route.ts b/src/app/api/domains/[id]/route.ts
index 2765f92..b95b3d7 100644
--- a/src/app/api/domains/[id]/route.ts
+++ b/src/app/api/domains/[id]/route.ts
@@ -1,4 +1,7 @@
import { NextResponse } from "next/server";
+import { eq } from "drizzle-orm";
+import { getDb } from "@/db";
+import { domains } from "@/db/schema";
import { getEnv } from "@/lib/cloudflare";
import { requireUser } from "@/lib/auth/cookies";
import { canManageDomains } from "@/lib/auth/admin";
@@ -16,6 +19,23 @@ export async function GET(request: Request, { params }: Params) {
return NextResponse.json({ domain });
}
+/** Clears the "DNS skipped" warning once the operator has set the records themselves. */
+export async function PATCH(request: Request, { params }: Params) {
+ const { id } = await params;
+ const env = getEnv();
+ const user = await requireUser(env, request);
+ if (!canManageDomains(user)) return NextResponse.json({ error: "Forbidden" }, { status: 403 });
+ if (!hasValidSessionMutationOrigin(request)) return NextResponse.json({ error: "Invalid origin" }, { status: 403 });
+ const body = (await request.json().catch(() => null)) as { dnsSkipped?: unknown } | null;
+ if (typeof body?.dnsSkipped !== "boolean") {
+ return NextResponse.json({ error: "dnsSkipped must be a boolean" }, { status: 400 });
+ }
+ const domain = await getDomainForUser(env, user.id, id);
+ if (!domain) return NextResponse.json({ error: "Not found" }, { status: 404 });
+ await getDb(env).update(domains).set({ dnsSkipped: body.dnsSkipped }).where(eq(domains.id, id));
+ return NextResponse.json({ domain: { ...domain, dnsSkipped: body.dnsSkipped } });
+}
+
export async function DELETE(request: Request, { params }: Params) {
const { id } = await params;
const env = getEnv();
diff --git a/src/app/api/domains/[id]/sending/route.ts b/src/app/api/domains/[id]/sending/route.ts
index 8dff0ce..23910f8 100644
--- a/src/app/api/domains/[id]/sending/route.ts
+++ b/src/app/api/domains/[id]/sending/route.ts
@@ -8,6 +8,7 @@ import { requireUser } from "@/lib/auth/cookies";
import { canManageDomains } from "@/lib/auth/admin";
import { hasValidSessionMutationOrigin } from "@/lib/auth/origin";
import { getDomainForUser } from "@/lib/domains/service";
+import { adoptCloudflareZone } from "@/lib/domains/adopt-zone";
import { isManualZone } from "@/lib/domains/provision";
import { findCloudflareSending, removeCloudflareSending } from "@/lib/domains/cloudflare-sending";
import { getAwsConfig } from "@/lib/aws/config";
@@ -32,12 +33,18 @@ export async function PUT(request: Request, { params }: Params) {
const user = await requireUser(env, request);
if (!canManageDomains(user)) return NextResponse.json({ error: "Forbidden" }, { status: 403 });
if (!hasValidSessionMutationOrigin(request)) return NextResponse.json({ error: "Invalid origin" }, { status: 403 });
- const domain = await getDomainForUser(env, user.id, id);
+ let domain = await getDomainForUser(env, user.id, id);
if (!domain) return NextResponse.json({ error: "Not found" }, { status: 404 });
const parsed = schema.safeParse(await request.json().catch(() => null));
if (!parsed.success) return NextResponse.json({ error: "Unknown sending provider" }, { status: 400 });
const { provider, replaceMx } = parsed.data;
+ if (provider === "cloudflare" && isManualZone(domain.zoneId)) {
+ // DNS was skipped when the domain was added: attach the real zone before enabling.
+ try { domain = await adoptCloudflareZone(env, domain); }
+ catch (error) { return NextResponse.json({ error: error instanceof Error ? error.message : "Could not find the Cloudflare zone" }, { status: 502 }); }
+ }
+
await getDb(env)
.update(domains)
.set({ sendingProvider: provider, sendingRequested: provider === "cloudflare" ? true : domain.sendingRequested })
diff --git a/src/app/api/domains/route.ts b/src/app/api/domains/route.ts
index 4d0e114..4643035 100644
--- a/src/app/api/domains/route.ts
+++ b/src/app/api/domains/route.ts
@@ -57,6 +57,7 @@ export async function POST(request: Request) {
enableRouting: parsed.data.enableRouting,
enableSending: parsed.data.enableSending,
replaceMxRecords: parsed.data.replaceMxRecords,
+ skipDns: parsed.data.skipDns,
receivingProvider: parsed.data.receivingProvider,
sendingProvider: parsed.data.sendingProvider,
});
diff --git a/src/components/dns-skipped-banner.tsx b/src/components/dns-skipped-banner.tsx
new file mode 100644
index 0000000..53bc94c
--- /dev/null
+++ b/src/components/dns-skipped-banner.tsx
@@ -0,0 +1,67 @@
+"use client";
+
+import Link from "next/link";
+import { useCallback, useEffect, useState } from "react";
+import { AlertTriangle } from "lucide-react";
+import { authFetch } from "@/lib/auth/client";
+import { useCurrentUser } from "@/hooks/use-current-user";
+import { useLanguage } from "@/components/language-provider";
+import { Button } from "@/components/ui/button";
+
+type SkippedDomain = { id: string; hostname: string; dnsSkipped?: boolean };
+
+export function DnsSkippedBanner() {
+ const { t } = useLanguage();
+ const user = useCurrentUser();
+ const [domains, setDomains] = useState<SkippedDomain[]>([]);
+ const [busy, setBusy] = useState(false);
+
+ const load = useCallback(async () => {
+ try {
+ const res = await authFetch("/api/domains", { redirectOnUnauthorized: false });
+ if (!res.ok) return;
+ const data = (await res.json()) as { domains?: SkippedDomain[] };
+ setDomains((data.domains ?? []).filter((domain) => domain.dnsSkipped));
+ } catch {
+ // The banner is advisory; a failed read just hides it.
+ }
+ }, []);
+
+ useEffect(() => {
+ void load();
+ }, [load]);
+
+ if (domains.length === 0) return null;
+ const canManage = !!user && (user.isPrimaryAdmin || (user.role === "admin" && user.canManageDomains));
+
+ async function markDone() {
+ setBusy(true);
+ try {
+ await Promise.all(
+ domains.map((domain) =>
+ authFetch(`/api/domains/${domain.id}`, {
+ method: "PATCH",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ dnsSkipped: false }),
+ }),
+ ),
+ );
+ } finally {
+ setBusy(false);
+ await load();
+ }
+ }
+
+ return (
+ <div role="status" className="mx-2 mb-2 flex flex-wrap items-center gap-x-3 gap-y-2 rounded-2xl border border-amber-200 bg-amber-50 px-4 py-2.5 text-sm text-amber-900">
+ <AlertTriangle className="h-4 w-4 shrink-0" />
+ <p className="min-w-0 flex-1">{t("dnsSkipped.warning", { domains: domains.map((domain) => domain.hostname).join(", ") })}</p>
+ {canManage && (
+ <>
+ <Link href="/domains" className="font-semibold underline underline-offset-2">{t("dnsSkipped.review")}</Link>
+ <Button type="button" size="sm" variant="outline" disabled={busy} onClick={() => void markDone()}>{t("dnsSkipped.markDone")}</Button>
+ </>
+ )}
+ </div>
+ );
+}
diff --git a/src/db/schema/index.ts b/src/db/schema/index.ts
index 7b8adaa..d1d141f 100644
--- a/src/db/schema/index.ts
+++ b/src/db/schema/index.ts
@@ -63,6 +63,8 @@ export const domains = sqliteTable(
sendingRequested: integer("sending_requested", { mode: "boolean" }).notNull().default(false),
sendingEnabled: integer("sending_enabled", { mode: "boolean" }).notNull().default(false),
routingEnabled: integer("routing_enabled", { mode: "boolean" }).notNull().default(false),
+ /** The operator skipped adding/checking DNS; set until they confirm the records exist. */
+ dnsSkipped: integer("dns_skipped", { mode: "boolean" }).notNull().default(false),
createdAt: integer("created_at", { mode: "timestamp" })
.notNull()
.$defaultFn(() => new Date()),
diff --git a/src/lib/domains/adopt-zone.ts b/src/lib/domains/adopt-zone.ts
new file mode 100644
index 0000000..37bd893
--- /dev/null
+++ b/src/lib/domains/adopt-zone.ts
@@ -0,0 +1,27 @@
+import { and, eq, ne } from "drizzle-orm";
+import { getDb } from "@/db";
+import { domains } from "@/db/schema";
+import { isManualZone } from "@/lib/domains/provision";
+import { preflightDomain } from "@/lib/domains/preflight";
+import type { DomainRow } from "@/lib/domains/types";
+import { hasCloudflareCredentials } from "@/lib/runtime";
+
+/**
+ * A domain added with DNS skipped has the "manual" zone, which every Cloudflare
+ * call ignores. Choosing Cloudflare sending or receiving later swaps in the real
+ * zone so the usual setup can run. Returns the row unchanged when it already has
+ * one, or when there are no Cloudflare credentials to look the zone up with.
+ */
+export async function adoptCloudflareZone(env: CloudflareEnv, domain: DomainRow): Promise<DomainRow> {
+ if (!isManualZone(domain.zoneId) || !hasCloudflareCredentials(env)) return domain;
+ const { zone } = await preflightDomain(env, domain.hostname);
+ const db = getDb(env);
+ const [claimed] = await db
+ .select({ id: domains.id })
+ .from(domains)
+ .where(and(eq(domains.zoneId, zone.id), ne(domains.userId, domain.userId)))
+ .limit(1);
+ if (claimed) throw new Error("Cloudflare zone is already registered to another account");
+ await db.update(domains).set({ zoneId: zone.id }).where(eq(domains.id, domain.id));
+ return { ...domain, zoneId: zone.id };
+}
diff --git a/src/lib/domains/provision.ts b/src/lib/domains/provision.ts
index bb91d09..c47ace4 100644
--- a/src/lib/domains/provision.ts
+++ b/src/lib/domains/provision.ts
@@ -35,11 +35,12 @@ export function isManualZone(zoneId: string | null | undefined): boolean {
export async function provisionDomainOnCloudflare(
env: CloudflareEnv,
hostname: string,
- options?: { enableRouting?: boolean; enableSending?: boolean; replaceMxRecords?: boolean },
+ options?: { enableRouting?: boolean; enableSending?: boolean; replaceMxRecords?: boolean; skipDns?: boolean },
): Promise<DomainProvisioningResult> {
const normalized = hostname.toLowerCase().trim();
- if (!hasCloudflareCredentials(env)) {
- // Nothing to provision: the operator points MX at this server themselves.
+ if (options?.skipDns || !hasCloudflareCredentials(env)) {
+ // Nothing to provision: the operator points MX at this server themselves,
+ // or chose to skip DNS for now.
return {
hostname: normalized,
zone: { id: MANUAL_ZONE_ID, name: normalized },
diff --git a/src/lib/domains/receiving.ts b/src/lib/domains/receiving.ts
index 328aba4..5099e1b 100644
--- a/src/lib/domains/receiving.ts
+++ b/src/lib/domains/receiving.ts
@@ -6,6 +6,7 @@ import { deleteDnsRecord } from "@/lib/cloudflare-dns";
import { deleteEmailRoutingRulesForDomain } from "@/lib/domains/cloudflare-cleanup";
import { removeMxRecords } from "@/lib/domains/mx-records";
import { setupDomainDnsRecord } from "@/lib/domains/dns-setup";
+import { adoptCloudflareZone } from "@/lib/domains/adopt-zone";
import { isManualZone } from "@/lib/domains/provision";
import { listDomainMx, MxConflictError } from "@/lib/domains/receiving-dns";
import { removeResendReceiving, setupResendReceiving, hasResendReceivingConfig } from "@/lib/domains/resend-receiving";
@@ -19,7 +20,8 @@ export type ConfigurableReceiving = Exclude<ReceivingProviderId, "none">;
const isCloudflareMx = (content: string) => content.toLowerCase().replace(/\.$/, "").endsWith(".mx.cloudflare.net");
/** Email Routing on the zone, the MX and the Worker routes for this domain's mailboxes. */
-export async function setupCloudflareReceiving(env: CloudflareEnv, domain: DomainRow, options: { replaceMx: boolean }): Promise<void> {
+export async function setupCloudflareReceiving(env: CloudflareEnv, skippedDomain: DomainRow, options: { replaceMx: boolean }): Promise<void> {
+ const domain = await adoptCloudflareZone(env, skippedDomain);
if (isManualZone(domain.zoneId)) throw new Error("Cloudflare Email Routing needs a domain on a Cloudflare zone");
const foreign = (await listDomainMx(env, domain)).filter((record) => !isCloudflareMx(record.content ?? ""));
if (foreign.length > 0 && !options.replaceMx) {
diff --git a/src/lib/domains/service.ts b/src/lib/domains/service.ts
index e8e305f..75e7788 100644
--- a/src/lib/domains/service.ts
+++ b/src/lib/domains/service.ts
@@ -40,7 +40,7 @@ export async function addDomainForUser(
env: CloudflareEnv,
userId: string,
hostname: string,
- options?: { enableRouting?: boolean; enableSending?: boolean; replaceMxRecords?: boolean; receivingProvider?: "none" | "cloudflare" | "resend" | "ses"; sendingProvider?: "none" | "cloudflare" | "resend" | "ses" },
+ options?: { enableRouting?: boolean; enableSending?: boolean; replaceMxRecords?: boolean; skipDns?: boolean; receivingProvider?: "none" | "cloudflare" | "resend" | "ses"; sendingProvider?: "none" | "cloudflare" | "resend" | "ses" },
): Promise<{
domain: typeof domains.$inferSelect;
dns: DomainDnsView;
@@ -52,7 +52,7 @@ export async function addDomainForUser(
if (claimedHostname && claimedHostname.userId !== userId) {
throw new Error("Domain is already registered");
}
- if (hasCloudflareCredentials(env)) {
+ if (!options?.skipDns && hasCloudflareCredentials(env)) {
const { zone } = await preflightDomain(env, normalizedHostname);
const [claimedZone] = await db.select({ userId: domains.userId }).from(domains).where(and(
eq(domains.zoneId, zone.id),
@@ -64,9 +64,11 @@ export async function addDomainForUser(
}
// Email Routing is Cloudflare's way of receiving; another provider brings its own MX,
// which its setup in the domain page creates once credentials exist.
- const receivingProvider = options?.receivingProvider ?? "cloudflare";
+ // A skipped-DNS domain is recorded only: nothing receives or sends until the operator picks providers.
+ const skipDns = options?.skipDns === true;
+ const receivingProvider = skipDns ? "none" : (options?.receivingProvider ?? "cloudflare");
// Cloudflare's sending subdomain is only provisioned when Cloudflare is the sender.
- const requestedSending = options?.sendingProvider ?? (options?.enableSending === false ? "none" : "cloudflare");
+ const requestedSending = skipDns ? "none" : (options?.sendingProvider ?? (options?.enableSending === false ? "none" : "cloudflare"));
const provisioned = await provisionDomainOnCloudflare(env, hostname, {
...options,
enableSending: requestedSending === "cloudflare",
@@ -88,14 +90,15 @@ export async function addDomainForUser(
userId,
hostname: provisioned.hostname,
zoneId: provisioned.zone.id,
- status: provisioned.routingEnabled || provisioned.sendingEnabled || receivingProvider !== "cloudflare" ? ("active" as const) : ("pending" as const),
+ status: !skipDns && (provisioned.routingEnabled || provisioned.sendingEnabled || receivingProvider !== "cloudflare") ? ("active" as const) : ("pending" as const),
receivingProvider,
routingStatus: provisioned.routingStatus ?? null,
sendingSubdomainTag: provisioned.sendingSubdomainTag,
- sendingRequested: provisioned.sendingRequested,
- ...(options?.sendingProvider ? { sendingProvider: options.sendingProvider } : existing && existing.sendingProvider !== "none" ? {} : { sendingProvider: provisioned.sendingRequested ? ("cloudflare" as const) : ("none" as const) }),
- sendingEnabled: provisioned.sendingEnabled,
- routingEnabled: provisioned.routingEnabled,
+ sendingRequested: skipDns ? false : provisioned.sendingRequested,
+ ...(skipDns ? { sendingProvider: "none" as const } : options?.sendingProvider ? { sendingProvider: options.sendingProvider } : existing && existing.sendingProvider !== "none" ? {} : { sendingProvider: provisioned.sendingRequested ? ("cloudflare" as const) : ("none" as const) }),
+ sendingEnabled: skipDns ? false : provisioned.sendingEnabled,
+ routingEnabled: skipDns ? false : provisioned.routingEnabled,
+ dnsSkipped: options?.skipDns === true,
};
if (existing) {
diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json
index 40dd59e..4f62069 100644
--- a/src/lib/i18n/en.json
+++ b/src/lib/i18n/en.json
@@ -830,6 +830,12 @@
"setup.primaryDomain": "Primary domain",
"setup.zoneHint": "The domain must already be a Cloudflare zone on this account.",
"setup.enableSending": "Enable sending",
+ "setup.skipDns": "Skip DNS setup",
+ "setup.skipDnsHint": "Add the domain without adding or checking DNS records. You can set them later.",
+ "setup.skipDnsOn": "DNS is not added or checked. Set the records yourself before mail can flow.",
+ "dnsSkipped.warning": "DNS isn't configured for {domains}. Mail won't arrive until the records are set.",
+ "dnsSkipped.review": "Review DNS",
+ "dnsSkipped.markDone": "I've set it up",
"setup.checkingCloudflare": "Checking Cloudflare access...",
"setup.requiredToSend": "Required to send email.",
"setup.receiveOnly": "Receive-only mode.",
diff --git a/src/lib/validators.ts b/src/lib/validators.ts
index c94b070..156bcad 100644
--- a/src/lib/validators.ts
+++ b/src/lib/validators.ts
@@ -52,6 +52,7 @@ export const firstRunRegisterSchema = z.object({
domain: z.string().min(3),
enableSending: z.boolean().optional(),
replaceMxRecords: z.boolean().optional(),
+ skipDns: z.boolean().optional(),
username: z.string().min(1).max(64).regex(/^[a-zA-Z0-9._%+-]+$/),
password: z.string().min(8),
resetEmail: z.string().email(),
@@ -72,6 +73,8 @@ export const addDomainSchema = z.object({
enableRouting: z.boolean().optional(),
enableSending: z.boolean().optional(),
replaceMxRecords: z.boolean().optional(),
+ /** Record the domain without adding or checking DNS; a warning shows until it is confirmed. */
+ skipDns: z.boolean().optional(),
/** Which service sends mail for the domain; derived from `enableSending` when omitted. */
sendingProvider: z.enum(["none", "cloudflare", "resend", "ses"]).optional(),
/** Which service receives mail for the domain; Cloudflare Email Routing when omitted. */