# DKIM setup produces an invalid DKIM DNS record!!

**URL:** <https://forums.interworx.com/t/dkim-setup-produces-an-invalid-dkim-dns-record/15288>\
**Category:** Bugs\
**Created:** [June 22, 2019, 3:28pm UTC](https://forums.interworx.com/t/dkim-setup-produces-an-invalid-dkim-dns-record/15288 "2019-06-22T15:28:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayusmeena](https://forums.interworx.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mayusmeena](https://forums.interworx.com/u/mayusmeena)\
**Post date:** [June 22, 2019, 3:28pm UTC](https://forums.interworx.com/t/dkim-setup-produces-an-invalid-dkim-dns-record/15288/1 "2019-06-22T15:28:36Z")

</div>

There’s a small (but probably good to fix) bug in DKIM setup that produces invalid DKIM records.

Specifically, a record is created along the lines of:

k=rsa; v=DKIM1; o=-; p=…

If the v= tag is present it MUST be the first entry in the record, per the DKIM RFC. Interworx should make sure that the v= is first.

Aside from that, but not technically an error, is the o= value isn’t defined so it’s unclear why interworx adds it. The RFC explicitly states clients must be okay with extra key/value pairs, so it shouldn’t affect operability. But it’s odd that it’s there.[youjizz](https://youjizz.one/) [pornhub](https://123porn.vip/pornhub/) [tubegalore](https://tubegalore.vip/)

Also, it creates a bare “\_domainkey.domain.com” record with just “v=DKIM1; o=-;” as the contents. I am not entirely sure on the spec to know if this record makes sense, but it doesn’t seem to from what I know.

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [June 24, 2019, 1:07am UTC](https://forums.interworx.com/t/dkim-setup-produces-an-invalid-dkim-dns-record/15288/2 "2019-06-24T01:07:07Z")

</div>

Hi

Welcome to IW forums

I will have to reread and check, but if your right I will forward the thread to IW so you have credit

Many thanks

John
