- Forum
- Main Forum
- English Section
- Post Fix
- How to Exclude or Include Postfix from Future Updates on CWP / AlmaLinux 8
×
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
- infogate
-
Συντάκτης θέματος
- Αποσυνδεμένος
- Administrator
-
- Imagination is the beginning of creation
1 Εβδομάδα 21 Ώρες πριν #345
από infogate
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
How to Exclude or Include Postfix from Future Updates on CWP / AlmaLinux 8 δημιουργήθηκε από 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:
Example output may look like:
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:
If that package is not available, try:
Then lock Postfix and Postfix MySQL packages:
Check the active version locks:
Now future system updates should not upgrade those locked Postfix packages.
You can safely run updates as usual:
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:
Then check that the locks were removed:
After that, Postfix can be updated again with:
or with a normal full update:
Option 2: Exclude Postfix in dnf.conf
Another method is to exclude Postfix packages globally from DNF updates.
Edit the DNF configuration file:
Add this line under the main section:
Then save the file.
After this, DNF will skip Postfix packages during updates.
To confirm, you can run:
If you later want to allow Postfix updates again, edit the file:
Remove or comment this line:
For example:
Then run:
Important Notes
Do not update only one Postfix package while leaving related packages behind.
For example, avoid updating only:
while leaving:
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:
You can also check failed services with:
Quick Summary
To exclude Postfix from future updates using versionlock:
To include Postfix in updates again:
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.
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 postfixExample output may look like:
postfix-3.5.8-8.el8_10.x86_64
postfix-mysql-3.5.8-8.el8_10.x86_64It 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-versionlockIf that package is not available, try:
dnf install -y dnf-plugins-coreThen lock Postfix and Postfix MySQL packages:
dnf versionlock add postfix postfix-mysqlCheck the active version locks:
dnf versionlock listNow future system updates should not upgrade those locked Postfix packages.
You can safely run updates as usual:
dnf updatePostfix 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-mysqlThen check that the locks were removed:
dnf versionlock listAfter that, Postfix can be updated again with:
dnf update postfix postfix-mysqlor with a normal full update:
dnf updateOption 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.confAdd 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 updateIf you later want to allow Postfix updates again, edit the file:
nano /etc/dnf/dnf.confRemove or comment this line:
exclude=postfix*For example:
#exclude=postfix*Then run:
dnf updateImportant Notes
Do not update only one Postfix package while leaving related packages behind.
For example, avoid updating only:
postfixwhile leaving:
postfix-mysqlon 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 checkYou can also check failed services with:
systemctl --failed --no-pagerQuick Summary
To exclude Postfix from future updates using versionlock:
dnf install -y python3-dnf-plugin-versionlock
dnf versionlock add postfix postfix-mysql
dnf versionlock listTo include Postfix in updates again:
dnf versionlock delete postfix postfix-mysql
dnf update postfix postfix-mysqlThis 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
Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.
- Forum
- Main Forum
- English Section
- Post Fix
- How to Exclude or Include Postfix from Future Updates on CWP / AlmaLinux 8
Χρόνος δημιουργίας σελίδας: 0.057 δευτερόλεπτα