Skip to content

Instantly share code, notes, and snippets.

@yajrendrag
yajrendrag / README.md
Last active December 1, 2023 12:51
postfixadmin guide for ISPMail

Background

I first came across PostfixAdmin upon implementing my first mailserver using this guide - https://www.exratione.com/2016/05/a-mailserver-on-ubuntu-16-04-postfix-dovecot-mysql/ and it's successor on Ubuntu 18.04. With the release of Ubuntu 20.04.1, i began looking around for an update and came upon the ISPMail guide as it had a few things I had wanted to try out - namely, rspamd, and encryption. But i wanted to be able to continue to use PostfixAdmin as i wanted to preserve the GUI administration of the database. So i began to implement the guide and figure out how i could integrate PostfixAdmin into it. This is the result.

Assumptions

  1. PostfixAdmin sets up the database schema (ie, no need to manually create the database tables with SQL)
  2. Presumption in guide below is that the Apache document root is /var/www/html
  3. For support of encryption, part 2 of guide below shows how to modify PostfixAdmin (& roundcube) to generate / modify user encryption keys, so once a user's account is setup,
@yajrendrag
yajrendrag / backuppc.md
Last active December 27, 2020 17:44
TrueNAS BackupPC Plugin Configuration & Quickstart

Background

Long time FreeNAS user and after upgrading to TrueNAS Core, I began looking through the plugins for a backup solution for my linux environment. I have 2 bare metal machines running a combination of apps on bare metal as well as docker and lxd containers. BackupPC looked like an ideal solution; installing the plugin, however, is an incomplete solution - i'm not sure if the plugin is simply in an active development state still or if the intention is to require additional work to make it work. In any case, this is what i needed to do in addition to installing the plugin to make it operational. A lot of this is based off this thread in the TrueNAS forum.

Install the backuppc plugin

  1. First thing i did was to install the plugin. I'm running TrueNAS 12.0-U1 and simply went to the plugins menu and installed the plugin - the only entry I made was to name the plugin (I used backup-pc) and I ma
@yajrendrag
yajrendrag / migrate Hass from zwave 1.4 to zwavejs.md
Last active February 5, 2021 21:20
homeassistant migrate from zwave 1.4 to zwavejs

Intro

I'm offering this as some additional detail on how my migration went - both to get any suggestions on what i should "fix" at this point as well as to provide some insight on what else you might run into in doing this migration.

i'm not sure if my troubles were due to irregularities of my setup, my impatience with battery powered sensors, or what, but this was a a lot of work - and i only had 32 devices - a variety of wall switches, a few outlets, some external plugs, and a half dozen motion sensors. Took me 9+ hours. In hindsight, i think the big issue i had was all related to the 5 or 6 battery powered devices and how long those took to fully show up in hass.

Hass Setup

My hass setup is homeassistant core in a venv and i run it in an LXD container so i had to use zwavejs2mqtt server and i chose to download the pkg and i run it inside the hass container - i couldn't figure out the container networking in order to just use one of the docker implementations of zwavejs2mqtt. On the host on which

@yajrendrag
yajrendrag / gist:55c42be680e330dc41095b6a1f821ac4
Last active April 15, 2022 16:20
PostfixAdmin for IPSMail Bullseye

Forenote

this guide is written to install PostfixAdmin with ISPMail Bullseye
All references to example.org should be replaced with your actual domain

Install Dependencies

  1. As root or using sudo, apt install php7.4-curl php7.4-mysqli php7.4-sqlite3 php7.4-xml php7.4-mbstring php7.4-imap

Download PostfixAdmin

  1. install git on your server - in a shell as root or using sudo apt install git
  2. cd /srv