danami
Silver Pleskian
Username:
TITLE
Plesk Postfix RPM overrites /etc/postfix/header_checks with every Postfix package update
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Product version: Plesk Obsidian 18.0.65.2
OS version: AlmaLinux 8.10 x86_64
Build date: 2024/11/22 08:00
evision: 738ea4038904b53a068e522aa7c64390f4f29d5f
PROBLEM DESCRIPTION
The file /etc/postfix/header_checks is meant to be a config file but it gets overwritten with every time Plesk updates Postfix.
Documentation from the /etc/postfix/header_checks file:
Normally the admin would run postconf -e "header_checks = pcre:/etc/postfix/header_checks" to add it to the config then add any required header checks to that file.
STEPS TO REPRODUCE
Run the Plesk installer. If the Postfix package gets updated then the /etc/postfix/header_checks gets reverted.
ACTUAL RESULT
Any changes to /etc/postfix/header_checks get overwritten because it gets reverted back to default.
EXPECTED RESULT
The Plesk Postfix package RPM spec file should mark /etc/postfix/header_checks with %config(noreplace) so it doesn't get overwritten if its been edited.
ANY ADDITIONAL INFORMATION
(DID NOT ANSWER QUESTION)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Plesk Postfix RPM overrites /etc/postfix/header_checks with every Postfix package update
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Product version: Plesk Obsidian 18.0.65.2
OS version: AlmaLinux 8.10 x86_64
Build date: 2024/11/22 08:00
evision: 738ea4038904b53a068e522aa7c64390f4f29d5f
PROBLEM DESCRIPTION
The file /etc/postfix/header_checks is meant to be a config file but it gets overwritten with every time Plesk updates Postfix.
Documentation from the /etc/postfix/header_checks file:
Code:
# header_checks - Postfix built-in content inspection
#
# SYNOPSIS
# header_checks = pcre:/etc/postfix/header_checks
# mime_header_checks = pcre:/etc/postfix/mime_header_checks
# nested_header_checks = pcre:/etc/postfix/nested_header_checks
# body_checks = pcre:/etc/postfix/body_checks
#
# milter_header_checks = pcre:/etc/postfix/milter_header_checks
#
# smtp_header_checks = pcre:/etc/postfix/smtp_header_checks
# smtp_mime_header_checks = pcre:/etc/postfix/smtp_mime_header_checks
# smtp_nested_header_checks = pcre:/etc/postfix/smtp_nested_header_checks
# smtp_body_checks = pcre:/etc/postfix/smtp_body_checks
Normally the admin would run postconf -e "header_checks = pcre:/etc/postfix/header_checks" to add it to the config then add any required header checks to that file.
STEPS TO REPRODUCE
Run the Plesk installer. If the Postfix package gets updated then the /etc/postfix/header_checks gets reverted.
ACTUAL RESULT
Any changes to /etc/postfix/header_checks get overwritten because it gets reverted back to default.
EXPECTED RESULT
The Plesk Postfix package RPM spec file should mark /etc/postfix/header_checks with %config(noreplace) so it doesn't get overwritten if its been edited.
ANY ADDITIONAL INFORMATION
(DID NOT ANSWER QUESTION)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug