The mail can not be sent: it contains a link with a domain not allowed

SOLVED

Hi,

How do I resolve this error from Notification Server: `The mail can not be sent: it contains a link with a domain not allowed`

Context:

- Sage X3 v12p34

- Located in AWS instance. Domain name was not set yet and yes, it is running as HTTP with AWS public IP address.

Settings note:

Mail server used: Google with App password.

After set, I tried to run Test configuration

From Syracuse log:

```

2024-02-08T15:08:21.260Z | adcd3a2693f5 | | 45191 | http.in | error | checkWebSiteDomain {publicIPGoesHere} not an allowed web site domain
2024-02-08T15:08:21.260Z | adcd3a2693f5 | | 45191 | admin.mail | error | sendMail HostNotMatchAllowedDomain {publicIPGoesHere}
2024-02-08T15:08:21.260Z | adcd3a2693f5 | | 45191 | admin.mail | error | sendMail {
"to": "[email protected]",
"subject": "Notification server X",
"from": "[email protected]",
"html": "<table width=\"531\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"center\" id=\"_top\">\n <tbody>\n <tr>\n <td>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"10\" border=\"0\">\n <tbody>\n <tr>\n <td style=\"background-color:#000000;\" height=\"48px\" align=\"center\">\n <img width=\"48px\" height=\"27px\" src=\"cid:logo_sage.jpg\">\n </td>\n </tr>\n </tbody>\n </table>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"10\" border=\"0\">\n <tbody>\n <tr>\n <td>\n <p>\n <font size=\"5\" face=\"Arial, Helvetica, sans-serif\" color=\"#007e45\">{{title}}\n </font>\n {{#subtitle}}<br>\n <font color=\"#4d4f53\" size=\"medium\" face=\"Arial, Helvetica, sans-serif\">{{subtitle}}</font>{{/subtitle}}\n </p>\n </td>\n </tr>\n </tbody>\n </table>\n\n {{#infos}}\n\n {{/infos}}\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"10\" border=\"0\" style=\"border-top: 1px solid #000000;border-bottom: 1px solid #000000;\">\n <tbody>\n <tr>\n <td style=\"font-size: 10pt;\">\n {{#content}}\n <p>\n <font face=\"Arial, Helvetica, sans-serif\" color=\"#4d4f53\">{{{content}}}</font>\n </p>\n {{/content}}\n <br><br><br>\n {{#signature}}\n <p>\n <br>\n <font face=\"Arial, Helvetica, sans-serif\" color=\"#4d4f53\">\n <strong>{{signature}}</strong></font>\n </p>\n {{/signature}}\n {{#link}}\n <p>\n <font face=\"Arial, Helvetica, sans-serif\" color=\"#4d4f53\"><a style=\"color: #007e45;\" href=\"{{link.href}}\">&gt; {{link.label}}</a>\n </font>\n </p>\n {{/link}}\n </td>\n <td width=\"34%\" valign=\"top\" style=\"font-size: 8pt;\">\n <p>\n <font face=\"Arial, Helvetica, sans-serif\"><strong>\n <font size=\"2\" color=\"#007e45\">{{info.date.label}}</font>\n </strong>\n <font size=\"2\" color=\"#007e45\"><br> {{info.date.value}}</font>\n </font>\n </p>\n <p>\n <font size=\"2\" face=\"Arial, Helvetica, sans-serif\" color=\"#007e45\">\n <strong>{{info.time.label}}</strong><br> {{info.time.value}}</font>\n <br>\n </p>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n</table>",
"attachments": [
{
"filename": "logo_sage.jpg",
"content": "iVBORw0KGgoAAAANSUhEUgAAACkAAAAXCAYAAACWEGYrAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQvSURBVHgBxVbNbhtVFP7uOHQsusAgsUOKw6ohKXWQkByzYAorNjThAYjTByAJLxCHByDxCxDnCeqw6wbcBYlX2IY6LkLCs2CHRIxEkMex5/LdMz/2NKU0VVqfKPb9Pfc7537nu1Yw1nAySA82oHWRvSygmtBoYuDvYKnuYsqm0MhnYavvYcBp9DjSk3ZgLjx9e9pALbyCEgJQVQzsObxzPAel59ivybitdjFls6CsW9KaGfJqaz1pzzNznr0arnEwZbMAnZXW2XU3MRMAdkmBqRszyQIxZnvbF2YV+WgoMGVT+Gl5BTO4F/ZrGOkd3KzX/nPHw/dz5EaR4c0GHqwq5n84SKzRJaBZyzDwNWiVY7AZKkcLA1QuFGHXAf7u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VORK5CYII=",
"encoding": "base64",
"cid": "logo_sage.jpg@img"
}
]
} {
"subtitle": "Configuration test",
"content": "Notification server configuration 'X' is working.<br><br>Summary:<br>Host: smtp.gmail.com<br>Port: 587<br>Security: STARTTLS_WHEN_AVAILABLE<br>User: [email protected]",
"signature": "Notification server tester",
"link": {
"href": "">publicIPGoesHere/.../main.html
"label": "Click here to access the configuration."
},
"title": "Notification server X",
"info": {
"date": {
"label": "Date",
"value": "Thu Feb 08 2024"
},
"time": {
"label": "Time",
"value": "11:08:21 PM"
}
}
}

```

If I send from Sage X3 endpoint workflow button, there is no issue.