Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-78224

Postfix configuration can break on updates/postconf use if improperly formatted

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • postfix
    • None
    • No
    • None
    • rhel-net-perf
    • ssg_core_services
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

      If the Postfix configuration file is missing default directives and its last line does not end with a newline character, using postconf to modify the configuration file or updating/downgrading Postfix can yield a non-working config.

      This happens because whenever postconf wants to add a line, it gets appended to the end of the last line, instead of being on a line of its own.

      This can be reproduced by removing the newline at the last line of the file and then running a postconf command to set a directive, e.g.:

      # postconf virtual_minimum_uid=100  

      Alternatively, removing any of the default directives, as well as the newline at the last line of the file, will cause this behaviour to occur whenever Postfix is updated/downgraded via yum/dnf. This happens because during the post-install phase, "postfix set-permissions upgrade-configuration" is called, which in turn uses postconf internally.

       

       

       

              jskarvad Jaroslav Škarvada
              rhn-support-jsantos Juan Santos
              Jaroslav Škarvada Jaroslav Škarvada
              Robin Hack Robin Hack
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: