Modern TLS Version for dovecot & postfix

(TLS 1.2 oder neuer)

mit folgenden Einstellungen läßt sich festlegen, dass dovecot und postfix eine moderen TLS Version verwenden:

Für Dovecot

In der Datei /etc/dovecot/conf.d/10-ssl.conf (Debian)

die Zeile welche mit ssl_min_protocol = beginnt einkommentieren und zu ssl_min_protocol = TLSv1.2 vervollständigen.

Für Postfix

In der Datei /etc/postfix/main.cf (Debian)
folgende Anweisung hinzufügen smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1

Zum Schluss beide Dienste mit systemctl reload postfix neu laden/ bzw. systemctl restart dovecot neu starten.


Posted in Technik | Tagged , , , , , | Leave a comment

Setting up timesync via NTP on debian & raspberry pi

I use systemd-timesyncd to keep the system time up to date on my raspi / debian system.
To do so i did the following steps:

1. Check the state of timedatectl
Therefore type the comand timedatectl to the shell.
The output should look something like this:

Local time: Fr 2023-01-06 19:34:27 CET
Universal time: Fr 2023-01-06 18:34:27 UTC
RTC time: n/a
Time zone: Europe/Berlin (CET, +0100)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no

The important part is “System clock synchronized: no” and “NTP service: n/a“. This tells us that there currently is no timesyncing via systemds timedatectl.

2. Install systemd-timesyncd

Continue reading
Posted in Technik | Tagged , | Leave a comment

Erase ESP – quickly reset the wifi chip

TLDR:
Install esptool.py
pip3 install esptool

Erase flash of the esp
esptool.py -- erase_flash


One of my smart ESP devices wasn’t responding after a power down.
I debugged the problem by connecting it to a serial interface. On the comandline I saw that the chip wasn’t able to connect to its WIFI. To check wether the chip was fried or if its just the software thats messing around I had to delete all of its storage, to reflash the software afterwards. To do that i used the comands stated above.

Posted in Technik | Tagged , , , , , , | Leave a comment

Limoncino Sprizt – Ligurien im Glas – ein leckeres Sundowner Getränk

Zwischen Bergen und Meer, auf kleinen Straßen die sich an den Hängen von Bucht zu Bucht winden. Wo sich die kleinen Orte bunt vom Meer den Hang hinauf winden. Hier wo die Zitronen blühen, hier in Ligurien, hier kommt er her der Limoncino. Er ist der nördliche Bruder des Limoncello, der eher an der Amalfi Küste und in Sizilien zu hause ist.

Continue reading

Posted in Reisen, Rezepte | Tagged , , | Leave a comment

reset your philips hue lightstrip without a dimmer switch – using deconz / conbee

To reset your philips hue lightstrip philip recomends using their dimmer switch.
If you don’t have it or just are to lazy to use it you might also reset / repair the strip using deconz.

To do so you need to use the deconz touchlink api (described here):

First step is to search for touchlink devices, its done by:
POST /api/<apikey>/touchlink/scan

Afterwards the result is queryed by
GET /api/<apikey>/touchlink/scan

The result will look something like this
{
"scanstate": "scanning",
"lastscan": "2022-10-12T08:14:12",
"result": {
"1": {
"factorynew": true,
"address": "0x00123abc"
}
},
}

Refresh that url until the scan is finished which is shown by “scanstate” having the value “idle”.

After having the full list of touchlink devices you need to identify which one is the desired light strip. To do so you can lat the devices “blink” by calling
POST /api/<apikey>/touchlink/<result_device_id>/identify where is the result id of the scanresult (like 1 in the example).

When you have the result id of the strip you want to reset simply call
POST /api/<apikey>/touchlink/<result_device_id>/reset

Posted in Technik | Tagged , , , , | Leave a comment