Sandbox Environment
The Mailtarget account in sandbox environment is equipped with preconfigured records for the default domain name and sender. You can utilize [email protected]
as the designated domain for sending emails within the sandbox environment without requiring any further adjustments or configurations.
Production Environment
The Mailtarget account in production environment has the ability to set up sending domains for subaccounts or primary accounts through the application or the sending domains API by including the X-MT-ATTR HTTP header.
When a sending domain is created, it will be linked to the specified subaccount mentioned in the X-MT-ATTR HTTP header (API) or the subaccount field in the application. If the header is not included in the API call, the sending domain will be associated with the primary account instead.
Sending domains are used to indicate the sender of an email through the 'From' header.
How To Add Sending Domain
In order to add your sending domain to the Mailtarget, you must open the Configuration > Domain > Sending Domain menu then click Add Domain button and fill your domain name.
After filling the domain name, you can assign the domain into primary account or subaccounts, then click Add Domain button
Sending domain status will be unverified by default, you need to verify by adding the following records into your DNS Managers.
For SPF:
Create a TXT record named yourdomainname with value v=spf1 include:spf.mailtarget.co ~all
In some DNS Managers you might be able to add SPF records directly without having to go through TXT. Thats because there are some DNS Managers that provide SPF records directly, some are just TXT. So, if your DNS Manager only provides TXT records, then you need to add SPF via TXT. If your DNS Manager provides SPF records, then you can add them directly through the SPF records.
Don’t make more than one TXT for SPF. However, you can add additional records in one configuration. In some cases, we need an additional configuration if indeed your domain has an additional configuration, like your domain that uses IPv4, A records and MX records. If you really need to install the configuration, add a record like the following
v=spf1 ip4: xxx.xxx.xxx.xxx +a +mx include:spf.(yourdomain).com include:spf.mailtarget.co ~all
.This is an example of a TXT record for an incorrect SPF:
v=spf1 include:spf.mailtarget.co ~all include:spf.(yourdomain).com ~all
So make sure the TXT record is only one line like the example above.
For DKIM:
Create a TXT record mt1._domainkey.yourdomainname and copy the value which is shown below.
Please wait approximately once every 24 hours so that your domain can propagate properly
After your domain has been propagated properly, check the I have completed the setup then click Verify Domain button.
Also, you can delete your domain by clicking the Delete Domain button if you need to.
Domain status will change into Verified and the next step you need is to generate your API Key before you can send your first emails.