|
2010-09-07 My new view of DomainKeysNow that I actually understand how DKIM works, I have a much better view of it than I used to and as a result it's much more attractive and likely to be implemented here some day. The way I choose to look at it is that for us, it is essentially a lightweight anti-tampering feature. We can sign outgoing messages to transparently add some basic integrity protection for our users' mail, and verify inbound DKIM signatures for a basic integrity check. This makes using it a lot like our existing habit of using TLS SMTP whenever possible, ie it does some good for frustrating bad people and basically no harm. (We're not going be able to actually start using DKIM any time soon, because all of our mail servers are running Exim versions that are too old to have DKIM support. The inbound gateway is due to be upgraded soon since it's still running Ubuntu 6.06, but the mail submission machine is running RHEL 5 which is good for years yet. And supporting DKIM is in no way important enough to justify compiling a local version of Exim from source.) The one fly in the ointment would be if people implementing DKIM checkers (whether in MTAs or MUAs) had made my mistake and are reading more into DKIM than is actually there, especially if they're treating it as a kind of SPF. In that case, adding DKIM DNS data and DKIM signatures to some of our outgoing email might harm the delivery prospects of email from us and our users that wasn't DKIM signed by us, as would happen for, eg, email that our users send from GMail using their CSLab addresses. Hopefully this is not the case. (Making it harder for our users to use GMail would be, to put it one way, an extremely unpopular move.) Sidebar: Where we would put DKIM in our incoming email flowOur inbound spam and virus filtering can alter the message body (if
a virus is removed) and the (Logically this implies that we should re-sign messages when we forward them, but I'm not quite comfortable with that for various reasons.) If we do DKIM validation after the filtering, all virus-cleaned messages
will fail DKIM checks and most spam-scored messages will (the
2010-09-06 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 |