1. Home
  2. Knowledge Base
  3. Guidance
  4. Relay
  5. SPF, DKIM, DMARC Configuration

SPF, DKIM, DMARC Configuration

Can my organisation use Domain-based Messages Authentication Reporting and Conformance (DMARC)?

Domain-based Messages Authentication Reporting and Conformance (DMARC) builds upon SPF and DKIM, and adds a reporting functionality. DMARC is an additional TXT DNS record, and can take a variety of options. The managed domain of nhs.net has DMARC enabled.

A *.nhs.uk organisation can set up a DMARC record by creating an internet facing DNS TXT record in a format similar to the following:

_dmarc.<organisation>.nhs.uk TXT v=DMARC1; p=reject; rua=mailto:<feedbackemailaddress> 

As there are various flags/options around DMARC, please review DMARC.org for options for specific configuration.

 

How can a local organisation configure Sender Policy Framework (SPF)?

The NHSmail service has protective DNS records using Sender Policy Framework (or SPF). SPF can be used to assist with anti-spoofing as well as overall assist with IP ratings related to blacklisting. If a local organisation wishes to implement SPF for their own MX record, they can create a single record referencing the domain nhs.net.

To have an entry for your organisations *.nhs.uk domain you submit a request to the NHS Digital DNS team to update your DNS record ([email protected]) with a new DNS record of type “TXT” with the following information:

v=spf1 include:_spf.nhs.net ~all 

or, more specifically, v=spf1 include:_spf.nhs.net ip4:<IP1> ip4:<IP2> -all (where, IP1 and IP2 are a local organisations MTAs).

The above TXT record will inherit the configuration from the master nhs.net SPF record (which would be updated with any changes to IP for the Email Gateway service). For other information and guidance regarding SPF please refer to the Open SPF Project.

 

Should our organisation set a permissive or restrictive SPF record (~all vs –all)?

The decision to use an SPF record for your organisations *.nhs.uk domain is highly recommended and encouraged.

  • all is a softfail SPF record, typically this setting allows messages to be delivered.

  • all is a restrictive SPF record, it would be recommended to use softfail as a test before implementing restrictive SPF.

The most important thing for SPF, is to get the record correct when creating it, otherwise sending/receiving email can be restricted. There are several SPF testing tools (such as MX Toolbox – mxtoolbox) for testing SPF records. Ensure testing is done before and after implementation confirming mailflow is not impacted by new SPF records.

See the public SPF project for more details on SPF: Open SPF Project.

Note once set other systems such as internet based marketing services that pretend to send from your system will get email rejected if they set the from address to be that of your nhs.uk domain.

 

Can my organisation use Domain Key Identifiable Mail (DKIM)?

Domain Key Identifiable Mail (DKIM) is used to sign outgoing message content. If an organisation wishes to use DKIM to sign or check mail, please refer to DKIM support pages on dkim.org. The signing of outbound mail from the N3 would be the responsibility of N3 organisations.

 

Updated on 09/04/2019

Related Articles

back to top