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

Delete the local-lvm partition on a new installation

After a new installation, the main disk on which Proxmox is installed consists of two partitions.

local and local-lvm

By default, the virtual machines and containers will be stored on the local-lvm partition.

And on the local partition, the backups, templates, and iso files will be stored.

If you have a second disk or several in a raid, it may be useful to delete the local-lvm partition in order to allocate its space to the local partition to store more content (backups, iso, template, etc.).

Screenshot of Datastores on a Proxmox server

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