Skip to content

Instantly share code, notes, and snippets.

@dxdxdt
dxdxdt / fuckyou-gmail.en.md
Last active September 7, 2023 17:44
What to do when Gmail marks all the mails from your server as spam

What to do when Gmail marks all the mails from your server as spam

If you're self-hosting your services and having trouble getting your emails through Gmail and infuriated by Google's non-existent support, you're not the only one. I'd like to share my experiences trying to get it sorted out.

I'm the author of the post above. You can tell how arrogant Google employees are from all the previous posts he made in the past.

@raoulbhatia
raoulbhatia / dovecot-unzip.sh
Created January 25, 2020 20:59
Unzip Dovecot emails crypted using zlib plugin
#!/bin/bash
# Unzip /var/vmail
find /var/vmail/ -type f -regextype egrep -regex '.*S=.*W=.*' | while read -r file; do
if [[ $(head -c11 "$file") == "Dovecot-LZ4" ]]; then
doveadm fs get compress lz4:0:posix:prefix=/ \
"$file" > "/tmp/$(basename "$file")"
if [[ -s "/tmp/$(basename "$file")" ]]; then
chmod 600 "/tmp/$(basename "$file")"
chown 5000:5000 "/tmp/$(basename "$file")"
mv "/tmp/$(basename "$file")" "$file"
@kvaps
kvaps / rspamd-lists.md
Last active February 21, 2025 03:34
Howto create local whitelists and blacklists for Rspamd

Local whitelists and blacklists for Rspamd

  • cd /etc/rspamd
  • create rspamd.conf.local
  • create lists:
touch local_bl_from.map.inc local_bl_ip.map.inc local_bl_rcpt.map.inc \
local_wl_from.map.inc local_wl_ip.map.inc local_wl_rcpt.map.inc
  • change permissions:
@mricon
mricon / dovecot-zlib-cron-compressor.sh
Last active November 7, 2021 19:44
Implements the cron script described on http://wiki2.dovecot.org/Plugins/Zlib for compressing old maildir messages. Use only after enabling the Dovecot zlib plugin.
#!/bin/bash
# This is implementation of the script that compresses old maildir messages
# as described in http://wiki2.dovecot.org/Plugins/Zlib
#
# Copyright (C) 2016 by Konstantin Ryabitsev
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
@palvestegui
palvestegui / Mata Contratos.docx
Created August 27, 2015 16:24
Modified Spanish version of @malarkey's Killing Contract
<h2><strong>Contrato de Diseño de un Sitio Web <span style="text-decoration: line-through;">un Sistema Informático</span></strong></h2>
Acordado entre <strong>Usted</strong> [Nombre del cliente] y<strong> nosotros</strong>, [Nuestra Empresa]
<h2><strong>Resumen:</strong></h2>
Siempre haremos nuestro mejor esfuerzo para cumplir con sus expectativas y satisfacer sus necesidades, pero es importante tener las cosas escritas para que ambos sepamos qué es qué, quién debería hacer qué y cuándo y, qué es lo que pasará si algo sale mal.
En este contrato no encontrará complicados términos legales ni largos pasajes de texto inentendible. No tenemos la intención de hacerle firmar algo que después lamentará. Lo que sí, queremos lo que es mejor para ambas partes, ahora y en el futuro.
En pocas palabras:
<strong>Usted</strong> ([Nombre del cliente]), situado en [dirección del cliente], nos contrata a <strong>Nosotros</strong> ([Nombre de la empresa]) situados en [dirección de la empresa] para diseñar y desarrollar [un si