Category: Linux

  • Spam to aol.com

    Some open relay spams a lot with this kind of messages: Delivered-To: abondarenko@gmail.com Received: by 2002:aa6:c2c8:0:b0:16a:1e8a:2c54 with SMTP id i8csp1735690lkp; Fri, 17 Dec 2021 09:01:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYX2tMoVU+eJjTP1qslWMcUikk61IbaTmPrak3WWvb1fbofSlY0ftgYqX9WBAiH5rL/PIy X-Received: by 2002:a2e:bf1e:: with SMTP id c30mr3535718ljr.408.1639760491902; Fri, 17 Dec 2021 09:01:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639760491; cv=none; d=google.com; s=arc-20160816; b=Pp3pD2GTGMOH8vYn+zs+n31Y3/RsUhm8SrzMWHMf4MAqnnojNhRemwUANtHgYhjd/9 M9F2iuIpJkYkdd5SqyzP2623PIWs8ahgMoEWWU5s9exmqAhICUtDc0BODLwWpzw1pbYi +XoA0yQkL79W+wWdCnn2D+EGR1LCr2dxnrH4A3OgsTTXG573/yQ3fAxMvT/qdSTCHf+X VtaHKSEHgU5vkfo20EF6hKF9h46d/KyaMspGtr4XhVeUPgvl3EWf/LilXOnbcctYH+q7 Q2ys7jcbeyltrTxwhVhJAy0gUu2ozZvSYh1SqR5MeWSbIb5/ClGinRy5cg5nimLi2jig…

  • Postfix and greylisting

    Spam became a noticeable threat for the mail servers many years ago. No servers today could be running without being hardened against the spam: according to some reports up to 75% of all the email traffic is spam. It’s noticeable from network capacity, hardware and electricity consumption even if you run a small company mail…

  • Postfix mail server with DKIM

    Installation and configuration of the mail server (Mail Transfer Agent, MTA) is one of the typical tasks any system administrator faces. Here we will cover the task and by the end of the article will have CentOS 7 with Postfix mail server that listens to he 25 port (SMTP) and delivers messages for the selected…

  • Moved to Hetzner and CentOS 8

    Turns out I had lost my keys to the Oracle Cloud and the Oracle Cloud lost my PTR record somehow, so the Gmail started to junk and bounce my mail. I decided to go for a Faster.cz (who’s my home provider) VPS, but they had 8GB SSD as an option for a small host, which…

  • Fish shell MOTD with lolcat and cowsay

    Setting fish shell message of the day with all the crazy stuff you need for a daily work: Full version: https://gist.github.com/angstbear/a0499e955ecf282c06c4a7dd9cb8bd35

  • Get top LDAP leafs

    /usr/bin/ldapsearch -H ldaps://localhost -W -b “dc=example,dc=com” “(objectclass=*)” -LL -W -D “cn=Manager” -s one

  • Search for a package in Fedora Silverblue

    sudo podman run –rm fedora:30 dnf search Okay

  • Extract PEM certificates and keys from a shared NSS DB

    $ certutil -L -d . Certificate Nickname Trust Attributes SSL,S/MIME,JAR/XPI FreeIPA CA CT,C,C $ certutil -L -d . -a -n ‘FreeIPA CA’ > freeipa.crt The PEM certificate should now be stored in free-ipa.crt. To extract the PEM key from key3.db use certutil, pk12util and openssl. $ certutil -K -d . -a $ pk12util -o keys.p12…

  • Linux UX improvements

    Fish as a shell. I like the fact that out of the box it does what it should do and what I configure in Bash. And I like abbreviations. ripgrep which is faster grep Bat which is a way better cat  ??? lolcat!

  • List of bash tutorials

    Just not to forget http://mywiki.wooledge.org/BashGuide/Arrays