@mailmodo/cli 0.0.20-beta.pr22.35 → 0.0.20-beta.pr22.37
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.
- package/dist/commands/domain/index.js +11 -6
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -124,15 +124,15 @@ export default class Domain extends BaseCommand {
|
|
|
124
124
|
if (!response.ok) {
|
|
125
125
|
this.handleApiError(response);
|
|
126
126
|
}
|
|
127
|
-
const { dkim, dmarc,
|
|
127
|
+
const { dkim, dmarc, returnPath, domainStatus } = response.data;
|
|
128
128
|
if (jsonOutput) {
|
|
129
|
-
this.log(JSON.stringify({ dkim, dmarc,
|
|
129
|
+
this.log(JSON.stringify({ dkim, dmarc, returnPath, domainStatus }, null, 2));
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
|
-
this.log(`
|
|
133
|
-
this.log(`
|
|
134
|
-
this.log(`
|
|
135
|
-
const allPassed =
|
|
132
|
+
this.log(` DKIM ${dkim ? chalk.green('✓') : chalk.red('✗ Not found')}`);
|
|
133
|
+
this.log(` DMARC ${dmarc ? chalk.green('✓') : chalk.red('✗ Not found')}`);
|
|
134
|
+
this.log(` Return Path ${returnPath ? chalk.green('✓') : chalk.red('✗ Not found')}`);
|
|
135
|
+
const allPassed = domainStatus === 'VERIFIED';
|
|
136
136
|
if (allPassed) {
|
|
137
137
|
this.log(`\n ${chalk.green('✓')} Domain verified.\n`);
|
|
138
138
|
}
|
|
@@ -144,6 +144,11 @@ export default class Domain extends BaseCommand {
|
|
|
144
144
|
this.log(` - Including the full domain in the Host field`);
|
|
145
145
|
this.log(` - Cloudflare: proxy must be OFF (grey cloud, not orange)`);
|
|
146
146
|
}
|
|
147
|
+
if (!returnPath) {
|
|
148
|
+
this.log(`\n Return Path common mistakes:`);
|
|
149
|
+
this.log(` - Missing or incorrect CNAME for mm-bounce subdomain`);
|
|
150
|
+
this.log(` - Cloudflare: proxy must be OFF (grey cloud, not orange)`);
|
|
151
|
+
}
|
|
147
152
|
this.log(`\n Fix the records and run ${chalk.cyan('mailmodo domain --verify')} again.`);
|
|
148
153
|
this.log(` Help: ${chalk.cyan(DNS_GUIDE_URL)}\n`);
|
|
149
154
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED