Settings to minimize the risk of your email being classed as SPAM by external recipients

Email messages from Mira systems are sent through the email service provider Mandrill. Mandrill is a transactional email API from Mailchimp. Mailchimp is one of the largest email marketing and newsletter services. Email from Mira, through Mandrill is always sent from a dedicated IP-range, separate from other Mandrill and MailChimp clients.  When sending email using a Mira-system, the user can select the From-address for the email.  We follow best practices to avoid email sent through Mira to be classified as suspicious. Normally email from Mira have the Sender header set to, a domain controlled by Mira and that has proper DKIM and SPF-records set. Many email programs will then show in the from field as sent “via” or “on behalf of”

To further minimize the risk of email being classified as spam by recipient’s email software, you can add DKIM and SPF records in the DNS for the domain used in the From-header. Most email programs will then no longer show the “via” or “on behalf of”  

What are DKIM and SPF?

Basically DKIM and SPF are authentication mechanisms that helps Mandrill to send emails on your behalf through your domain.


DKIM is a DNS-based email authentication mechanism that helps Mandrill more effectively send mail on your behalf by allowing receivers to verify that we have permission to send your email. To enable DKIM, create a TXT record for (just replace with the domain you’re setting up) with the following value:

v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrLHiExVd55zd/IQ/J/mRwSRMAocV/hMB3jXwaHH36d9NaVynQFYV8NaWi69c1veUtRzGt7yAioXqLj7Z4TeEUoOLgrKsn8YnckGs9i3B3tVFB+Ch/4mPhXWiNfNdynHWBcPcbJ8kjEQ2U8y78dHZj1YeRXXVvWob2OaKynO8/lQIDAQAB;

Some DNS providers require that semicolons be escaped. If your provider requires escaping, use this value instead:

v=DKIM1\; k=rsa\; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrLHiExVd55zd/IQ/J/mRwSRMAocV/hMB3jXwaHH36d9NaVynQFYV8NaWi69c1veUtRzGt7yAioXqLj7Z4TeEUoOLgrKsn8YnckGs9i3B3tVFB+Ch/4mPhXWiNfNdynHWBcPcbJ8kjEQ2U8y78dHZj1YeRXXVvWob2OaKynO8/lQIDAQAB\;


SPF is another DNS-based email authentication mechanism. If you don’t yet have an SPF record, you’ll want to add one for your domain. At a minimum, the value should be the following if you’re only sending mail through Mandrill for that domain:

v=spf1 ?all

If you already have a TXT record with SPF information, you’ll need to add Mandrill’s servers to that record by adding in the record (before the last operator, which is usually ?all, ~all, or -all).

Was this article helpful?

Related Articles