Tag: Linux

Debian SID Opendkim Installation and Configuration Woes

TL;DR Opendkim. Hats off the to folk who do marvelous packing 99.99999% percent of the time.

But sometimes they just get it wrong or at least all documentation regarding the package, does not match up with the behavior the packager intended.
That said, hopefully i will help solve some of these issues here.

I assume you have postfix already working and you are just looking to add dkim support.

Install opendkim

Configure systemd service file

The specific changes here are lines #9 EnvironmentFile #13 -p $SOCKET

Defaults File

Opendkim Config file

Specific changes here are lines #7 hashed out socket file,  it simply does not work.
The only way to get opendkim to honour this setting is passing it to the command line #13 of the service file.

Modify /etc/postfix/main.cf and add/edit the following lines

Create referenced folders for your open dkim keys

TrustedHosts

SingingTable

KeyTable

Create private/public key for signing

Your directory should now look like this

Opendkim Treeview of files

Tell systemd to reload the the daemon files and restart

DNS

Now go modify your DNS, adding a TXT record ‘default._domainkey‘.
Copy and paste everything between the parenthesis. ( everything here ) into the value field of the TXT record

Enjoy

Other resources
https://www.google.com/search?q=opendkim+setup


BIND9 with DDNS updates on Debian Sid

As part of some work to resolve a kubernetes application deployment.
The particular application i’m working with has hard dependencies on DNS, particularity, A, TXT and SRV records.
For each kubernetes pod that spins up, i need it to register itself into DNS.
Then the other services can discover themselves.

Here is a basic excerpt of enabling DDNs updates on example.com

Install the basics

Forward Lookup Zone

Reverse Lookup Zone

Named local config (should be included from named.conf)

Key file

Fix any permissions issues and restart the server

Test the DDNS updates works

Nslookup for good measure


Debian Sid Intel I217-V Not Working

After scouring for ages looking for this fix. I’ve decided to document it.
It comes form a number of sources. Kudos to the individual people.

Problem
Rebooting from windows into Linux renders the NIC unusable. the classic “lights are on but no one is home”
Some people advice disabling PXE etc in the bios. There is a better solution

Identify the NIC

Create a systemd oneshot service file

Reset NIC bash file

Make it executable


Fancy Screen .screenrc config

Not quite sure of the original source of this one! But handy config for screen 🙂

untitled

vi ~/.screenrc


Linux Bash One Liners

I’m going to keep adding a number of one liners here. Mainly for my own personal usage.

Find duplicate filenames with different extensions

Mail War

Randomly spams someones with number of domains and random user.
This particular guy mark.silberman78@gmail.com thought i needed some extra mail.  I sent some back 😉