Professional Services
Custom Software
Managed Hosting
System Administration
See my CV here.
Send inquiries here.
Open Source:
tCMS
trog-provisioner
Playwright for Perl
Selenium::Client
Audit::Log
rprove
Net::Openssh::More
cPanel & WHM Plugins:
Better Postgres for cPanel
cPanel iContact Plugins
Had to update a bunch of client systems lately due to our AI enabled storm of 0-days coming in hard not long ago. This of course means that configs get stomped by hurtful package maintainers. In this particular case, it was dovecot and postfix's mailbox dirs. On one system I thought I had been particularly tricky in symlinking the dir the maintainer prefers to the actual dir, but they nuked it and made a real dir. Yay.
Anyways, here's a script to schlep mail from the bad, broken maildir to the actual correct one.
fixit.sh
# Run as root in whatever bad maildir, in my case it was /var/qmail to /mail because plesk
# Alter the paths in the second sed as appropriate to your situation, or accept in $1 $2
find . -type f | grep -vP 'dovecot|spam|qmail|maildir|subscription|quota|delivery' | xargs realpath | sed -re 's/(.*)/& &/' | sed -re 's/\/var\/qmail/\/mail/2' | sed 's/^/command cp -au /' > ~/fix.sh
# Then all you have to do is run ~/fix.sh