In order to approve Samba for sending emails on behalf of your chosen sender, you have to set it as your e-mail service provider by setting your DNS records correctly.
DNS records are used for validation of your domain. The DNS settings can usually be found in the administration of your domain hosting. These records are inscribed into the header of the e-mail. Thanks to the correct DNS records settings, the e-mail is much less likely to end up in SPAM.
Which DNS records Samba needs
Samba requires DKIM and SPF records as an anti-spam protection. The specific form of these records can be found in Settings – E-mailing integration. It’s also recommended to set up an MX record.
In addition to these records, the MX record – “Mail eXchanger” – is also required by the most used email service providers (such as Seznam.cz). This record specifies which server should receive the reply to an email sent from a given address. This should be checked especially if you are using a sending subdomain (e.g. firstname.lastname@example.org), as the MX record is by default resolved only for the main domain and not the subdomain (eshop.cz vs newsletter.eshop.cz).
DNS records settings
DNS settings is a part of the administration of your web hosting.
- If your domain doesnt have any SPF record (TXT type, that starts with “v=spf1…”), create a new one with values displayed in the Samba app.
- If you domain has already a SPF record, Samba shows you the final form of the record. For example if your current SPF record looks like this:
v=spf1 a mx include:your.old.record.com ~all
After the edit, it should look like this:
v=spf1 a mx include:your.old.record.com include:mailgun.org~all
- It is allowed to have a maximum of 10 lookups.
- The limit is set according to the generally accepted RFC specification.
- You can easily check the number of lookups on your domain, e.g. using the MxToolbox tool.
- If this limit is exceeded, Samba will display that you do not have an SPF record correctly and the desired value will be displayed as the desired value regardless of the current state of your SPF record.
- It is recommended to have a maximum of 2 so called void lookups = lookup that is empty.
- Create a new TXT record with values displayed in the Samba app.
- If you do not have any MX record set up on the sending domain yet, you need to set up a redirect to a server where you will be able to receive replies sent to your newsletters.