-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: M365_BUILDER add support for alternative MX hosts #3191
base: main
Are you sure you want to change the base?
Changes from all commits
dfeef23
91a7208
45d12b6
4814564
3d6bf11
7b46549
4b2c832
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1879,15 +1879,14 @@ function M365_BUILDER(name, value) { | |
|
||
var r = []; | ||
|
||
// MX host (default: "mail.protection.outlook.com") | ||
if (!value.mxHost) { | ||
value.mx = 'mail.protection.outlook.com'; | ||
} | ||
|
||
// MX (default: true) | ||
if (value.mx) { | ||
r.push( | ||
MX( | ||
value.label, | ||
0, | ||
value.domainGUID + '.mail.protection.outlook.com.' | ||
) | ||
); | ||
r.push(MX(value.label, 0, value.domainGUID + '.' + value.mxHost + '.')); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The PowerShell(?) commands (link to highlight, might not work in all browsers) returns the whole MX hostname: Therefore, and to make the helper more flexible in general, I advise to do one of the following:
Documentation for the first option could look like this:
|
||
} | ||
|
||
// Autodiscover (default: true) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing comma should be removed, I think.