Om sidan

Lassej.se är mina personliga sidor där det går att läsa om mina intressen.
Kika på bilder, kolla vädret i Kungsängen, Se övervakningsbilder och följa de projekt (ofta tekniska) som jag leker med.

New blog posts

Då väntar vi in julen

Dec 9, 2017 by Lasse Jäderfeldt

9 december idag. Första julbordet...

Nu bränner vi mer pengar $$$

Nov 6, 2017 by Lasse Jäderfeldt

Nu påbörjas takbytet hos...

Enable Google Home to Home Assistant (HASS)

Oct 23, 2017 by Lasse Jäderfeldt

Enabling Google-Home on Home Assistant...

DKIM Signing tutorial

Oct 5, 2017 by Lasse Jäderfeldt

I made this tutorial since i was strugling...

View all blog entries →

DKIM Signing tutorial

Posted on Oct 5, 2017 by Lasse Jäderfeldt

I made this tutorial since i was strugling with the setup myself before i got it to work. The benefit with DKIM signed email as a private email provider is that the emails will not be classified as spam as easy as if you dont have the signing.

Here are some instructions:

Setup of DKIM on hmailserver with loopia

  1. go to https://port25.com/dkim-wizard/
  2. fill in your domain name (example google.com)
  3. fill in your DomainKey Selector (I choose key1)
  4. Use 1024 bit key size since some service providers does not support 2048 yet
  5. Press create keys.

Now you get a screen with a public and a private key, but also an explanation below.

Open notepad/vi/Notepad++/atom or similar text editor and copy the public key. Keep “---- BEGIN…” in the copied text. Save this file as key1._domainkey.yourdomain.com .

go to your dns provider and add a subdomain to your domain. It should be named: key1_domainkey (if your key was named key1, otherwise use the name you choosed.)

Create a TXT field with no prio (0) and TTL set to 3600. Copy the public key without the “---BEGIN” and “END----” rows. Write this in the txt field in DNS:
t=s; k=rsa\; p=[insert your public key here]

SAVE and exit.

Now go back to the text on port25.com and copy the private key to a textfile. Name the file: Key1_domainkey.yourdomain.com.pem

Put the file on the server so that it can be opened by your mail software.

In hmailserver:

  1. open your domain setting
  2. go to TAB DKIM signing
  3. Click “Activate”
  4. Browse to the saved private key file
  5. Fill in the selector name Key1 (or whatever you named it)
  6. Use setting
    1. Relaxed
    2. Relaxed
    3. SHA256
  7. Press save.

Wait until your DNS has propagated the settings to you closest DNS server.

To verify that it works, go to the page: http://dkimvalidator.com/

copy the suggested e-mail address into your email software. Send the mail and head back to the webpage to see the result (after a few seconds up to 1-2 minutes afterwards)

If you have done everything right it should say ok or passed below the test text.

 

Good Luck

Tags: dkim