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!

Lire la suite

Rsyslog pour le duo Postfix / Dovecot

J’ai rencontré un problème assez contraignant pour les maniaques comme moi, j’ai mon serveur de messagerie qui héberge les duo Postfix et Dovecot. Les logs sont respectivements répartis dans /var/log/mail.log pour Postfix et dans /var/log/mail.log pour Dovecot. Problème, lors de l’envoi par Rsyslog de ceux-ci, sur le serveurs recevant ces logs, je me suis retrouvé avec une concaténation des deux fichiers dans un seul. Découvrons la solution à ce problème ensemble !

Lire la suite

How to Deploy a WireGuard VPN with IPtables

WireGuard is a very lightweight and easy-to-configure VPN that operates on a P2P system. It is available on many platforms like Windows or Android and is incredibly stable!

Lire la suite

Installation d’un VPN WireGuard avec IPtables

WireGuard est un VPN très léger et simple à configurer, il fonctionne sur un système P2P. Il est disponible sur de nombreux supports comme Windows ou Android et d’une stabilité incroyable ! Dans ce tuto, on va installer et configurer WireGuard et IPtables pour que le serveur NAT tous le flux venant du client.

Lire la suite

How to configure DKIM on Postfix server

Setting up DKIM (DomainKeys Identified Mail) on a server is essential for authenticating emails sent from that server. This ensures that the email content has not been altered during transit.

Lire la suite

Mise en place de DKIM sur un serveur Postfix

La mise en place de DKIM (DomainKeys Identified Mail) sur un serveur est essentielle pour authentifier les emails envoyés depuis ce serveur. Cela garantit que le contenu de l’email n’a pas été modifié pendant le transit.

Lire la suite

Creating a VLAN in Proxmox and OPNsense

It might be interesting to create a VLAN to isolate one or more VMs in a network.

In Proxmox, click on your hypervisor, then on network, and create a new Linux Bridge interface.

Lire la suite

How to configure HTTPS on Apache2

An important step when deploying an Apache2 server is the transition from the HTTP protocol to HTTPS. This allows for the encryption of data between the client and the server to protect its content from being transmitted in plain text over the internet.

Lire la suite

Configuration of HaProxy as a reverse proxy

HaProxy is a remarkable tool that notably allows for load balancing or reverse proxying. It’s this latter functionality we will be focusing on.

The goal is to make two different web servers accessible from the same IP address and port via two subdomains.

Lire la suite

Running a script with Crontab by a user

For certain needs, it may be necessary to execute a script via crontab by a user other than root. In this tutorial, I will use www-data because my script will be related to my Apache server.

Lire la suite