Sorting out DomainKeys and understanding its limitsOkay, first a disclaimer: most everyone talks about DomainKeys, but it is formally DomainKeys Identified Mail (DKIM). Plain 'DomainKeys' is the name of the earlier specification that was folded into DKIM. Until I started digging into this in detail, I had the basic idea that
DKIM signed email header fields, crucially including the It turns out that this is totally wrong, and the Wikipedia DKIM page even sort of explains how it is wrong, if you read it carefully. Simplified, DKIM is nothing more and nothing less than a way
of letting a domain take authoritative responsibility for a
'message', where the message is the email body plus selected message
headers (which headers are up to the DKIM signer, but the RFC requires Thus, when GMail DKIM-signs their outgoing email all they are saying
is 'this really originated on GMail, and you can verify that it has
not been tampered with in transit'. They are not saying anything about
whether the email really came from who it claimed to come from in
the (As it happens, GMail does try to verify It follows that you cannot use DKIM for two useful things without outside knowledge:
As far as I can tell, without such advance policy knowledge there are only two useful things that you can do with a DKIM signature. First, if there is a signature but it does not validate, either the message has been tampered with in transit (possibly accidentally, possibly due to having a virus sliced out of it by someone's mail filters) or the header has been forged. Second, if the signature does validate you theoretically have someone to blame if the message is spam or otherwise bad (not that this does you much good in practice). |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |