DKIM for relayed domain (rspamd)

Posted on Thu 23 June 2022 in Linux, Tips4Unices

If you need to send e-mail from one domain using not default MX server with all header info correctly rewritten this is guide for you.

Real world scenario:

  • there is MX server for domain dupa.com that you use for normal delivery for users from dupa.com,
  • there is also …

Continue reading

Stop logging to deal with /var/log

Posted on Fri 10 June 2022 in Linux, Tips4Unices

I have /var/log mounted as separate partition, so trying to umount it gets to:

root@mail:~# umount /var/log
umount: /var/log: target is busy.

Let's look what is blocking it:

lsof | grep 'var/log'
systemd-j 364 root mem REG 8,18 8388608 524326 /var/log/journal/d59b94e79c8c4d78baaa487f78c7f5b1/user-1000 …

Continue reading

Skrypt kontra spamerzy cz. 2

Posted on Thu 24 September 2020 in Linux, Tips4Unices

W pierwszej części pisałem o japońskim filmie, Reksiu, historii dwukropka oraz, co najmniej chyba ważne, skrypcie do blokowania spamerów.

Część druga będzie krótka ponieważ jest tylko rozwinięciem istniejącego już skryptu. Pokażę teraz co do niego dodałem:

cat spammers.log | awk ' BEGIN { FS = "," } {if ($2 > 333) system("ipset add blacklist "$1 …

Continue reading