× Post Fix is a great tool that comes usually bundled with vps servers and handles the mailboxes.

How to Exclude or Include Postfix from Future Updates on CWP / AlmaLinux 8

Περισσότερα
1 Εβδομάδα 20 Ώρες πριν #345 από infogate
Hello,

I wanted to share a useful server maintenance note for anyone using CWP / Control Web Panel on AlmaLinux 8.

Sometimes, after a system update, Postfix-related packages can create dependency issues, especially when postfix and postfix-mysql need to stay on compatible versions.

In this case, it may be safer to temporarily exclude or lock Postfix packages from future updates until you are ready to update them carefully.

First, check the currently installed Postfix packages:
rpm -qa | grep -i postfix

Example output may look like:
postfix-3.5.8-8.el8_10.x86_64
postfix-mysql-3.5.8-8.el8_10.x86_64

It is important to keep related Postfix packages compatible with each other.

Option 1: Use DNF Versionlock

This is usually the cleaner method because it locks the currently installed package versions.

First, make sure the versionlock plugin is available:
dnf install -y python3-dnf-plugin-versionlock

If that package is not available, try:
dnf install -y dnf-plugins-core

Then lock Postfix and Postfix MySQL packages:
dnf versionlock add postfix postfix-mysql

Check the active version locks:
dnf versionlock list

Now future system updates should not upgrade those locked Postfix packages.

You can safely run updates as usual:
dnf update

Postfix should remain on the locked version.

How to Allow Postfix Updates Again

When you want to include Postfix in future updates again, remove the version lock:
dnf versionlock delete postfix postfix-mysql

Then check that the locks were removed:
dnf versionlock list

After that, Postfix can be updated again with:
dnf update postfix postfix-mysql

or with a normal full update:
dnf update

Option 2: Exclude Postfix in dnf.conf

Another method is to exclude Postfix packages globally from DNF updates.

Edit the DNF configuration file:
nano /etc/dnf/dnf.conf

Add this line under the main section:
exclude=postfix*

Then save the file.

After this, DNF will skip Postfix packages during updates.

To confirm, you can run:
dnf update

If you later want to allow Postfix updates again, edit the file:
nano /etc/dnf/dnf.conf

Remove or comment this line:
exclude=postfix*

For example:
#exclude=postfix*

Then run:
dnf update

Important Notes

Do not update only one Postfix package while leaving related packages behind.

For example, avoid updating only:
postfix

while leaving:
postfix-mysql

on a different version.

On CWP servers, Postfix is connected with mail services and MySQL maps, so mismatched versions can cause mail service or dependency problems.

A good safety check before and after updates is:
rpm -qa | grep -i postfix
systemctl status postfix -l --no-pager
postfix check

You can also check failed services with:
systemctl --failed --no-pager

Quick Summary

To exclude Postfix from future updates using versionlock:
dnf install -y python3-dnf-plugin-versionlock
dnf versionlock add postfix postfix-mysql
dnf versionlock list

To include Postfix in updates again:
dnf versionlock delete postfix postfix-mysql
dnf update postfix postfix-mysql

This is useful when you want to avoid unexpected Postfix updates on a production CWP mail server until you are ready to handle the update safely.


The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Explode Your Web Site Traffice: fspirits.com/go/sparktraffic
Start your affiliate journey here: fspirits.com/go/olsp-academy
Best Solution To Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/clickdesigns
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/video-creator
AI Human Spokesperson Videos: fspirits.com/go/humanpal

Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.

Χρόνος δημιουργίας σελίδας: 0.052 δευτερόλεπτα
Powered by Kunena Φόρουμ