Questions tagged [dkim]

DomainKeys Identified Mail is a scheme for signing and verifying email messages to confirm that that the source hasn't been forged, and is typically implemented by MTAs. The source MTA adds a header to the message body containing a signature, and the destination MTA verifies this signature against a key retrieved from DNS.

DomainKeys Identified Mail (DKIM) is an email authentication method designed to detect forged sender addresses in emails (email spoofing), a technique often used in phishing and email spam.

DKIM allows the receiver to check that an email claimed to have come from a specific domain was indeed authorized by the owner of that domain.[1] It achieves this by affixing a digital signature, linked to a domain name, to each outgoing email message. The recipient system can verify this by looking up the sender's public key published in the DNS. A valid signature also guarantees that some parts of the email (possibly including attachments) have not been modified since the signature was affixed.[2] Usually, DKIM signatures are not visible to end-users, and are affixed or verified by the infrastructure rather than the message's authors and recipients.

The first version of DKIM synthesized and enhanced Yahoo!'s DomanKeys and Cisco's Identified Internet Mail specifications. It was the result of a year-long collaboration among numerous industry players, during 2005, to develop an open-standard e-mail authentication specification. Participants included Alt-N Technologies, AOL, Brandenburg InternetWorking, Cisco, EarthLink, IBM, Microsoft, PGP Corporation, Sendmail, StrongMail Systems, Tumbleweed, VeriSign and Yahoo!. The team produced the initial specification and several implementations. It then submitted the work to the IETF for further enhancement and formal standardization.

603 questions
7
votes
2 answers

Receiving DMARC reports for emails I do not send

I am hosting the email for my domain (lets call it example.com) on google apps (free legacy edition). I recently enabled the DMARC reports so I now get a daily report for the emails sent from my domain. My problem is that sometimes I get reports…
DorAga
  • 161
  • 1
  • 1
  • 6
7
votes
5 answers

What domain name should appear in a DKIM signature?

I followed these instructions to setup OpenDKIM with Postfix, and it works as advertised. My outgoing mails have the DKIM-Signature header added, for example: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=example.com; s=mail; t=1398638300;…
Jaap Joris Vens
  • 601
  • 3
  • 8
  • 20
7
votes
4 answers

Should DKIM selector names be unguessable?

The M³WAAG DKIM Key Rotation Best Practices document (pdf) recommends a "sufficiently" random DKIM selector name so that it cannot be guessed by browsing the DNS. A literal quotation: 4.3 Key Selector Naming Scheme Define a naming scheme for the…
Lekensteyn
  • 6,241
  • 6
  • 39
  • 55
7
votes
4 answers

Why does my mail get marked as spam?

I Have the server "afspraakmanager.be". It matches everything not to be a spam server.(it isn't by the way): it has reverse dns, spf,dkim,... . But hotmail marks it as spam. I think the problem is the SPF/DKIM records. when i sent an email to my…
Nick
  • 195
  • 1
  • 6
7
votes
2 answers

DKIM on postfix relay server

I have a postfix/amavis relay server, with the domain name mail.example.com. It will be a relay for dozens of VPS's, which will have domains like hostname.example.net. So i have actually two questions. Is it possible to use dkim to sign the mails…
Danijel Krmar
  • 139
  • 1
  • 1
  • 4
7
votes
4 answers

Getting Exchange to do DKIM

Having read Jeff's blog post about Email and DKIM, I'm thinking it might be good to DKIM all mail coming out of our Exchange 2003 servers. Whats a good way of going about that?
codeulike
  • 1,008
  • 5
  • 17
  • 29
7
votes
1 answer

Is ed25519 well supported for the DKIM validation?

Based on the Exim4 docs I have the following script: #! /bin/bash -- ED="dkim_ed25519_$(date +'%Y%m%d')" RSA="dkim_rsa_$(date +'%Y%m%d')" ## Generate private key openssl genpkey -algorithm ed25519 -out "${ED}.private" openssl genrsa -out…
NarūnasK
  • 368
  • 4
  • 17
6
votes
2 answers

Valid DKIM but "body hash did not verify" error on Outlook / Hotmail / Live?

Why do I get dkim=fail (body hash did not verify) on Outlook / Hotmail / Live when I have a valid DKIM setup in place? I've made sure that my SPF, DKIM, DMARC records are set up correctly and the DKIM record on my domain matches my servers DKIM…
Persson
  • 161
  • 1
  • 4
6
votes
2 answers

DMARC reporting unexpected SPF IP but DKIM still passes

I have both SPF and DKIM enabled on my domain. This domain is for a small company and we only have the one server (hMailServer if anyone thinks it's relevant). Recently I decided to enabled DMARC reporting and noticed something very peculiar about…
Fr33dan
  • 133
  • 1
  • 8
6
votes
3 answers

Migrating Email Providers; Are Multiple DKIM Records Viable During Transition?

I am currently gathering requirements for a small (hopefully) project of migrating from SendGrid to Mandrill as a transactional email service provider. We have been using SendGrid for close to 3-4 years now and average about 5k-10k emails per day.…
Wilhelm Murdoch
  • 173
  • 1
  • 6
6
votes
1 answer

Exim doesn't want to do DKIM signing correctly

I'm using exim 4.82 on Debian sid. I've followed several tutorials on how to configure exim to sign outgoing emails, but it seems like something is not behaving as it should be. My diagnosis is that $sender_address_domain is always set to the…
RoliSoft
  • 201
  • 2
  • 7
6
votes
2 answers

Designating A DKIM Signer Other Than The "From" Domain

A few months ago, I implemented SPF/DKIM/DMARC for my three-person company. After a trial period, I switched our DMARC to "p=reject", so that emails are rejected if they fail SPF/DKIM. Generally, it works: our emails go through, and based on data…
joseph_morris
  • 245
  • 3
  • 9
6
votes
3 answers

Setting up DKIM for multiple domains on same host

I have DKIM set up for one domain and it works properly. I am trying, though, to set it up for another domain name on the same machine. In short, I am sending registration and password recovery emails from one domain and everything else from the…
modulaaron
  • 257
  • 1
  • 4
  • 11
6
votes
2 answers

What are the advantages of DKIM?

After making my server sign outgoing email I started to wonder what the benefits are. This is the opposite of a previously asked question. Naively I see two benefits: We can throw away all emails which don’t carry a valid signature: Wrong!…
duff
  • 63
  • 1
  • 3
6
votes
4 answers

DKIM error: dkim=neutral (bad version) header.i=

Ive been struggling the last couple of hours with setting up DKIM on my Postfix/CentOS 5.3 server. It finally sends and signs the emails, but apparently Google still does not like it. The errors I'm getting are: dkim=neutral (bad version) …
GBC
  • 465
  • 2
  • 5
  • 13