Skip to content

Instantly share code, notes, and snippets.

@toraritte
Last active June 20, 2025 19:38
Show Gist options
  • Save toraritte/731a70b16325f59817a6d13e16d1ec2a to your computer and use it in GitHub Desktop.
Save toraritte/731a70b16325f59817a6d13e16d1ec2a to your computer and use it in GitHub Desktop.

Revisions

  1. toraritte revised this gist Aug 10, 2021. 1 changed file with 12 additions and 3 deletions.
    15 changes: 12 additions & 3 deletions mxroute-add-email-subdomain.md
    Original file line number Diff line number Diff line change
    @@ -32,7 +32,9 @@ In the `[MXroute] Important Account Information` email there is a section titled
    ### MX records
    Taking `forum.my-project.com` subdomain as an example, these are the pseudo DNS entries, where `@` and `forum` would go to an input field titles "_host_" or "_name_" (or similar), and the MXROUTE mail servers under "_target_".
    Taking `forum.my-project.com` subdomain as an example, these are the entries, where `@` and `forum` would go to an input field titles "_host_" or "_name_" (or similar), and the MXROUTE mail servers under "_target_".
    > **NOTE**: The first 2 is for your main domain (i.e., `my-project.com`), and the last 2 are for your subdomain (i.e., `forum.my-project.com`).
    ```
    MX @ blizzard.mxrouting.net (Priority: 10) 1 Hour
    @@ -45,27 +47,34 @@ MX forum blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    Following the same pattern, add the SPF entry for your subdomain:
    > **NOTE**: The first one is for your main domain (i.e., `my-project.com`), and the last one are for your subdomain (i.e., `forum.my-project.com`).
    ```
    TXT @ v=spf1 include:mxlogin.com -all 1 Hour
    TXT forum v=spf1 include:mxlogin.com -all 1 Hour
    ```
    ### DKIM
    The subdomain will need to be appended after `x._domainkey` like so:
    The subdomain will need to be appended after `x._domainkey` so it becomes `x._domainkey.forum`, and to get the actual value to insert into the TXT record (i.e., the DKIM public key), follow the [recommended MXROUTE docs to set up DKIM](https://mxroutehelp.com/index.php/2019/08/25/set-up-dkim/) **but make sure to use the modified name** (in this case, `x._domainkey.forum`).
    > **NOTE**: The first one is for your main domain (i.e., `my-project.com`), and the last one are for your subdomain (i.e., `forum.my-project.com`) where the two public keys (the part starting with `v=DKIM1; k=rsa; ...`) **are not the same**.
    ```
    TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey.forum v=DKIM1; k=rsa; p=MI... 1 Hour
    ```
    If this doesn't work with your provider/registrar/etc. then add the full domain name:
    If this doesn't work with your provider/registrar/etc. then you may have to add the full domain name:
    ```
    TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey.forum.my-project.com v=DKIM1; k=rsa; p=MI... 1 Hour
    ```
    > **INFO**: See [this answer](https://serverfault.com/a/851254/322755) for further reading and links to the corresponding RFCs.
    ## 3. Test it
    With [mail-tester](https://www.mail-tester.com/), for example.
  2. toraritte revised this gist Aug 9, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions mxroute-add-email-subdomain.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    The [Setting up SPF and DKIM records of a subdomain](https://serverfault.com/questions/851215/setting-up-spf-and-dkim-records-of-a-subdomain) thread on StackExchange goes more into the details.

    ## DirectAdmin
    ## 1. Log in to DirectAdmin

    In the `[MXroute] Important Account Information` email there is a section titled "**Login Info:**", similar to

    @@ -26,7 +26,7 @@ In the `[MXroute] Important Account Information` email there is a section titled
    8. Click on **CREATE ACCOUNT**
    9. Fill out, and click on **CREATE ACCOUNT** button
    ## Domain DNS entries
    ## 2. Add domain DNS entries
    In the `[MXroute] Important Account Information` email there is a section titled "**DNS Records**", with details on MX records, SPF, and DKIM. All these will need to be applied to your subdomain as well.
    @@ -66,6 +66,6 @@ TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey.forum.my-project.com v=DKIM1; k=rsa; p=MI... 1 Hour
    ```
    ## Test it
    ## 3. Test it
    With [mail-tester](https://www.mail-tester.com/), for example.
  3. toraritte revised this gist Aug 9, 2021. 1 changed file with 11 additions and 11 deletions.
    22 changes: 11 additions & 11 deletions mxroute-add-email-subdomain.md
    Original file line number Diff line number Diff line change
    @@ -35,37 +35,37 @@ In the `[MXroute] Important Account Information` email there is a section titled
    Taking `forum.my-project.com` subdomain as an example, these are the pseudo DNS entries, where `@` and `forum` would go to an input field titles "_host_" or "_name_" (or similar), and the MXROUTE mail servers under "_target_".
    ```
    MX @ blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX @ blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    MX forum blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX forum blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    MX @ blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX @ blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    MX forum blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX forum blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    ```
    ### SPF
    Following the same pattern, add the SPF entry for your subdomain:
    ```
    TXT @ v=spf1 include:mxlogin.com -all 1 Hour
    TXT forum v=spf1 include:mxlogin.com -all 1 Hour
    TXT @ v=spf1 include:mxlogin.com -all 1 Hour
    TXT forum v=spf1 include:mxlogin.com -all 1 Hour
    ```
    ### DKIM
    The subdomain will need to be appended after `x._domainkey` like so:
    ```
    TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey.forum v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey.forum v=DKIM1; k=rsa; p=MI... 1 Hour
    ```
    If this doesn't work with your provider/registrar/etc. then add the full domain name:
    ```
    TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey.forum.my-project.com v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey.forum.my-project.com v=DKIM1; k=rsa; p=MI... 1 Hour
    ```
    ## Test it
    With [mail-tester](https://www.mail-tester.com/), for example.
    With [mail-tester](https://www.mail-tester.com/), for example.
  4. toraritte revised this gist Aug 9, 2021. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions mxroute-add-email-subdomain.md
    Original file line number Diff line number Diff line change
    @@ -35,9 +35,9 @@ In the `[MXroute] Important Account Information` email there is a section titled
    Taking `forum.my-project.com` subdomain as an example, these are the pseudo DNS entries, where `@` and `forum` would go to an input field titles "_host_" or "_name_" (or similar), and the MXROUTE mail servers under "_target_".
    ```
    MX @ blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX @ blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX @ blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    MX forum blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX forum blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX forum blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    ```
    @@ -46,7 +46,7 @@ MX forum blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    Following the same pattern, add the SPF entry for your subdomain:
    ```
    TXT @ v=spf1 include:mxlogin.com -all 1 Hour
    TXT @ v=spf1 include:mxlogin.com -all 1 Hour
    TXT forum v=spf1 include:mxlogin.com -all 1 Hour
    ```
    @@ -55,7 +55,7 @@ TXT forum v=spf1 include:mxlogin.com -all 1 Hour
    The subdomain will need to be appended after `x._domainkey` like so:
    ```
    TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey.forum v=DKIM1; k=rsa; p=MI... 1 Hour
    ```
  5. toraritte revised this gist Aug 9, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions mxroute-add-email-subdomain.md
    Original file line number Diff line number Diff line change
    @@ -35,9 +35,9 @@ In the `[MXroute] Important Account Information` email there is a section titled
    Taking `forum.my-project.com` subdomain as an example, these are the pseudo DNS entries, where `@` and `forum` would go to an input field titles "_host_" or "_name_" (or similar), and the MXROUTE mail servers under "_target_".
    ```
    MX @ blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX @ blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    MX forum blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX @ blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX @ blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    MX forum blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX forum blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    ```
  6. toraritte revised this gist Aug 9, 2021. No changes.
  7. toraritte revised this gist Aug 9, 2021. 1 changed file with 65 additions and 14 deletions.
    79 changes: 65 additions & 14 deletions mxroute-add-email-subdomain.md
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,71 @@
    0. Log in to DirectAdmin

    In the `[MXroute] Important Account Information` email there is a section titled "**Login Info:**", similar to

    > ```
    > =====
    > ===== Login Info:
    > =====
    >
    > Control Panel Login URL: https://blizzard.mxrouting.net:2222
    > Control Panel Username: gibberish
    > Control Panel Password: gobbledygook
    > ```
    The [Setting up SPF and DKIM records of a subdomain](https://serverfault.com/questions/851215/setting-up-spf-and-dkim-records-of-a-subdomain) thread on StackExchange goes more into the details.

    ## DirectAdmin

    In the `[MXroute] Important Account Information` email there is a section titled "**Login Info:**", similar to

    > ```
    > =====
    > ===== Login Info:
    > =====
    >
    > Control Panel Login URL: https://blizzard.mxrouting.net:2222
    > Control Panel Username: gibberish
    > Control Panel Password: gobbledygook
    > ```
    1. Go to **Account Manager** > **Domain Setup**
    > Ignore **Subdomain Management** - doing anything there will have no effect!
    3. Click on **ADD NEW**
    4. On the first line (**Domain:**) enter your desired subdomain in the format `sub.domain.TLD` (e.g., `forum.my-project.com`)
    4. On the first line (**Domain:**) enter your desired subdomain in the format `sub.domain.TLD` (e.g., `forum.my-project.com`)
    5. Click on **CREATE**
    6. Go to **E-mail Manager** > **E-mail Accounts**
    7. At the very top of the page click on the drop-down menu after **Domain**, and choose your newly created subdomain
    8. Click on **CREATE ACCOUNT**
    9. Fill out, and click on **CREATE ACCOUNT** button
    ## Domain DNS entries
    In the `[MXroute] Important Account Information` email there is a section titled "**DNS Records**", with details on MX records, SPF, and DKIM. All these will need to be applied to your subdomain as well.
    ### MX records
    Taking `forum.my-project.com` subdomain as an example, these are the pseudo DNS entries, where `@` and `forum` would go to an input field titles "_host_" or "_name_" (or similar), and the MXROUTE mail servers under "_target_".
    ```
    MX @ blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX @ blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    MX forum blizzard.mxrouting.net (Priority: 10) 1 Hour
    MX forum blizzard-relay.mxrouting.net (Priority: 20) 1 Hour
    ```
    ### SPF
    Following the same pattern, add the SPF entry for your subdomain:
    ```
    TXT @ v=spf1 include:mxlogin.com -all 1 Hour
    TXT forum v=spf1 include:mxlogin.com -all 1 Hour
    ```
    ### DKIM
    The subdomain will need to be appended after `x._domainkey` like so:
    ```
    TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey.forum v=DKIM1; k=rsa; p=MI... 1 Hour
    ```
    If this doesn't work with your provider/registrar/etc. then add the full domain name:
    ```
    TXT x._domainkey v=DKIM1; k=rsa; p=MI... 1 Hour
    TXT x._domainkey.forum.my-project.com v=DKIM1; k=rsa; p=MI... 1 Hour
    ```
    ## Test it
    With [mail-tester](https://www.mail-tester.com/), for example.
  8. toraritte revised this gist Aug 9, 2021. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion mxroute-add-email-subdomain.md
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,9 @@
    > Control Panel Password: gobbledygook
    > ```
    1. go to
    1. Go to **Account Manager** > **Domain Setup**
    > Ignore **Subdomain Management** - doing anything there will have no effect!
    3. Click on **ADD NEW**
    4. On the first line (**Domain:**) enter your desired subdomain in the format `sub.domain.TLD` (e.g., `forum.my-project.com`)
  9. toraritte revised this gist Aug 9, 2021. 1 changed file with 11 additions and 11 deletions.
    22 changes: 11 additions & 11 deletions mxroute-add-email-subdomain.md
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    0. Log in to DirectAdmin

    In the `[MXroute] Important Account Information` email there is a section titled "**Login Info:**", similar to

    > ```
    > =====
    > ===== Login Info:
    > =====
    >
    > Control Panel Login URL: https://blizzard.mxrouting.net:2222
    > Control Panel Username: gibberish
    > Control Panel Password: gobbledygook
    > ```
    In the `[MXroute] Important Account Information` email there is a section titled "**Login Info:**", similar to
    > ```
    > =====
    > ===== Login Info:
    > =====
    >
    > Control Panel Login URL: https://blizzard.mxrouting.net:2222
    > Control Panel Username: gibberish
    > Control Panel Password: gobbledygook
    > ```
    1. go to
  10. toraritte revised this gist Aug 9, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion mxroute-add-email-subdomain.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    0. Log in to DirectAdmin
    0. Log in to DirectAdmin

    In the `[MXroute] Important Account Information` email there is a section titled "**Login Info:**", similar to

    > ```
  11. toraritte created this gist Aug 9, 2021.
    14 changes: 14 additions & 0 deletions mxroute-add-email-subdomain.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    0. Log in to DirectAdmin
    In the `[MXroute] Important Account Information` email there is a section titled "**Login Info:**", similar to

    > ```
    > =====
    > ===== Login Info:
    > =====
    >
    > Control Panel Login URL: https://blizzard.mxrouting.net:2222
    > Control Panel Username: gibberish
    > Control Panel Password: gobbledygook
    > ```
    1. go to