Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-6342

RH254-314, Chap. 5 Lab smtp-nullclient grade is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Major Major
    • None
    • RH254 - RHEL 7 1 20140711
    • RH254
    • None
    • 6

      URL:
      Reporter RHNID:
      Section: -
      Language:
      Workaround:

      Description: The grading script greps /etc/postfix/main.cf to determine if correct options are set. There are multiple issues with that :

      • Even lines starting with '#' match
      • Parsing 'postconf' output would be more correct and much more reliable

      This has been uncovered by the check for 127.0.0.1 and ::1 in the 'mynetworks' parameter :

      • The IPv4 grep my find the original comment and be happy : bad, but since the default is fine, it's okay in the end.
      • The IPv6 grep doesn't find what it expects and returns a FAIL while the original value for the parameter does contain what it's looking for, so it should PASS. Changing the grep to use postconf's output would be enough to fix this particular issue.

      The mydestination check is also completely useless, since it's fine with any values.

      Attached is a patch which fixes all of these problems.

              glsbugs-hybridcloud@redhat.com PTL - RHEL Team
              Thias Matthias Saou (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: