Docs Home Return to Homepage
Get Started Login

How to Set Up MTA-STS in MXFilter

Last updated Changelog

On this page

MTA-STS tells other mail servers to always deliver email to your domain encrypted, and only to your real mail servers. That stops attackers from quietly turning off encryption or pretending to be your mail server. MXFilter hosts the policy and its certificate for you. You just add two DNS records.

If your domain uses NameCrane’s nameservers, add the records in cPanel or in DirectAdmin.

Steps

  1. Open MXFilter from your control panel: from cPanel or from DirectAdmin. Click Settings in the menu, scroll to MTA-STS and click Enable MTA-STS.

    The MTA-STS section with Enable MTA-STS highlighted

  2. MXFilter shows two records. Add both to your DNS:

    Name Type Value
    mta-sts CNAME mta-sts.mxfilter.net
    _mta-sts TXT the v=STSv1; id=… value MXFilter shows you

    The two records to publish: the mta-sts CNAME and the _mta-sts TXT record, with Current mode: Testing

  3. Wait a minute, then click Verify DNS. MXFilter sets up the certificate for mta-sts.yourdomain.com by itself. In our test, the policy was live with a valid certificate about a minute after we added the records.

    MTA-STS showing Verified — your MTA-STS policy is live and correctly published

Your policy starts in Testing mode: mail servers report problems, but no email is blocked. That’s the safe way to start. Turn on TLS reports to see those problems.

Important: Stay in Testing for now. Before you click Switch to Enforce, contact support and we’ll check your domain’s mail servers match the policy. In Enforce mode, a mismatch means other servers refuse to deliver your email.

Switching modes changes the id in the TXT record. When that happens, update the _mta-sts record in your DNS and click Verify DNS again.

Troubleshooting

Problem What to do
Verify DNS fails DNS changes can take up to an hour. Check you added both records, and that mta-sts is a CNAME, not a TXT record.
My DNS editor won’t let me add the CNAME Remove any other record named mta-sts first: a name with a CNAME can’t have other records.
I switched modes and it stopped verifying The id changed. Copy the new TXT value into your _mta-sts record.

Snagged on something? Contact support and we’ll get you sorted.

Snagged on something?

Our sysadmins answer tickets around the clock.