DKIM: Difference between revisions
Appearance
Content deleted Content added
| (13 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<indicator name="Faults">[[File:Menu-email.svg|link=:Category:Email|30px|Back up to the Email Category]]</indicator> |
<indicator name="Faults">[[File:Menu-email.svg|link=:Category:Email|30px|Back up to the Email Category]]</indicator> |
||
Support staff can help in adding DKIM signing for domains that we host DNS and email services for. |
|||
'''WORK IN PROGRESS |
|||
''' |
|||
'''Currently being trialled by staff, not available to customers''' |
|||
'''Examples and confg is likely to change before customers are able to use DKIM |
|||
''' |
|||
== Important: == |
== Important: == |
||
As with SPF, if you use DKIM/DMARC then you will also want to make sure that all email that you send from your domain is sent through email servers that will sign |
As with SPF, if you use DKIM/DMARC then you will also want to make sure that all email that you send from your domain is sent through email servers that will sign |
||
| Line 19: | Line 15: | ||
Also see [[SPF Record]] |
Also see [[SPF Record]] |
||
DKIM is one of many methods which tries to protect email senders and recipients from spoofing/spam |
DKIM is one of many methods which tries to protect email senders and recipients from spoofing/spam and to proove that an email hasn't been tampered with. |
||
A domain owner can add DNS records which will publish a public key in a specially formatted |
A domain owner can add DNS records which will publish a public key in a specially formatted |
||
| Line 30: | Line 26: | ||
This gives some level of confidence that the email was actually sent by the owner of the domain and not spoofed. |
This gives some level of confidence that the email was actually sent by the owner of the domain and not spoofed. |
||
Optionally, further DNS records (DMARC) can be added which declare to |
Optionally, further DNS records (DMARC) can be added which declare to email servers receiving the message what should be done it it fails the DKIM test - eg, do nothing, block or quarantine. |
||
Even if messages are just signed, then this can help them not to be marked as spam by the recipient. |
Even if messages are just signed, then this can help them not to be marked as spam by the recipient. This can help prevent messages that our customers send to gmail/outlook being put in to spam folders. |
||
====Long txt records?==== |
|||
If you are adding your own txt records and they are over 256 characters long, see [[Domains:DNS_Types]] for details on how to 'split' the record in to separate chunks. |
|||
== Signing by smtp.aa.net.uk == |
== Signing by smtp.aa.net.uk == |
||
Customers who meet the following criteria can have their messages signed by our email |
Customers who meet the following criteria can have their messages signed by our smtp.aa.net.uk email relay: |
||
* We provide DNS services for the Domain |
* We provide DNS services for the Domain |
||
* The three CNAME records below are added (via the control pages) |
* The three CNAME records below are added (via the control pages) |
||
* You use smtp.aa.net.uk to send out email |
* You use smtp.aa.net.uk to send out email |
||
The A&A email relays, smtp.aa.net.uk, can optionally DKIM sign email that is sent through it. |
|||
The DNS records required on the customer domain are as follows; |
The DNS records required on the customer domain are as follows; |
||
| Line 48: | Line 45: | ||
aaisp2._domainkey CNAME aaisp2.dkim.aa.net.uk |
aaisp2._domainkey CNAME aaisp2.dkim.aa.net.uk |
||
aaisp3._domainkey CNAME aaisp3.dkim.aa.net.uk |
aaisp3._domainkey CNAME aaisp3.dkim.aa.net.uk |
||
We have three selectors which enable us to roll over the keys easily. |
|||
== What if I send email via other mail servers == |
== What if I send email via other mail servers == |
||
| Line 70: | Line 69: | ||
'''Send yourself an email''' |
'''Send yourself an email''' |
||
If you send yourself an email, look at the header and you should see a DKIM-Signature: header which will include the signature along with s= |
If you send yourself an email, look at the header and you should see a DKIM-Signature: header which will include the signature along with s=aaisp1 which is the 'Selector we use'. |
||
'''Send to a gmail account and check the DKIM report''' |
'''Send to a gmail account and check the DKIM report''' |
||
If you have access to a gmail account then send an email there, then in the little 3-dot menu in the email click 'Show Original'. You will then see the raw message but also information about SPF/DKIM/DMARC. |
If you have access to a gmail account then send an email there, then in the little 3-dot menu in the email click 'Show Original'. You will then see the raw message but also information about SPF/DKIM/DMARC. |
||
== DKIM and t=y == |
|||
Until 2024-10-09 we were running our DKIM record with t=y - which tells other servers that signing is in ''testing'' mode. This was set when we originally set up the DKIM feature and wasn't removed ones it was all working! In practice many email servers would ignore this flag anyway. This was an oversight and has removed. |
|||
=DMARC= |
=DMARC= |
||
This is just a brief overview of |
This is just a brief overview of DMARC, you can read more about DKIM on other place or RFC7489 |
||
Adding a DMARC DNS record is optional, but can be beneficial. |
Adding a DMARC DNS record is optional, but can be beneficial. |
||
| Line 83: | Line 85: | ||
If you add DMARC records then you also need to make sure that |
If you add DMARC records then you also need to make sure that |
||
all the email you send is being sent through smtp relays which will sign your messages. ie, '''all your email for your domain would want to be |
all the email you send is being sent through smtp relays which will sign your messages. ie, '''all your email for your domain would want to be |
||
sent through smtp.net.uk''' |
sent through smtp.aa.net.uk''' |
||
There are various online generators for creating a dmarc record, but the contents of the record will cover the following basic settings: |
There are various online generators for creating a dmarc record, but the contents of the record will cover the following basic settings: |
||