Separating and Sorting Postfix and Dovecot Logs with Rsyslog

I encountered a rather constraining issue for sticklers like me; I have my mail server hosting Postfix and Dovecot duo. The logs are respectively distributed in /var/log/mail.log for Postfix and /var/log/mail.log for Dovecot. Problem is, when sending these logs via Rsyslog to the receiving server, I ended up with a concatenation of both files into one. Let’s discover the solution to this problem together!

Read more

Install a LAMP server for WordPress

The goal of this tutorial is to set up a WordPress server. For this, we will install and configure Apache and MariaDB. You can use this tutorial for another tool like GLPI, but you will obviously need to check the official website for the required PHP packages.

Read more

Installation and Configuration of Fail2Ban

The world of Linux is fascinating, and security is a crucial chapter of this journey. Fail2Ban is one of those essential tools for any Linux administrator concerned about protecting their servers. By monitoring system logs, it detects intrusion attempts on services such as SSH, HAProxy, or Postfix. And if an intruder becomes too persistent? Fail2Ban steps in, blocking the offender’s IP address via IPTables. One of the major strengths of Fail2Ban is its flexibility. You can create and tailor your own filters according to your needs. In this article, I will guide you through the installation and configuration of Fail2Ban on Debian.

Read more