External Mail Server not working after upgrade (Office 365 Exchange)

  • Hi guys


    After upgrading to the latest i-MSCP Version my External Mail Servers where not activated, so I activated them but I get the following Message when sending Emails to the external Domain:
    Status: 5.4.6
    Diagnostic-Code: X-Postfix; mail for myexternalcomain.de loops back to myself


    So I tried to add a csutom dns record thinking this might solve the issue. Then I noticed that when adding a record with an external Host name, the Domain "mydomain.com" gets appended to the end of the Host:
    Should be: customer-de.mail.protection.outlook.com.
    Turns to: customer-de.mail.protection.outlook.com.mydomain.com.


    Is this a bug? I thought it should only append the domain if its not FQDN.


    Cheers
    Ron

  • @ctct


    Then I noticed that when adding a record with an external Host name, the Domain "mydomain.com" gets appended to the end of the Host:
    Should be: customer-de.mail.protection.outlook.com.
    Turns to: customer-de.mail.protection.outlook.com.mydomain.com.

    So:


    dns.png


    Is there something you don't understand here? More specially:

    Code
    1. $ORIGIN is automatically appended to unqualified names, hosts and canonical names.


    In DNS jargon, a unqualified name, host or canonical name means a name not ending by dot.


    See also: https://github.com/i-MSCP/imsc…me-and-target-host-fields

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin


    Thanks the dot solve the issue.
    As to the other issue. Could it be that the upgrade script removes the External Mail setting on a domain? It was set an working before the upgrade.